[gnome-settings-daemon] background: Listen to screen changes only after GnomeBg is constructed
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] background: Listen to screen changes only after GnomeBg is constructed
- Date: Fri, 10 Dec 2010 12:59:24 +0000 (UTC)
commit d6d12b643aeec91fa3d1ed19104f1c0d1ded7870
Author: Tomas Bzatek <tbzatek redhat com>
Date: Fri Dec 10 13:59:15 2010 +0100
background: Listen to screen changes only after GnomeBg is constructed
The screen event handlers are initialized before the setup_bg
that setup the settings field in manager->priv when desktop
icons show setting is true.
Thus they trigger a draw of the background without the priv bg
being set at session start.
Patch based on work by Alban Browaeys <prahal yahoo com>
plugins/background/gsd-background-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/background/gsd-background-manager.c b/plugins/background/gsd-background-manager.c
index 06be0d7..9c2a575 100644
--- a/plugins/background/gsd-background-manager.c
+++ b/plugins/background/gsd-background-manager.c
@@ -62,6 +62,7 @@ static void gsd_background_manager_init (GsdBackgroundManager *b
static void gsd_background_manager_finalize (GObject *object);
static void setup_bg (GsdBackgroundManager *manager);
+static void connect_screen_signals (GsdBackgroundManager *manager);
G_DEFINE_TYPE (GsdBackgroundManager, gsd_background_manager, G_TYPE_OBJECT)
@@ -272,6 +273,7 @@ setup_bg (GsdBackgroundManager *manager)
G_CALLBACK (on_bg_transitioned),
manager);
+ connect_screen_signals (manager);
watch_bg_preferences (manager);
gnome_bg_load_from_preferences (manager->priv->bg,
manager->priv->settings);
@@ -432,8 +434,6 @@ gsd_background_manager_start (GsdBackgroundManager *manager,
draw_background_after_session_loads (manager);
}
- connect_screen_signals (manager);
-
gnome_settings_profile_end (NULL);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]