[Glade-devel] Menu and accelerators



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
http://src.delhomme.org/heraia/bugs/wrong_accelerators.png

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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]