diff options
author | Philipp Hörist <philipp@hoerist.com> | 2022-10-02 21:09:23 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2022-10-02 21:09:23 +0300 |
commit | 0f44c5d423f809ba0f3da8868bda9dd0c8f19133 (patch) | |
tree | 85dba9c6b404c8b9c0db7b38fe86fbcc461a830c | |
parent | e17cb70d070ea7d5026f2c25e33bdef7181d4352 (diff) |
refactor: ChatListRow: Use Gdk button enums
-rw-r--r-- | gajim/gtk/chat_list_row.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gajim/gtk/chat_list_row.py b/gajim/gtk/chat_list_row.py index a57800b70..f8996873d 100644 --- a/gajim/gtk/chat_list_row.py +++ b/gajim/gtk/chat_list_row.py @@ -419,9 +419,11 @@ class ChatListRow(Gtk.ListBoxRow): _widget: Gtk.EventBox, event: Gdk.EventButton ) -> None: - if event.button == 3: # right click + + if event.button == Gdk.BUTTON_SECONDARY: self._popup_menu(event) - elif event.button == 2: # middle click + + elif event.button == Gdk.BUTTON_MIDDLE: app.window.activate_action( 'remove-chat', GLib.Variant('as', [self.account, str(self.jid)])) |