Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Glade
  • » [Glade-devel] Menu and accelerators [RSS Feed]

#1 Sept. 1, 2010 13:59:27

Olivier D.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[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 herehttp://src.delhomme.org/heraia/bugs/wrong_accelerators.pngYou 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-devel@lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/glade-devel

Offline

#2 Oct. 26, 2013 17:40:31

Ikem
Registered: 2013-10-26
Posts: 1
Reputation: +  0  -
Profile   Send e-mail  

[Glade-devel] Menu and accelerators

That let <ctrl>+<x> trigger the menu item:

<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>
<accelerator key="x" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</object>
</child>

Offline

  • Root
  • » Glade
  • » [Glade-devel] Menu and accelerators [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support