Re: GtkMenu::popup() parameters?
| From: | Andrei Zmievski | Date: | Thu, 23 Mar 2006 18:06:55 +0000 |
| Subject: | Re: GtkMenu::popup() parameters? | ||
| References: | 1 2 3 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2673@lists.php.net to get a copy of this message | ||
It's optional only if you don't pass user args.
On Mar 23, 2006, at 12:00 AM, Steph Fox wrote:
You could even check out the docs for PHP-GTK 1 - I vividly remember writing them! The behaviour hasn't changed wildly, it's just that everything's optional now. http://gtk.php.net/manual/en/gtk.gtkmenu.method.popup.phpCheck out Gtk+ docs for gtk_menu_popup. -Andrei On Mar 22, 2006, at 11:14 PM, Christian Weiske wrote:-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpHello all, Could somebody explain the popup() paramters of GtkMenu to me? I would expect passing X and Y, but that's not the case - it wants some widgets I don't understand. That's the override code:-- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ NOD32 1.1380 (20060125) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.comif (ZEND_NUM_ARGS() > 5) { if (!php_gtk_parse_varargs(ZEND_NUM_ARGS(), 5, &user_args,"NNVii", &php_pms, gtkwidget_ce, &php_pmi, gtkwidget_ce, &callback, &button, &time)) {return; } } else { if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|NNVii", &php_pms,gtkwidget_ce, &php_pmi, gtkwidget_ce, &callback, &button, &time)) {return; } }I have no idea what php_pmi and php_pms actually are (the are gtkwidgets, but what do they and why do I need them?). -- Regards/MfG, Christian Weiske