[Bug 1171433] [NEW] Popup menu doesn't work

POPSuL 1171433 at bugs.launchpad.net
Mon Apr 22 12:02:10 UTC 2013


Public bug reported:

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

** Affects: gobject-introspection (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Code example"
   https://bugs.launchpad.net/bugs/1171433/+attachment/3650560/+files/test_menu.py

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gobject-introspection in
Ubuntu.
https://bugs.launchpad.net/bugs/1171433

Title:
  Popup menu doesn't work

Status in “gobject-introspection” package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gobject-introspection/+bug/1171433/+subscriptions




More information about the foundations-bugs mailing list