how to insert a menu_item into the middle of a menu list ?
- From: Gregory Hosler <ghosler redhat com>
- To: gtk-app-devel-list gnome org
- Subject: how to insert a menu_item into the middle of a menu list ?
- Date: Sun, 27 Jan 2008 22:42:47 +0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
I'm wanting to implement plugin's for an application I'm working on, and one of the things
I want to do is to allow the plugin's to add items to existing menus.
I have a gtk_menu, and i do container add's to add all my gtk_image_menu_item's to it.
Each new item will get added to the end of the menu. That's fine.
Now, for plugin's, I want to give a plugin the ability to add a menu entry at a certain
position in the gtk_menu container.
The thought occurred to me that I can insert a separator and remember that widget as the
widget to add AFTER. but I cannot figure out how to insert a widget into a specific
location in a container.
any thoughts or suggestions ?
many thanks in advance,
- -Greg
- --
+---------------------------------------------------------------------+
Please also check the log file at "/dev/null" for additional information.
(from /var/log/Xorg.setup.log)
| Greg Hosler ghosler redhat com |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFHnJhl404fl/0CV/QRAmzPAJoDsCFQD1iw66fBmks2lFOdvu/6ygCcDmYZ
5eglOTfCLw3ldX5vIGOI4KM=
=0cMw
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]