summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-14 20:45:23 +0000
committerDavid Robillard <d@drobilla.net>2010-02-14 20:45:23 +0000
commit5ce89c373085b4d8d435e1ab90662840e0f57e42 (patch)
treed00f3b554cbde9b8c5eac263c89df69e593d9eb2
parent8d4536908d0b43d892af51ad4c8d4ad8cd8e8b9e (diff)
downloadingen-5ce89c373085b4d8d435e1ab90662840e0f57e42.tar.gz
ingen-5ce89c373085b4d8d435e1ab90662840e0f57e42.tar.bz2
ingen-5ce89c373085b4d8d435e1ab90662840e0f57e42.zip
Set unique keyboard mnemonics for widgets.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2453 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/LoadPluginWindow.cpp6
-rw-r--r--src/gui/ingen_gui.glade111
2 files changed, 31 insertions, 86 deletions
diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp
index 5e12867e..86c8f317 100644
--- a/src/gui/LoadPluginWindow.cpp
+++ b/src/gui/LoadPluginWindow.cpp
@@ -53,9 +53,9 @@ LoadPluginWindow::LoadPluginWindow(BaseObjectType* cobject, const Glib::RefPtr<G
_plugins_liststore = Gtk::ListStore::create(_plugins_columns);
_plugins_treeview->set_model(_plugins_liststore);
_plugins_treeview->append_column("", _plugins_columns._col_icon);
- _plugins_treeview->append_column("Name", _plugins_columns._col_name);
- _plugins_treeview->append_column("Type", _plugins_columns._col_type);
- _plugins_treeview->append_column("URI", _plugins_columns._col_uri);
+ _plugins_treeview->append_column("_Name", _plugins_columns._col_name);
+ _plugins_treeview->append_column("_Type", _plugins_columns._col_type);
+ _plugins_treeview->append_column("_URI", _plugins_columns._col_uri);
// This could be nicer.. store the TreeViewColumns locally maybe?
_plugins_treeview->get_column(1)->set_sort_column(_plugins_columns._col_name);
diff --git a/src/gui/ingen_gui.glade b/src/gui/ingen_gui.glade
index 8c35c2e8..d11335b6 100644
--- a/src/gui/ingen_gui.glade
+++ b/src/gui/ingen_gui.glade
@@ -492,8 +492,10 @@
<widget class="GtkLabel" id="label66">
<property name="visible">True</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Node Name:</property>
+ <property name="label" translatable="yes">Node _Symbol:</property>
<property name="use_markup">True</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">load_plugin_name_entry</property>
</widget>
<packing>
<property name="top_attach">2</property>
@@ -554,7 +556,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="load_plugin_polyphonic_checkbutton">
- <property name="label" translatable="yes">Polyphonic</property>
+ <property name="label" translatable="yes">_Polyphonic</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -676,7 +678,9 @@
<widget class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Name: </property>
+ <property name="label" translatable="yes">_Symbol: </property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">new_subpatch_name_entry</property>
</widget>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -688,7 +692,9 @@
<widget class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Polyphony: </property>
+ <property name="label" translatable="yes">_Polyphony: </property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">new_subpatch_polyphony_spinbutton</property>
</widget>
<packing>
<property name="top_attach">1</property>
@@ -702,6 +708,7 @@
<widget class="GtkSpinButton" id="new_subpatch_polyphony_spinbutton">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="activates_default">True</property>
<property name="adjustment">1 0 100 1 10 0</property>
<property name="climb_rate">1</property>
</widget>
@@ -766,47 +773,13 @@
</child>
<child>
<widget class="GtkButton" id="new_subpatch_ok_button">
+ <property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">False</property>
- <child>
- <widget class="GtkAlignment" id="alignment2">
- <property name="visible">True</property>
- <property name="xscale">0</property>
- <property name="yscale">0</property>
- <child>
- <widget class="GtkHBox" id="hbox54">
- <property name="visible">True</property>
- <property name="spacing">2</property>
- <child>
- <widget class="GtkImage" id="image259">
- <property name="visible">True</property>
- <property name="stock">gtk-ok</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label96">
- <property name="visible">True</property>
- <property name="label">Create</property>
- <property name="use_underline">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
+ <property name="use_stock">True</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -1907,7 +1880,9 @@
<child>
<widget class="GtkLabel" id="label95">
<property name="visible">True</property>
- <property name="label" translatable="yes">Symbol: </property>
+ <property name="label" translatable="yes">_Symbol: </property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">rename_symbol_entry</property>
</widget>
<packing>
<property name="x_options">GTK_FILL</property>
@@ -1930,7 +1905,9 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
- <property name="label" translatable="yes">Label: </property>
+ <property name="label" translatable="yes">_Label: </property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">rename_label_entry</property>
</widget>
<packing>
<property name="top_attach">1</property>
@@ -1987,47 +1964,13 @@
</child>
<child>
<widget class="GtkButton" id="rename_ok_button">
+ <property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">False</property>
- <child>
- <widget class="GtkAlignment" id="alignment1">
- <property name="visible">True</property>
- <property name="xscale">0</property>
- <property name="yscale">0</property>
- <child>
- <widget class="GtkHBox" id="hbox52">
- <property name="visible">True</property>
- <property name="spacing">2</property>
- <child>
- <widget class="GtkImage" id="image258">
- <property name="visible">True</property>
- <property name="stock">gtk-ok</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <widget class="GtkLabel" id="label94">
- <property name="visible">True</property>
- <property name="label" translatable="yes">Rename</property>
- <property name="use_underline">True</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </widget>
- </child>
- </widget>
- </child>
+ <property name="use_stock">True</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -2236,7 +2179,7 @@ Contributors:
</child>
<child>
<widget class="GtkRadioButton" id="connect_server_radiobutton">
- <property name="label" translatable="yes">Connect to running server at: </property>
+ <property name="label" translatable="yes">_Connect to running server at: </property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -2250,7 +2193,7 @@ Contributors:
</child>
<child>
<widget class="GtkRadioButton" id="connect_launch_radiobutton">
- <property name="label" translatable="yes">Launch and connect to server on port: </property>
+ <property name="label" translatable="yes">_Launch and connect to server on port: </property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -2267,7 +2210,7 @@ Contributors:
</child>
<child>
<widget class="GtkRadioButton" id="connect_internal_radiobutton">
- <property name="label" translatable="yes">Use internal engine</property>
+ <property name="label" translatable="yes">Use _internal engine</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
@@ -2318,10 +2261,11 @@ Contributors:
<property name="layout_style">start</property>
<child>
<widget class="GtkButton" id="connect_deactivate_button">
- <property name="label" translatable="yes">Deactivate</property>
+ <property name="label" translatable="yes">D_eactivate</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>
@@ -2331,10 +2275,11 @@ Contributors:
</child>
<child>
<widget class="GtkButton" id="connect_activate_button">
- <property name="label" translatable="yes">Activate</property>
+ <property name="label" translatable="yes">_Activate</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="use_underline">True</property>
</widget>
<packing>
<property name="expand">False</property>