Re: gtk_image_menu_item() API problems

Martin Baulig <martin home-of-linux org> writes: 
> How, should I add an accessor function for it or this property ?

There are various ways:

 gtk_label_set_text (GTK_BIN (menuitem)->child, "foo");

Hmm, the usual thing like this won't work:

 label = gtk_label_new ();
 mi = gtk_image_menu_item_new ();
 gtk_container_add (mi, label);
 gtk_label_set_text (label, "foo"); 

Maybe we need new_with_label() and have _new() take no arguments, for
consistency with GtkMenuItem.


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