Philipp Hörist pushed to branch master at gajim / gajim
Commits:
68f3167a by Philipp Hörist at 2024-02-11T19:37:11+01:00
refactor: AdHoc: Simplify column creation
- - - - -
a6f55153 by Philipp Hörist at 2024-02-11T19:37:46+01:00
cq: Dialogs: Always use string for secondary_text
- - - - -
2 changed files:
- gajim/gtk/adhoc.py
- gajim/gtk/dialogs.py
Changes:
=====================================
gajim/gtk/adhoc.py
=====================================
@@ -210,12 +210,12 @@ def __init__(self) -> None:
self._treeview.get_style_context().add_class('gajim-treeview')
self._store = Gtk.ListStore(str, str)
self._treeview.set_model(self._store)
- column = Gtk.TreeViewColumn(_('Commands'))
+ column = Gtk.TreeViewColumn(
+ _('Commands'),
+ Gtk.CellRendererText(),
+ text=0)
column.set_expand(True)
self._treeview.append_column(column)
- renderer = Gtk.CellRendererText()
- column.pack_start(renderer, True)
- column.add_attribute(renderer, 'text', 0)
self._treeview.connect('row-activated', self._on_row_activate)
self._treeview.set_search_equal_func(self._search_func)
=====================================
gajim/gtk/dialogs.py
=====================================
@@ -110,7 +110,7 @@ def __init__(self,
buttons=self._buttons_type,
text=text,
use_markup=use_markup,
- secondary_text=secondary_text,
+ secondary_text=secondary_text or '',
secondary_use_markup=secondary_use_markup)
self.connect('response', self.on_response)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/543710538350655698c0cd2c4b80ee1965581631...a6f55153a9b5b174ef6a4c80a2a8c0b43921286b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/543710538350655698c0cd2c4b80ee1965581631...a6f55153a9b5b174ef6a4c80a2a8c0b43921286b
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]