summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphBox.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-24 01:10:19 +0000
committerDavid Robillard <d@drobilla.net>2015-10-24 01:10:19 +0000
commit64e08b177f873ecacc914e966968f5240b5f8297 (patch)
tree711021bdcae7dffde1f6465da368be9f1ed1083a /src/gui/GraphBox.cpp
parentae84d83a49ff577152b5a26a03cd919a3c43644c (diff)
downloadingen-64e08b177f873ecacc914e966968f5240b5f8297.tar.gz
ingen-64e08b177f873ecacc914e966968f5240b5f8297.tar.bz2
ingen-64e08b177f873ecacc914e966968f5240b5f8297.zip
Remove excess toolbar buttons
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5773 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r--src/gui/GraphBox.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp
index 2b84b16f..2f48e164 100644
--- a/src/gui/GraphBox.cpp
+++ b/src/gui/GraphBox.cpp
@@ -87,6 +87,7 @@ GraphBox::GraphBox(BaseObjectType* cobject,
xml->get_widget("graph_view_control_window_menuitem", _menu_view_control_window);
xml->get_widget("graph_view_engine_window_menuitem", _menu_view_engine_window);
xml->get_widget("graph_properties_menuitem", _menu_view_graph_properties);
+ xml->get_widget("graph_refresh_menuitem", _menu_refresh);
xml->get_widget("graph_fullscreen_menuitem", _menu_fullscreen);
xml->get_widget("graph_animate_signals_menuitem", _menu_animate_signals);
xml->get_widget("graph_sprung_layout_menuitem", _menu_sprung_layout);
@@ -129,6 +130,8 @@ GraphBox::GraphBox(BaseObjectType* cobject,
sigc::mem_fun(this, &GraphBox::event_close));
_menu_quit->signal_activate().connect(
sigc::mem_fun(this, &GraphBox::event_quit));
+ _menu_refresh->signal_activate().connect(
+ sigc::mem_fun(this, &GraphBox::event_refresh_toggled));
_menu_fullscreen->signal_activate().connect(
sigc::mem_fun(this, &GraphBox::event_fullscreen_toggled));
_menu_animate_signals->signal_activate().connect(
@@ -744,6 +747,12 @@ GraphBox::event_arrange()
}
void
+GraphBox::event_refresh_toggled()
+{
+ _app->interface()->get(_graph->uri());
+}
+
+void
GraphBox::event_fullscreen_toggled()
{
// FIXME: ugh, use GTK signals to track state and know for sure