Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits:
c169876c by wurstsalat at 2024-10-30T23:14:30+01:00
refactor: Themes: Fix TODO
- - - - -
1 changed file:
- gajim/gtk/themes.py
Changes:
=====================================
gajim/gtk/themes.py
=====================================
@@ -393,8 +393,8 @@ def _on_color_set(self, color_button:
Gtk.ColorDialogButton, *args: Any) -> None
app.css_config.set_value(
self.option.selector, self.option.attr, color_string, pre=True)
app.ged.raise_event(StyleChanged())
- # TODO GTK4: this fails
- themes_win = cast(Themes, self.get_root())
+
+ themes_win = cast(Themes, get_app_window('ThemesWindow'))
themes_win.reload_roster_theme()
def _on_font_set(self, font_button: Gtk.FontDialogButton, *args: Any) ->
None:
@@ -403,8 +403,8 @@ def _on_font_set(self, font_button: Gtk.FontDialogButton,
*args: Any) -> None:
return
app.css_config.set_font(self.option.selector, desc, pre=True)
app.ged.raise_event(StyleChanged())
- # TODO GTK4: this fails
- themes_win = cast(Themes, self.get_root())
+
+ themes_win = cast(Themes, get_app_window('ThemesWindow'))
themes_win.reload_roster_theme()
def _on_remove(self, *args: Any) -> None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c169876c52c4a274b599d97f8f2be071c8af73ae
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/c169876c52c4a274b599d97f8f2be071c8af73ae
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]