From e3ecb2b439bd03d27b5e11efe430c24f0ebe6283 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Aug 2014 22:58:20 +0000 Subject: Disable sprung layout initially. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5461 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/GraphBox.cpp | 4 +--- src/gui/GraphView.cpp | 4 ---- src/gui/ingen_gui.ui | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'src') 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 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 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: False Sprung Layou_t True - True + False -- cgit v1.2.1