Attaching a menu to a clist row

From: Date: Thu, 06 Feb 2003 02:08:22 +0000
Subject: Attaching a menu to a clist row
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3010@lists.php.net to get a copy of this message
I have the following example menu: ............................... $menu=new GtkMenu(); $menu_item1=new GtkMenuItem("menuitem 1"); $menu_item1->connect("activate", "somefunction"); $menu->append($menu_item1); $menu_item2=new GtkMenuItem("menuitem 2"); $menu_item2->connect("activate", "somefunction2"); $menu->append($menu_item2); ............................... How would I got about attaching this to a row on a clist so that when a user clicks right mouse button on a row the menu pops up? Im assuming id have to use something like "attach_to_widget()"? Cheers.

« previous php.gtk.general (#3010) next »