[gnome-control-center/wip/jsparber/background: 54/58] [feat] set wallpaper and lockscreen
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background: 54/58] [feat] set wallpaper and lockscreen
- Date: Fri, 24 Nov 2017 21:49:18 +0000 (UTC)
commit fa648a90eefe0c27ff053fd91d46ce832ce278cb
Author: Julian Sparber <julian sparber net>
Date: Thu Nov 23 20:08:47 2017 +0100
[feat] set wallpaper and lockscreen
panels/background/cc-background-panel.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 0325a31..e68d108 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -39,6 +39,7 @@
#include "bg-pictures-source.h"
#define WP_PATH_ID "org.gnome.desktop.background"
+#define WP_LOCK_PATH_ID "org.gnome.desktop.screensaver"
#define WP_URI_KEY "picture-uri"
#define WP_OPTIONS_KEY "picture-options"
#define WP_SHADING_KEY "color-shading-type"
@@ -52,6 +53,7 @@ struct _CcBackgroundPanel
GtkBuilder *builder;
GDBusConnection *connection;
GSettings *settings;
+ GSettings *lock_settings;
GnomeDesktopThumbnailFactory *thumb_factory;
@@ -84,6 +86,7 @@ cc_background_panel_dispose (GObject *object)
panel->spinner = NULL;
g_clear_object (&panel->settings);
+ g_clear_object (&panel->lock_settings);
if (panel->copy_cancellable)
{
@@ -515,6 +518,7 @@ on_background_select (GtkFlowBox *box,
item = cc_background_grid_item_get_ref (selected);
set_background (panel, panel->settings, item);
+ set_background (panel, panel->lock_settings, item);
}
static void
@@ -657,6 +661,9 @@ cc_background_panel_init (CcBackgroundPanel *panel)
panel->settings = g_settings_new (WP_PATH_ID);
g_settings_delay (panel->settings);
+ panel->lock_settings = g_settings_new (WP_LOCK_PATH_ID);
+ g_settings_delay (panel->lock_settings);
+
/* add the top level widget */
widget = WID ("background-panel");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]