Closed kaspernj closed 12 years ago
This method seems to be 'unintrospectable', meaning it's not available for GirFFI automatically. I'll take a look to see if I can add an override for it; perhaps it can be implemented in terms of popup_for_device
.
Is there any other way to show the menu? Calling show doesn't do the trick for me. In Gtk2 I also used the 'popup'-method.
popup_for_device
basically handles this, and popup
is just a convenience function, even in the C implementation.
Anyway, I've implemented Gtk::Menu#popup
in the new release, 0.4.1.
Please see the following example which fails with "undefined method 'popup'". https://github.com/kaspernj/gir_ffi-gtk/blob/master/examples/07_statusicon.rb
According to the documentation and a Python-example, this method should exist: http://developer.gnome.org/gtk3/3.0/GtkMenu.html http://stackoverflow.com/questions/11381401/set-the-hover-background-color-of-a-gtk3-menuitem http://developer.gnome.org/gtk3/3.5/GtkMenu.html