Re: GtkMenu popup ? VOTE FOR THE MOUSE!

From: Date: Thu, 12 Apr 2001 11:25:20 +0000
Subject: Re: GtkMenu popup ? VOTE FOR THE MOUSE!
References: 1 2 3  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1355@lists.php.net to get a copy of this message
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

« previous php.gtk (#1355) next »