Olivier Delhomme
2010-09-01 12:59:20 UTC
Hello,
A few time ago I discovered that switching from libglade to gtkbuilder
the menu accelerators were gone ! I found that if I declare one
accelerator group an affect it to the menu, the accelerators are back
.... except for some ones ! I can not figure out why. Is anyone here
having an idea about that somebody has already had the problem ?
Here is an example with the UI definition :
<child>
<object class="GtkImageMenuItem" id="menu_redo">
<property name="label">gtk-redo</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
<property
name="accel_group">accel_main_window</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="menuitem1">
<property name="visible">True</property>
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="menu_cut">
<property name="label">gtk-cut</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
<property
name="accel_group">accel_main_window</property>
<signal name="activate" handler="on_cut_activate"/>
</object>
</child>
And here
Loading Image...
You can see that the accelerators for the redo (RĂ©tablir) menu is not
here were as the accelerators for cut menu (couper Ctrl-X) is there. I
tried with LANG=C but it changes nothing. Am I missing something
obvious ?
Thanks.
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
A few time ago I discovered that switching from libglade to gtkbuilder
the menu accelerators were gone ! I found that if I declare one
accelerator group an affect it to the menu, the accelerators are back
.... except for some ones ! I can not figure out why. Is anyone here
having an idea about that somebody has already had the problem ?
Here is an example with the UI definition :
<child>
<object class="GtkImageMenuItem" id="menu_redo">
<property name="label">gtk-redo</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
<property
name="accel_group">accel_main_window</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="menuitem1">
<property name="visible">True</property>
</object>
</child>
<child>
<object class="GtkImageMenuItem" id="menu_cut">
<property name="label">gtk-cut</property>
<property name="visible">True</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
<property
name="accel_group">accel_main_window</property>
<signal name="activate" handler="on_cut_activate"/>
</object>
</child>
And here
Loading Image...
You can see that the accelerators for the redo (RĂ©tablir) menu is not
here were as the accelerators for cut menu (couper Ctrl-X) is there. I
tried with LANG=C but it changes nothing. Am I missing something
obvious ?
Thanks.
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel