diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-07-25 21:08:56 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-07-25 21:09:15 +0200 |
commit | e18f729488f68cf0a8dbe51de9219b4971f48d79 (patch) | |
tree | cf846d1932bddde67c1c2496b39bcb0863aeb4e8 /fiv.c | |
parent | 9f1041988dc333cc1ef7a158b341cb56c11dd516 (diff) | |
download | fiv-e18f729488f68cf0a8dbe51de9219b4971f48d79.tar.gz fiv-e18f729488f68cf0a8dbe51de9219b4971f48d79.tar.xz fiv-e18f729488f68cf0a8dbe51de9219b4971f48d79.zip |
Add thumbnail size to GSettings
Diffstat (limited to 'fiv.c')
-rw-r--r-- | fiv.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1912,10 +1912,6 @@ main(int argc, char *argv[]) gtk_icon_theme_add_resource_path( gtk_icon_theme_get_default(), "/org/gnome/design/IconLibrary/"); - GSettings *settings = g_settings_new(PROJECT_NS PROJECT_NAME); - if (g_settings_get_boolean(settings, "dark-theme")) - toggle_sunlight(); - GtkCssProvider *provider = gtk_css_provider_new(); gtk_css_provider_load_from_data( provider, stylesheet, sizeof stylesheet - 1, NULL); @@ -2004,6 +2000,12 @@ main(int argc, char *argv[]) gtk_container_add(GTK_CONTAINER(menu_box), g.stack); gtk_container_add(GTK_CONTAINER(g.window), menu_box); + GSettings *settings = g_settings_new(PROJECT_NS PROJECT_NAME); + if (g_settings_get_boolean(settings, "dark-theme")) + toggle_sunlight(); + g_object_set(g.browser, "thumbnail-size", + g_settings_get_enum(settings, "thumbnail-size"), NULL); + // Try to get half of the screen vertically, in 4:3 aspect ratio. // // We need the GdkMonitor before the GtkWindow has a GdkWindow (i.e., |