Re: [gtkmm] Problems with Gtk::MenuItem accelerators



On Tue, Sep 09, 2003 at 12:50:16AM +0200, Fredrik Arnerup wrote:
> You are making this more complicated than necessary. Use menu helpers instead.
> Read the tutorial: http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch10.html
> 
> Gtk::Menu_Helpers::MenuElem has constructors that take AccelKey arguments
> and handles the AccelMap stuff for you. You can do simply:
> my_menu_list.push_back("_Foo", AccelKey("<control>F"), slot(whatever));

Ok, thanks. And how can I save the bindings to file, then?

Regards

-- 
Simon Fuhrmann | NightSlayer at gmx.de | http://www.dismember.de
All people talk about the real life, but where can I download it?



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