Re: GtkMenuItems and popup menus
| From: | Andrei Zmievski | Date: | Thu, 12 Jul 2001 17:48:55 +0000 |
| Subject: | Re: GtkMenuItems and popup menus | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2144@lists.php.net to get a copy of this message | ||
Can you provide a bit more of a code in context for me to work with?
And which version of PHP-GTK you are using and all that.
On Thu, 12 Jul 2001, Rich Payne wrote:
>
> I'm trying to create a popup menu with a separator in the middle, now I
> came accross this in the GTK+ docs:
>
> "The GtkHSeparator widget is not used as a separator within menus. To
> create a separator in a menu create an empty GtkMenuItem widget using
> gtk_menu_item_new() and add it to the menu with gtk_menu_append()"
>
> OK, so I do that and end up not with a serparator, but just a blank
> menuitem in the middle of the popup menu.
>
> Actually if I code it as
> $misep = &new GtkMenuItem('');
> then I get an empty menu item, if I use:
> $misep = &new GtkMenuItem();
>
> (as above) I get a core dump on startup. It looks like it always calls
> gtk_menu_item_new_with_label (looking at the backtrace).
>
> Is this something incorrect in the GTK docs....or just a bug?
>
> thanks,
> --rdp
>
> --
> Rich Payne
> rpayne@alphalinux.org www.alphalinux.org
>
>
> --
> PHP GTK Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
-Andrei
Commitment, n.:
Commitment can be illustrated by a breakfast of ham and eggs. The chicken
was involved, the pig was committed.