make the is_enabled check use a new GSettings, like GSettings *background_settings; background_settings = g_settings_new ("org.gnome.desktop.background"); bg->is_enabled = g_settings_get_boolean (background_settings, BG_KEY_DRAW_BACKGROUND); g_object_unref (background_settings);
discussed on IRC with Laney - suggestion:
make the is_enabled check use a new GSettings, like GSettings *background_ settings; background_settings = g_settings_new ("org.gnome. desktop. background" ); bg->is_enabled = g_settings_ get_boolean (background_ settings, BG_KEY_ DRAW_BACKGROUND ); g_object_unref (background_ settings) ;