Re: changing menu item labels

On Sun, 2007-12-09 at 09:18 -0500, Dr. Michael J. Chudobiak wrote:
Hi all,

Is there an easy way to dynamically change the label associated with a 
menu item?

  gtk_bin_get_child (GTK_BIN (menu_item))

will yield the child widget, which will be a GtkLabel most of the times,
unless you have been packing something else inside, in which case you
already know how to extract the label widget yourself.

It want to implement a menu containing a fixed number of used-defined 
scripts with user-defined names. I would like the user-defined names to 
appear in the menu.

dynamically created menus are usually better implemented using
GtkUIManager and placeholders.


Emmanuele Bassi,

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