Comment 0 for bug 1171433

Revision history for this message
Viktor Suprun (popsul1993) wrote :

Hi guys!
I'm using a Python and gir bindings to libgtk3, and I've trouble with Gtk.Menu
(and gi.overrides.Menu) and guess that is bug. After calling

menu.popup(None, None, lambda menu, data: (event.get_root_coords()[0],
event.get_root_coords()[1], True), None, event.button, event.time)

the popup-menu doesn't appear, if menu has added within ListView/TreeView or
some other widgets. Popup menu works only if it was been added on Tab of the
Notetab widget.

I've roughly the list of package versions:
$ dpkg -l | grep -E "ii\s\s(python|python-gi|gir1.2-gtk-3.0|libgtk-3-0)(\s|\:)"
ii gir1.2-gtk-3.0 3.6.4-0ubuntu7 amd64 GTK+ graphical
user interface library -- gir bindings
ii libgtk-3-0:amd64 3.6.4-0ubuntu7 amd64 GTK+ graphical
user interface library
ii python 2.7.4-0ubuntu1 amd64 interactive
high-level object-oriented language (default version)
ii python-gi 3.8.0-2 amd64 Python 2.x
bindings for gobject-introspection libraries

(latest version of the Ubuntu, 13.04).
But, under Ubuntu 12.10 with following list of packages all be ok, and menu
appearing:
ii gir1.2-gtk-3.0 3.6.0-0ubuntu3.2 amd64 GTK+ graphical
user interface library -- gir bindings
ii libgtk-3-0:amd64 3.6.0-0ubuntu3.2 amd64 GTK+ graphical
user interface library
ii python 2.7.3-0ubuntu7 amd64 interactive
high-level object-oriented language (default version)
ii python-gi 3.4.0-1ubuntu0.1 amd64 Python 2.x
bindings for gobject-introspection libraries