Re: gtk_image_menu_item() API problems
- From: Havoc Pennington <hp redhat com>
- To: Martin Baulig <martin home-of-linux org>
- Cc: gtk-devel-list gnome org
- Subject: Re: gtk_image_menu_item() API problems
- Date: 28 Apr 2001 12:15:40 -0400
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.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]