Fwd: Dynamically building panel applet popup menu
- From: Toralf Lund <toralf procaptura com>
- To: Red Hat GNOME List <gnome-redhat-list gnome org>
- Subject: Fwd: Dynamically building panel applet popup menu
- Date: Thu, 19 Jun 2003 09:50:57 +0200
--- Begin Message ---
- From: Toralf Lund <toralf procaptura com>
- To: GNOME mailing list <gnome-list gnome org>
- Subject: Dynamically building panel applet popup menu
- Date: Wed, 18 Jun 2003 16:31:21 +0200
My panel applet problem (see previous posts) from yet another angle:
What I want to do is build a menu in a dynamic fashion, as opposed to from
a static XML string or file. The exact contents of the menu depends on a
config file. (The config is *not* a direct description of the menu, but
details on the menu can be derived from it.) In GNOME 1 this was straight
forward as the menu was built one item at a time anyway, but with GNOME-2
it turns out to be quite tricky. I'm trying to incrementally build an XML
string, then call panel_applet_setup_menu() as usual, but it doesn't work
out right as I can't find a way to distinguish the menu items from each
other in my callback. I could use an unique verb for each item, but then
would have to build the BonoboUIVerb list dynamically, too, and the code
would be starting to look quite horrible... Is there a better way to go
about this?
- Toralf
_______________________________________________
gnome-list mailing list
gnome-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-list
--- End Message ---
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]