From 38581b7080c16e6b4caf8a76de4ebbcd6a0b337e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Fri, 3 Feb 2017 11:17:00 +0100 Subject: [PATCH] Fix roster popup menu. Replace Gdk.Event with Gdk.Event.new, so that event is constructed with correct type information. This fixes showing a roster popup menu when launched using keyboard shortcut (Menu key or Shift-F10). --- src/roster_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 324b412e8..a924288d6 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -3967,7 +3967,7 @@ class RosterWindow: self.on_history(widget, contact, account) def on_roster_window_popup_menu(self, widget): - event = Gdk.Event(Gdk.EventType.KEY_PRESS) + event = Gdk.Event.new(Gdk.EventType.KEY_PRESS) self.show_treeview_menu(event) def on_row_activated(self, widget, path):