From b470d6930d8995b2e5d1353486394c12fc55187e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 21 Jun 2010 16:10:49 +0100 Subject: [PATCH] settings: freeze notification on XSETTINGS notify --- clutter/x11/clutter-backend-x11.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index 8be21b795..d4d88f91f 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -112,6 +112,8 @@ clutter_backend_x11_xsettings_notify (const char *name, if (name == NULL || *name == '\0') return; + g_object_freeze_notify (G_OBJECT (settings)); + for (i = 0; i < _n_clutter_settings_map; i++) { if (g_strcmp0 (name, CLUTTER_SETTING_X11_NAME (i)) == 0) @@ -163,6 +165,8 @@ clutter_backend_x11_xsettings_notify (const char *name, break; } } + + g_object_thaw_notify (G_OBJECT (settings)); } gboolean