diff options
author | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2009-07-03 23:40:24 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2009-07-03 23:40:24 -0400 |
commit | e503626cf74ac1e6588b33c317db163066b031b7 (patch) | |
tree | 705e5a1bfdb0f5c3acd51bbef3dd1b7d815c411a | |
parent | 49790c0bfa899b63444bcd6d2e5cd0fa7c2dbfef (diff) |
Add keyboard accelerators for zooming in and out
-rw-r--r-- | siv.glade | 38 |
1 files changed, 32 insertions, 6 deletions
@@ -158,18 +158,44 @@ <child> <widget class="GtkImageMenuItem" id="menu_zoom_in"> <property name="visible">True</property> - <property name="label">gtk-zoom-in</property> - <property name="use_stock">True</property> - <signal name="activate" handler="on_zoom_in1_activate" last_modification_time="Sat, 08 Mar 2008 14:28:25 GMT"/> + <property name="label" translatable="yes">Zoom _In</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_zoom_in_activate" last_modification_time="Sat, 08 Mar 2008 14:28:25 GMT"/> + <accelerator key="plus" modifiers="GDK_CONTROL_MASK" signal="activate"/> + + <child internal-child="image"> + <widget class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="stock">gtk-zoom-in</property> + <property name="icon_size">1</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> </widget> </child> <child> <widget class="GtkImageMenuItem" id="menu_zoom_out"> <property name="visible">True</property> - <property name="label">gtk-zoom-out</property> - <property name="use_stock">True</property> - <signal name="activate" handler="on_zoom_out1_activate" last_modification_time="Sat, 08 Mar 2008 14:28:25 GMT"/> + <property name="label" translatable="yes">Zoom _Out</property> + <property name="use_underline">True</property> + <signal name="activate" handler="on_menu_zoom_out_activate" last_modification_time="Sat, 08 Mar 2008 14:28:25 GMT"/> + <accelerator key="minus" modifiers="GDK_CONTROL_MASK" signal="activate"/> + + <child internal-child="image"> + <widget class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="stock">gtk-zoom-out</property> + <property name="icon_size">1</property> + <property name="xalign">0.5</property> + <property name="yalign">0.5</property> + <property name="xpad">0</property> + <property name="ypad">0</property> + </widget> + </child> </widget> </child> |