renderer: Disconnect theme change signal handler

The renderer does not stick around so we need to disconnect the signal
handler on "dispose". Since the renderer is not a GObject track the
signal id manually instead of using `g_signal_connect_object ()`.

Fixes 1995285 ("eek-renderer: Honor theme changes")
This commit is contained in:
Guido Günther
2021-11-22 17:05:51 +01:00
parent a6d766e650
commit 379a09e0d6
2 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,8 @@ typedef struct EekRenderer
GtkStyleContext *button_context; // TODO: maybe move a copy to each button
/// Style class for rendering the view and button CSS.
gchar *extra_style; // owned
// Theme name change signal handler id
gulong theme_name_id;
// Mutable state
gint scale_factor; /* the outputs scale factor */