summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-08-30 22:58:20 +0000
committerDavid Robillard <d@drobilla.net>2014-08-30 22:58:20 +0000
commite3ecb2b439bd03d27b5e11efe430c24f0ebe6283 (patch)
treeddb860a00e0799a329aedc5d812c1012eb4d73ac /src
parent03be139a8b4c3872bb5da0612a8e443bfb1409a2 (diff)
downloadingen-e3ecb2b439bd03d27b5e11efe430c24f0ebe6283.tar.gz
ingen-e3ecb2b439bd03d27b5e11efe430c24f0ebe6283.tar.bz2
ingen-e3ecb2b439bd03d27b5e11efe430c24f0ebe6283.zip
Disable sprung layout initially.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5461 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphBox.cpp4
-rw-r--r--src/gui/GraphView.cpp4
-rw-r--r--src/gui/ingen_gui.ui2
3 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp
index 7c8e4c1f..eaa98ee9 100644
--- a/src/gui/GraphBox.cpp
+++ b/src/gui/GraphBox.cpp
@@ -264,9 +264,7 @@ GraphBox::set_graph(SPtr<const GraphModel> graph,
graph->signal_property().connect(
sigc::mem_fun(this, &GraphBox::property_changed));
- if (_view->canvas()->supports_sprung_layout()) {
- _menu_sprung_layout->set_active(true);
- } else {
+ if (!_view->canvas()->supports_sprung_layout()) {
_menu_sprung_layout->set_active(false);
_menu_sprung_layout->set_sensitive(false);
}
diff --git a/src/gui/GraphView.cpp b/src/gui/GraphView.cpp
index 48056f56..70ba4073 100644
--- a/src/gui/GraphView.cpp
+++ b/src/gui/GraphView.cpp
@@ -86,10 +86,6 @@ GraphView::set_graph(SPtr<const GraphModel> graph)
_poly_spin->set_increments(1, 4);
_poly_spin->set_value(graph->internal_poly());
- if (ganv_canvas_supports_sprung_layout(_canvas->gobj())) {
- ganv_canvas_set_sprung_layout(_canvas->gobj(), TRUE);
- }
-
for (const auto& p : graph->properties())
property_changed(p.first, p.second);
diff --git a/src/gui/ingen_gui.ui b/src/gui/ingen_gui.ui
index 1a61bdb7..eb3f2684 100644
--- a/src/gui/ingen_gui.ui
+++ b/src/gui/ingen_gui.ui
@@ -1021,7 +1021,7 @@ Contributors:
<property name="can_focus">False</property>
<property name="label" translatable="yes">Sprung Layou_t</property>
<property name="use_underline">True</property>
- <property name="active">True</property>
+ <property name="active">False</property>
<accelerator key="t" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</object>
</child>