[gnome-panel/wip/packed-objects: 3/17] panel: Apply delayed GSettings when destroying toplevel
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/packed-objects: 3/17] panel: Apply delayed GSettings when destroying toplevel
- Date: Thu, 31 Mar 2011 06:59:38 +0000 (UTC)
commit 75fe30f62bb06c4afda64857207710dd88483224
Author: Vincent Untz <vuntz gnome org>
Date: Tue Mar 29 01:16:49 2011 +0530
panel: Apply delayed GSettings when destroying toplevel
We don't want to lose a very last-second position change.
gnome-panel/panel-toplevel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 82ea2ae..5fd0176 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -3766,8 +3766,10 @@ panel_toplevel_finalize (GObject *object)
g_source_remove (toplevel->priv->apply_delayed_id);
toplevel->priv->apply_delayed_id = 0;
- if (toplevel->priv->delayed_settings)
+ if (toplevel->priv->delayed_settings) {
+ g_settings_apply (toplevel->priv->delayed_settings);
g_object_unref (toplevel->priv->delayed_settings);
+ }
toplevel->priv->delayed_settings= NULL;
if (toplevel->priv->settings)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]