summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-22 03:31:09 +0000
committerDavid Robillard <d@drobilla.net>2011-10-22 03:31:09 +0000
commit0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa (patch)
tree93c7449e5c686415123abbeca6648ac3986ec2e3
parent66b6d9d6fb8446b6225356defd72b0cc3a9511c4 (diff)
downloadingen-0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa.tar.gz
ingen-0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa.tar.bz2
ingen-0cfeb9f3a3a6098e1e2ea6edf07633af7a7d7eaa.zip
Fix menus.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3587 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/PortMenu.cpp4
-rw-r--r--src/gui/ingen_gui.ui13
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<const PortModel> 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
@@ -1465,13 +1465,8 @@ Contributors:
</object>
</child>
<child>
- <object class="GtkSeparatorMenuItem" id="object_menu_separator">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- </object>
- </child>
- <child>
<object class="GtkImageMenuItem" id="node_controls_menuitem">
+ <property name="label" translatable="yes">Show Controls...</property>
<property name="can_focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="use_action_appearance">False</property>
@@ -1480,6 +1475,7 @@ Contributors:
</child>
<child>
<object class="GtkImageMenuItem" id="node_popup_gui_menuitem">
+ <property name="label" translatable="yes">Show GUI...</property>
<property name="can_focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="use_action_appearance">False</property>
@@ -1491,10 +1487,12 @@ Contributors:
<property name="can_focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">Embed GUI</property>
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="node_randomize_menuitem">
+ <property name="label" translatable="yes">Randomize</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">False</property>
@@ -1504,18 +1502,21 @@ Contributors:
<object class="GtkMenuItem" id="port_set_min_menuitem">
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">Set Minimum</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="port_set_max_menuitem">
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">Set Maximum</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="port_reset_range_menuitem">
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
+ <property name="label" translatable="yes">Reset Range</property>
</object>
</child>
</object>