From 0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 22 Oct 2011 03:31:09 +0000 Subject: Fix menus. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3587 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PortMenu.cpp | 4 ++++ src/gui/ingen_gui.ui | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp index a2dc57de..b779fe25 100644 --- a/src/gui/PortMenu.cpp +++ b/src/gui/PortMenu.cpp @@ -69,6 +69,10 @@ PortMenu::init(App& app, SharedPtr port, bool patch_port) const bool is_control = app.can_control(port.get()) && port->is_numeric(); + _reset_range_menuitem->set_visible(true); + _set_max_menuitem->set_visible(true); + _set_min_menuitem->set_visible(true); + _reset_range_menuitem->set_sensitive(is_control); _set_max_menuitem->set_sensitive(is_control); _set_min_menuitem->set_sensitive(is_control); diff --git a/src/gui/ingen_gui.ui b/src/gui/ingen_gui.ui index f5c88bde..d91d753e 100644 --- a/src/gui/ingen_gui.ui +++ b/src/gui/ingen_gui.ui @@ -1464,14 +1464,9 @@ Contributors: True - - - True - False - - + Show Controls... False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK False @@ -1480,6 +1475,7 @@ Contributors: + Show GUI... False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK False @@ -1491,10 +1487,12 @@ Contributors: False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK False + Embed GUI + Randomize False False False @@ -1504,18 +1502,21 @@ Contributors: False False + Set Minimum False False + Set Maximum False False + Reset Range -- cgit v1.2.1