GtkMenu popup ?

From: Date: Thu, 12 Apr 2001 01:15:07 +0000
Subject: GtkMenu popup ?
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1352@lists.php.net to get a copy of this message
Hi, Anyone got GtkMenu popups successfully running ? I guess its really a gtk+ problem on my own, but maybe soneome has an idea why the popup does not work ? <? dl( 'php_gtk.' . (strstr( PHP_OS, 'WIN') ? 'dll' : 'so')); $w = &new GtkWindow(); $w->connect( 'delete_event', create_function( '', 'Gtk::main_quit();')); $b = &new GtkButton( 'Press me'); $b->connect( 'clicked', 'showpopup'); $w->add( $b); $w->show_all(); $m = &new GtkMenu(); $mi = &new GtkMenuItem( 'Entry 1'); $m->add( $mi); $mi = &new GtkMenuItem( 'Entry 2'); $m->add( $mi); $m->show_all(); Gtk::main(); function showpopup() { global $m; // $m->popup( 1, 0); $m->popup( 1, mktime()); } ?> Following the docs it should work, or did I missed something ? thanks for any help Markus -- Markus Fischer, http://josefine.ben.tuwien.ac.at/~mfischer/ EMail: mfischer@josefine.ben.tuwien.ac.at PGP Public Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0

« previous php.gtk (#1352) next »