Re: GtkMenu popup ? VOTE FOR THE MOUSE!

From: Date: Thu, 12 Apr 2001 13:44:26 +0000
Subject: Re: GtkMenu popup ? VOTE FOR THE MOUSE!
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1361@lists.php.net to get a copy of this message
Yes menus. No popups. First place I looked, too. ----- Original Message ----- From: "Bri" <brian@ukip.com> To: "Steph" <steph.fox@btinternet.com> Sent: Thursday, April 12, 2001 2:55 PM Subject: RE: [PHP-GTK] GtkMenu popup ? VOTE FOR THE MOUSE! I've seen menu's on one of Andrei's examples the gtk.php one -----Original Message----- From: Steph [mailto:Steph.Fox@btinternet.com] Sent: Thursday, April 12, 2001 2:40 PM To: Andrei Zmievski; php-gtk@lists.php.net Subject: Fw: [PHP-GTK] GtkMenu popup ? VOTE FOR THE MOUSE! Chuff it, I'm "verwirren"'ed up to the eyeballs with this one! Is popup implemented, or isn't it? ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Markus Fischer" <mfischer@josefine.ben.tuwien.ac.at>; <php-gtk@lists.php.net> Sent: Thursday, April 12, 2001 12:25 PM Subject: Re: [PHP-GTK] GtkMenu popup ? VOTE FOR THE MOUSE! Markus, hi again - GtkMenuShell and all its followers should/do inherit this method from GtkWidget in php-gtk. GtkItemFactory has its own version. I think you got your several parameters from the gtk manual? Are you using GtkMenu or are you using GtkItemFactory at this point? My "result" (ie an error message *actually mentioning popup by name*!) came through GtkItemFactory; I haven't experimented with GtkMenu at all yet. GtkItemFactory's popup definitely only has 2 parameters. I would like to point out that both mystery parameters are integers, therefore they have to be either co-ordinates (as you say) or else (mouse-)button & activating time - all the other alternatives are strings. I've experimented a little and found no apparent response when I tested the co-ordinates theory, and am verwirren (- noch einmal -) as to why they're there at all, given that the menus need a window to display through. Activating button/mouse and time would make more sense, if I'd any idea how to make those into integers I'd have tried it by now. All morsels considered - Steph ----- Original Message ----- From: "Markus Fischer" <mfischer@josefine.ben.tuwien.ac.at> To: "Steph" <steph.fox@btinternet.com> Cc: <php-gtk@lists.php.net> Sent: Thursday, April 12, 2001 11:31 AM Subject: Re: [PHP-GTK] GtkMenu popup ? On Thu, Apr 12, 2001 at 08:01:39AM +0100, Steph wrote : > Hey hey Markus, I got an error message out of popup!!!!! > > It complained about not having a parent window. > > Show() in the same space worked .... > > I presume therefore that you need to set up parent/child > relationships somehow for popup to work. I've looked around a bit in the sources. The gtk+ function gtk_menu_popup is only in php-gtk/generate/gtk.defs but its not anywhere in php-gtk/src/php_gtk_gen_gtk.c . When $menu->popup() is called it's not gtk_menu_popup ( 6 parameters without the widget) but instead GtkWidget::popup seems to be called ( two parameters, x and y coordinates). Also, in function_entry php_gtk_menu_functions[] in php-gtk/src/php_gtk_gen_gtk.c there's no popup function mentioned. Andrei, can you comment on this ? cheers, 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 -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.gtk (#1361) next »