hi, atually the approach we've folowed is slightly diff.......... we referred www.gnome.org/projectc/ORBit2/appletstutorial.html
to answer ur questions: 1)callbacks for interacting with the menu that has 3items are get_request,display_about and set_request(Ive not shown them here).We associate them using this function:- static const BonoboUIVerb myexample_menu_verbs [] = { BONOBO_UI_VERB ("pepGet", get_request), BONOBO_UI_VERB ("pepAbout", display_about), BONOBO_UI_VERB ("pepStatus", set_request), BONOBO_UI_VERB_END }; somewhere in callbacks i've used:- gtk_widget_set_sensitive("pepStatus",FALSE); 2) Menu dialog creation not there. To invoke the menu we defined the context menu and called using this function that fills the applet and loads it:- static gboolean myexample_applet_fill (PanelApplet *applet, const gchar *iid, gpointer data) { GtkWidget *event_box; GtkWidget *image; if (strcmp (iid, "OAFIID:ExampleApplet") != 0) return FALSE; image = gtk_image_new_from_file("icon.ico"); event_box = gtk_event_box_new(); gtk_container_add (GTK_CONTAINER (event_box), image); gtk_container_add (GTK_CONTAINER (applet), event_box); gtk_widget_show_all (GTK_WIDGET (applet)); panel_applet_setup_menu (PANEL_APPLET (applet), Context_menu_un_xml, myexample_menu_verbs, NULL); return TRUE; } the context menuw as defined as:- static const char Context_menu_un_xml [] = "<popup name=\"button3\">\n" " <menuitem name=\"mnuGet\" " " verb=\"pepGet\" " " _label=\"_Get Status\"\n" " pixtype=' " " pixname=' />\n" " <menuitem name=\"mnuStatus\" " " verb=\"pepStatus\" " " _label=\"_Unknown\"\n" " pixtype=' " " sensitive=False " " pixname=' />\n" " <menuitem name=\"mnuAbout\" " " verb=\"pepAbout\" " " _label=\"_About\"\n" " pixtype=' " " pixname=' />\n" "</popup>\n"; 3) To associate the .server file with the code we are to use:- PANEL_APPLET_BONOBO_FACTORY ("OAFIID:ExampleApplet_Factory", PANEL_TYPE_APPLET, "The Hello World Applet", "0", myexample_applet_fill, NULL); 4) for diaologs we've used another fucntion but thats only a alert box which we wanted modal! so basically as u said to make a dialog creation signature etc to get a GTKWidget, i could nt quite get........ Sorry if this is a silly query but i'm new to this and dunno how to handle bonobo component etc. Btw can u suggest a comprehensive source for understanding the basics.The different versions and their references are confusing. Thank u so much! _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list