diff options
| author | Simon Tatham <anakin@pobox.com> | 2022-08-01 17:23:12 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2022-08-01 17:23:12 +0100 |
| commit | 8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8 (patch) | |
| tree | 4aa8208ae72bea35a80b69d76210e07a2af849dc | |
| parent | 89391ba66a2fd3826e16dc288eaa1a1516b1e9de (diff) | |
| download | puzzles-8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8.zip puzzles-8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8.tar.gz puzzles-8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8.tar.bz2 puzzles-8399cff6a3b9bf15c6d1d9e0c905d1411f25f9b8.tar.xz | |
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.)
| -rw-r--r-- | gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |