Re: Who to replace deprecated functions



On Fri, Aug 03, 2007 at 06:13:08PM +0200, Joerg Anders wrote:

2.) How can I replace "gtk_menu_append()"? In concrete case I want
     to add and remove some "GtkMenuItem"s dynamically. After a long
     search I found that a combination of:

       gtk_action_group_add_action(...)
       gtk_ui_manager_add_ui_from_string(...)

     can append a new menu item. But how can I remove a menu item?

This one is easy: gtk_ui_manager_add_ui_from_string()
returns a merge id.  And that's what you pass to
gtk_ui_manager_remove_ui() remove it again.

Yeti

--
http://gwyddion.net/



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