[9034] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: menu accelerators with Gtk--

daemon@ATHENA.MIT.EDU (Lixin Tang)
Sat Oct 3 21:35:44 1998

Date: Sat, 3 Oct 1998 18:35:16 -0700 (PDT)
From: Lixin Tang <ltang@auto.ugcs.caltech.edu>
To: gtk-list@redhat.com
In-Reply-To: <Pine.LNX.4.02.9810031932510.11304-100000@mail.pathwaynet.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Maybe I should ask this question from Guillaume or Tero - has accelgroup
been implemented in the latest Gtk-- and if not, when? I still don't see
the accelerator key working in testgtkmm.cc (Gtk--0.9.16). Yet I don't
know how to work with Gtk_AcceleratorTable coherently with Gtk_MenuFactory
and MenuFactoryConnectorBase into a window menu. Your suggestion is
appreciated.

Lixin Tang

>> > Guillaume Laurent wrote:
>> > 
>> > > Marsel Osipov <virtuoso@jps.net> writes:
>> > >
>> > > See testgtkmm.cc in the examples/ directory of Gtk--, and the
>> > > add_entry() methods in src/menufactory.gen_h (the accelerator is the
>> > > 2nd parameter).
>> > 
>> > I knew that, but it does not work. When I press the accelerator key on a
>> > keyboard(hm...let's say "Q" for quit), nothing happens. Do you I need to set
>> > up a Gtk_AcceleratorTable? If yes, do you know how?
>>
>> I've encountered the same problem. In the gtk-- version (0.9.14) I am
>> using, Gtk_MenuFactory::get_accelerator_table(), Gtk_Window::add/
>> remove_accelerator_table() functions don't exist as in earlier versions.
>> Do I need to set up Gtk_AccelGroup instead? and how if yes?
>
>(answering both Marsel and Lixin).
>
>Sorry for the dumb answer. Gtk_AccelGroup simply isn't fully
>implemented yet (should be anytime now, Tero said he'd done it and was
>about to check it in CVS, it's probably already in there), and a quick
>check show that there are also a couple of accel_group related methods
>missing from Gtk_Menu for 1.1.1 (I'll correct that tonight).
>
>As for the exact method to use, sorry, I don't now :-(. According to
>testgtk.c, just setting the accel_group should be enough.

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post