Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
c10f473f by lovetox at 2021-03-19T14:10:29+01:00
Get correct path
- - - - -
1 changed file:
- gajim/gtk/roster.py
Changes:
=====================================
gajim/gtk/roster.py
=====================================
@@ -268,6 +268,7 @@ def _on_remove_contact(self, _action, param):
app.window.remove_contact(self._account, param.get_string())
def _on_roster_row_activated(self, _treeview, path, _column):
+ path = self._modelfilter.convert_path_to_child_path(path)
iter_ = self._store.get_iter(path)
if self._store.iter_parent(iter_) is None:
# This is a group row
@@ -286,6 +287,7 @@ def _on_roster_button_press_event(self, treeview, event):
return
path, _, _, _ = pos
+ path = self._modelfilter.convert_path_to_child_path(path)
iter_ = self._store.get_iter(path)
if self._store.iter_parent(iter_) is None:
# Group row
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c10f473ff146c5027476795376a51a7f…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/c10f473ff146c5027476795376a51a7f…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
acc254fe by lovetox at 2021-03-18T21:31:10+01:00
Blocking: Convert JID to string
- - - - -
1 changed file:
- gajim/gtk/blocking.py
Changes:
=====================================
gajim/gtk/blocking.py
=====================================
@@ -76,7 +76,7 @@ def _on_blocking_list_received(self, task):
self._prev_blocked_jids = set(blocking_list)
self._ui.blocking_store.clear()
for item in blocking_list:
- self._ui.blocking_store.append((item,))
+ self._ui.blocking_store.append((str(item),))
self._set_grid_state(True)
self._disable_spinner()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/acc254fe367cee2f15f1bcea55e9fce9…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/acc254fe367cee2f15f1bcea55e9fce9…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
bc3e394a by lovetox at 2021-03-17T22:16:24+01:00
Simplify code
- - - - -
1 changed file:
- gajim/gtk/groupchat_invite.py
Changes:
=====================================
gajim/gtk/groupchat_invite.py
=====================================
@@ -80,17 +80,16 @@ def _add_contacts(self):
for account, _label in self._accounts:
self.new_contact_rows[account] = None
client = app.get_client(account)
- for jid, _data in client.get_module('Roster').iter():
- contact = client.get_module('Contacts').get_contact(jid)
+ for contact in client.get_module('Roster').iter_contacts():
# Exclude group chats
if contact.is_groupchat:
continue
# Exclude our own jids
- if jid in our_jids:
+ if contact.jid in our_jids:
continue
- row = ContactRow(account, contact, jid,
+ row = ContactRow(account, contact, contact.jid,
contact.name, show_account)
self._ui.contacts_listbox.add(row)
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc3e394a0921ab05faf7f909724945f1…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/bc3e394a0921ab05faf7f909724945f1…
You're receiving this email because of your account on dev.gajim.org.
Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
76e458b5 by Daniel Brötzmann at 2021-03-16T19:16:11+01:00
Rework ContactInfo dialog
- - - - -
9 changed files:
- gajim/common/const.py
- + gajim/data/gui/contact_info.ui
- − gajim/data/gui/edit_groups_dialog.ui
- − gajim/data/gui/vcard_information_window.ui
- gajim/data/style/gajim.css
- gajim/dialogs.py
- gajim/groupchat_control.py
- gajim/gtk/add_contact.py
- gajim/gtk/const.py
The diff was not included because it is too large.
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/76e458b512422a4d8d53488810ac465d…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/76e458b512422a4d8d53488810ac465d…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch mainwindow at gajim / gajim
Commits:
82c1db1f by lovetox at 2021-03-15T22:49:23+01:00
fix rename group
- - - - -
1 changed file:
- gajim/common/modules/roster.py
Changes:
=====================================
gajim/common/modules/roster.py
=====================================
@@ -169,9 +169,6 @@ def remove_group(self, group):
self.set_groups(item.jid, new_groups)
def rename_group(self, group, new_group):
- if new_group in self._groups:
- return
-
items = self._get_items_with_group(group)
for item in items:
new_groups = item.groups - set([group])
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/82c1db1f0a49006f45403c6cb4d23445…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/82c1db1f0a49006f45403c6cb4d23445…
You're receiving this email because of your account on dev.gajim.org.