Re: Problems with Gnome2::App::create_menus



On Sat, 2006-02-11 at 17:23 +0000, PellePop wrote:

I wonder if anyone knows how to use a GnomeUIInfo thingy in a 
create_menus context.

Basically, you just don't use it at all.  It's deprecated and ugly.  Use
Gtk2::GladeXML or Gtk2::UIManager.

Which works fine part from accelerator_key which I want to be bound to 
ctrl-q. What do I type there?

Use the appropriate key symbol for accelerator_key and "control-mask"
for ac_mods:

  use Gtk2::Gdk::Keysyms;
  ...
    accelerator_key => $Gtk2::Gdk::Keysyms{q},
    ac_mods => 'control-mask'
  ...

-- 
Bye,
-Torsten




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