On Wed, Feb 21, 2007 at 10:40:07PM -0500, Dan McMahill wrote:
> Question #1
> 
>    - is it possible to keep certain menuitems in the xml and the 
> associated GtkActionEntry but toggle if they are visible or not? 
> Something like gtk_widget_hide() and gtk_widget_show()?  Or do I have to 
> basically tear down the menus, regen the xml and create the menus again?

1. GtkAction has "visibility" property.
2. GtkUIManager can demerge UIs.

Choose what's more suitable for your use case...

> Question #2
> 
>    - What does it take to change the text in some menus that already 
> exist?  Do I have to do
>    gtk_ui_manager_remove_action_group()
> 
>    then create a new action group, insert to the ui manager and call 
> gtk_action_group_add_actions?
> 
> Or is there a simpler way?

GtkAction has "label" property.

Yeti


--
Whatever.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to