From 5c6f4cf551382bc84901a55234f38ff0170afa78 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 16 Aug 2012 20:44:36 +0000 Subject: [PATCH] Gtk3 fixes for tagging svn: r20226 --- src/gui/views/tags.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/views/tags.py b/src/gui/views/tags.py index 32faaa219..b69d5b946 100644 --- a/src/gui/views/tags.py +++ b/src/gui/views/tags.py @@ -35,6 +35,7 @@ from xml.sax.saxutils import escape # #------------------------------------------------------------------------- from gi.repository import Gtk +from gi.repository import Gdk #------------------------------------------------------------------------- # @@ -280,9 +281,9 @@ def cb_menu_position(menu, button): """ Determine the position of the popup menu. """ - x_pos, y_pos = button.window.get_origin() - x_pos += button.allocation.x - y_pos += button.allocation.y + button.allocation.height + ret_val, x_pos, y_pos = button.get_window().get_origin() + x_pos += button.get_allocation().x + y_pos += button.get_allocation().y + button.get_allocation().height return (x_pos, y_pos, False)