Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
-
00e3e9df
by wurstsalat at 2021-03-06T11:17:45+01:00
1 changed file:
Changes:
| ... | ... | @@ -8,7 +8,6 @@ |
| 8 | 8 |
from gi.repository import Gio
|
| 9 | 9 |
from gi.repository import GLib
|
| 10 | 10 |
from gi.repository import Gtk
|
| 11 |
-from gi.repository import GObject
|
|
| 12 | 11 |
|
| 13 | 12 |
from gajim.common import app
|
| 14 | 13 |
from gajim.common import ged
|
| ... | ... | @@ -44,14 +43,6 @@ class Column(IntEnum): |
| 44 | 43 |
|
| 45 | 44 |
|
| 46 | 45 |
class Roster(Gtk.ScrolledWindow, EventHelper):
|
| 47 |
- |
|
| 48 |
- __gsignals__ = {
|
|
| 49 |
- 'row-activated': (
|
|
| 50 |
- GObject.SignalFlags.RUN_LAST | GObject.SignalFlags.ACTION,
|
|
| 51 |
- None, # return value
|
|
| 52 |
- (str, )) # arguments
|
|
| 53 |
- }
|
|
| 54 |
- |
|
| 55 | 46 |
def __init__(self, account):
|
| 56 | 47 |
Gtk.ScrolledWindow.__init__(self)
|
| 57 | 48 |
EventHelper.__init__(self)
|
| ... | ... | @@ -175,7 +166,8 @@ def _on_roster_row_activated(self, _treeview, path, _column): |
| 175 | 166 |
return
|
| 176 | 167 |
|
| 177 | 168 |
jid = self._store[iter_][Column.JID_OR_GROUP]
|
| 178 |
- self.emit('row-activated', jid)
|
|
| 169 |
+ app.window.add_chat(self._account, jid, 'contact', select=True)
|
|
| 170 |
+ app.window.show_chats()
|
|
| 179 | 171 |
|
| 180 | 172 |
def _on_roster_button_press_event(self, treeview, event):
|
| 181 | 173 |
if event.button not in (2, 3):
|