Re: GtkMenu::popup() parameters?

From: Date: Thu, 23 Mar 2006 07:55:19 +0000
Subject: Re: GtkMenu::popup() parameters?
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2668@lists.php.net to get a copy of this message
Check out Gtk+ docs for gtk_menu_popup. -Andrei On Mar 22, 2006, at 11:14 PM, Christian Weiske wrote:
Hello 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:
    if (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


« previous php.gtk.dev (#2668) next »