Gtk3 fixes for tagging

svn: r20226
This commit is contained in:
Nick Hall 2012-08-16 20:44:36 +00:00
parent 5c754506e0
commit 5c6f4cf551

View File

@ -35,6 +35,7 @@ from xml.sax.saxutils import escape
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gi.repository import Gtk 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. Determine the position of the popup menu.
""" """
x_pos, y_pos = button.window.get_origin() ret_val, x_pos, y_pos = button.get_window().get_origin()
x_pos += button.allocation.x x_pos += button.get_allocation().x
y_pos += button.allocation.y + button.allocation.height y_pos += button.get_allocation().y + button.get_allocation().height
return (x_pos, y_pos, False) return (x_pos, y_pos, False)