guile-gtk-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtk-menu-popup


From: Andy Wingo
Subject: Re: gtk-menu-popup
Date: Thu, 10 Apr 2008 00:16:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Hey folks,

On Tue 12 Feb 2008 06:49, steve tell <address@hidden> 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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]