Philipp Hörist pushed to branch master at gajim / gajim
Commits:
47a8f53f by lovetox at 2020-09-07T20:11:15+02:00
PopoverSetting: Use instance attribute
- - - - -
1 changed file:
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/settings.py
=====================================
@@ -572,8 +572,8 @@ class PopoverSetting(GenericSetting):
self._add_action_button(kwargs)
- self._current_label.set_text(entries.get(self.setting_value,
- self._default_text or ''))
+ text = self._entries.get(self.setting_value, self._default_text or '')
+ self._current_label.set_text(text)
self._bind_label()
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/47a8f53f6687d69e0c351a7ebe726a5a…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/47a8f53f6687d69e0c351a7ebe726a5a…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
49099b18 by lovetox at 2020-09-07T18:45:04+02:00
Settings: Increase spacing
- - - - -
1 changed file:
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/settings.py
=====================================
@@ -180,7 +180,7 @@ class GenericSetting(Gtk.ListBoxRow):
self._grid.add(description_box)
- self.setting_box = Gtk.Box(spacing=6)
+ self.setting_box = Gtk.Box(spacing=12)
self.setting_box.set_size_request(200, -1)
self.setting_box.set_valign(Gtk.Align.CENTER)
self.setting_box.set_name('GenericSettingBox')
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/49099b184e384b599a755eca7e2cf23b…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/49099b184e384b599a755eca7e2cf23b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4cbd71d3 by lovetox at 2020-09-06T21:54:13+02:00
Themes: Store setting after renaming theme
- - - - -
eb1737a4 by lovetox at 2020-09-06T21:55:43+02:00
PopoverSettings: Bind current label to setting
- - - - -
2 changed files:
- gajim/gtk/settings.py
- gajim/gtk/themes.py
Changes:
=====================================
gajim/gtk/settings.py
=====================================
@@ -565,8 +565,18 @@ class PopoverSetting(GenericSetting):
self._current_label.set_text(entries.get(self.setting_value, ''))
+ self._bind_label()
+
self.show_all()
+ def _bind_label(self):
+ if self.type_ not in (SettingType.CONFIG, SettingType.ACCOUNT_CONFIG):
+ return
+
+ app.settings.bind_signal(self.value,
+ self._current_label,
+ 'set_text')
+
def _add_menu_entries(self, entries):
if isinstance(entries, list):
entries = {key: key for key in entries}
=====================================
gajim/gtk/themes.py
=====================================
@@ -239,6 +239,7 @@ class Themes(Gtk.ApplicationWindow):
if result is False:
return
+ app.settings.set('roster_theme', new_name)
self._ui.theme_store.set_value(iter_, Column.THEME, new_name)
def _select_theme_row(self, iter_):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e0bdbf8a4a52dde0ccfdd8192817ba…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/3e0bdbf8a4a52dde0ccfdd8192817ba…
You're receiving this email because of your account on dev.gajim.org.