Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
0119451d by wurstsalat at 2022-05-31T17:26:44+02:00
imprv: ChatList: Add middle mouse click for closing a chat
- - - - -
1 changed file:
- gajim/gtk/chat_list.py
Changes:
=====================================
gajim/gtk/chat_list.py
=====================================
@@ -692,6 +692,10 @@ def _on_button_press(self,
) -> None:
if event.button == 3: # right click
self._popup_menu(event)
+ elif event.button == 2: # middle click
+ app.window.activate_action(
+ 'remove-chat',
+ GLib.Variant('as', [self.account, str(self.jid)]))
def _popup_menu(self, event: Gdk.EventButton):
menu = get_chat_list_row_menu(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0119451de10d67708395cf68ecc7a7836e49b895
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/0119451de10d67708395cf68ecc7a7836e49b895
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits