From 8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 1 Aug 2022 17:23:12 +0100 Subject: Re-fix the GTK dark theme check. Ben Hutchings points out that when I 'harmlessly' changed 'dark_theme' from a gboolean to a bool, it wasn't harmless, because its address is passed to g_object_get, which expects a pointer to gboolean. (And of course it's a variadic function, so it can't type-check that.) --- gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk.c b/gtk.c index 92a2122..52a1506 100644 --- a/gtk.c +++ b/gtk.c @@ -399,7 +399,7 @@ static void set_window_background(frontend *fe, int colour) * menu and status bars unreadable. This might be visible through * the gtk-application-prefer-dark-theme flag or else we have to * work it out from the name. */ - bool dark_theme = false; + gboolean dark_theme = false; char *theme_name = NULL; g_object_get(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", &dark_theme, -- cgit v1.1