Re: question on gtk_menu_item_set_submenu
- From: Maciej Katafiasz <mnews22 wp pl>
- To: Allin Cottrell <cottrell wfu edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: question on gtk_menu_item_set_submenu
- Date: Sat, 18 Sep 2004 22:24:08 +0200
Dnia 17-09-2004, pią o godzinie 17:24 -0400, Allin Cottrell napisał(a):
I'm using gtk_menu_item_set_submenu to attach a little submenu to a
certain item in a popup menu. So far so good, but I'd like the same
submenu to appear "beneath" more than one item in the primary popup
menu. When I call gtk_menu_item_set_submenu for a second time, with a
different attachment-point parameter but the same submenu parameter, I
see this at runtime:
Gtk-WARNING **: gtk_menu_attach_to_widget(): menu
already attached to GtkMenuItem
Is this bad? Should I be doing this in a different way?
(gtk version is 2.4.9)
in gtk-demo app (comes with gtk+ source distribution, in Debian it's in
gtk2.0-examples package, dunno for other distros), there's menu example
which does just that. I guess it'd need additional consideration if you
wanted to do that via UIManager though.
HTH,
Maciej
--
"Tautologizm to coś tautologicznego"
Maciej Katafiasz <mnews2 wp pl>
http://mathrick.blog.pl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]