Re: gtk-menu-popup
Andy Wingo <[email protected]>
| Newsgroups | gmane.lisp.guile.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hey folks, On Tue 12 Feb 2008 06:49, steve tell <[email protected]> writes: > On Sat, 9 Feb 2008, a r wrote: >> I can't access "gtk-menu-popup" function > > It seems to have gone missing somewhere between 2.15.94 and 2.15.96, as > this diff of gtk/gnome/overrides/defs shows: > > *************** > *** 240,260 **** > > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > ;; GtkMenu > - ;; fixme: need a better wrapper for this one > - (define-method popup > - (of-object "GtkMenu") > - (c-name "gtk_menu_popup") > - (overrides "gtk_menu_popup") > - (return-type "none") > - (parameters > - '("GtkWidget*" "parent_menu_shell" (null-ok)) > - '("GtkWidget*" "parent_menu_item" (null-ok)) > - '("GtkMenuPositionFunc" "func" (null-ok)) > - '("gpointer" "data" (null-ok)) > - '("guint" "button") > - '("guint32" "activate_time") > - ) > - ) So, sorry about this, and the wait in fixing. The particular reason for taking out the old binding was that the argument signature is incorrect for scheme, because the gpointer argument would never be used. But as many people have noted the lack of this function, I went ahead and did a more-or-less proper wrapper. The function argument can be #f, or a function that takes a menu and returns a list of x, y, push_in, as per the gtk_menu_popup docs. Would be nice to doc this inside guile-gnome itself. Anyway, I just pushed that, and should get a release out tomorrow if everything goes well. Cheers, Andy -- http://wingolog.org/