Problems adding menu to panel applet



Now that I've actually been able to load my GNOME 2 applet, I want to add a menu to it. I'm trying the following:

  static const BonoboUIVerb menuVerbs[] = {
    BONOBO_UI_VERB("IntranetAbout", about),
    BONOBO_UI_VERB_END
  };

  static const char menu[]="<Root>\n"
    "  <popups>\n"
    "    <popup name=\"button3\">\n"
" <menuitem name=\"about\" verb=\"IntranetAbout\" label=\"About...\"\n"
    "                pixtype=\"stock\" pixname=\"gnome-stock-about\"/>\n"
    "    </popup>\n"
    "  </popups>\n"
    "</Root>\n";
panel_applet_setup_menu(PANEL_APPLET(applet), menu, menuVerbs, applet);

But it doesn't seem to work - I get no right-click menu at all, not even one containing buttons like "Remote from panel", "Move" etc.

Can anyone tell me what's wrong?

--
- Toralf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]