Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2022-10-02 21:09:23 +0300
committerPhilipp Hörist <philipp@hoerist.com>2022-10-02 21:09:23 +0300
commit0f44c5d423f809ba0f3da8868bda9dd0c8f19133 (patch)
tree85dba9c6b404c8b9c0db7b38fe86fbcc461a830c
parente17cb70d070ea7d5026f2c25e33bdef7181d4352 (diff)
refactor: ChatListRow: Use Gdk button enums
-rw-r--r--gajim/gtk/chat_list_row.py6
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)]))