Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
00e3e9df by wurstsalat at 2021-03-06T11:17:45+01:00
Roster: Open chat when activating row
- - - - -
1 changed file:
- gajim/gtk/roster.py
Changes:
=====================================
gajim/gtk/roster.py
=====================================
@@ -8,7 +8,6 @@
from gi.repository import Gio
from gi.repository import GLib
from gi.repository import Gtk
-from gi.repository import GObject
from gajim.common import app
from gajim.common import ged
@@ -44,14 +43,6 @@ class Column(IntEnum):
class Roster(Gtk.ScrolledWindow, EventHelper):
-
- __gsignals__ = {
- 'row-activated': (
- GObject.SignalFlags.RUN_LAST | GObject.SignalFlags.ACTION,
- None, # return value
- (str, )) # arguments
- }
-
def __init__(self, account):
Gtk.ScrolledWindow.__init__(self)
EventHelper.__init__(self)
@@ -175,7 +166,8 @@ def _on_roster_row_activated(self, _treeview, path,
_column):
return
jid = self._store[iter_][Column.JID_OR_GROUP]
- self.emit('row-activated', jid)
+ app.window.add_chat(self._account, jid, 'contact', select=True)
+ app.window.show_chats()
def _on_roster_button_press_event(self, treeview, event):
if event.button not in (2, 3):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/00e3e9df9ec6dc2a04c53d9227c9f82c14d60503
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/00e3e9df9ec6dc2a04c53d9227c9f82c14d60503
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