[glib/new-gsettings] remove delayed-apply property



commit ea111f51aed5714ed6ce50f2067fe2cab46f3126
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Apr 14 18:05:03 2010 -0400

    remove delayed-apply property

 gio/gsettings.c |   25 +++++++------------------
 1 files changed, 7 insertions(+), 18 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 9d7e322..297cae2 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -49,7 +49,6 @@ enum
   PROP_SCHEMA,
   PROP_CONTEXT,
   PROP_PATH,
-  PROP_DELAY_APPLY,
   PROP_HAS_UNAPPLIED,
 };
 
@@ -348,16 +347,20 @@ g_settings_set_property (GObject      *object,
 
   switch (prop_id)
     {
-     case PROP_SCHEMA:
+    case PROP_SCHEMA:
       g_assert (settings->priv->schema_name == NULL);
       settings->priv->schema_name = g_value_dup_string (value);
       break;
 
-     case PROP_PATH:
+    case PROP_PATH:
       settings->priv->path = g_value_dup_string (value);
       break;
 
-     default:
+    case PROP_CONTEXT:
+      settings->priv->context = g_value_dup_string (value);
+      break;
+
+    default:
       g_assert_not_reached ();
     }
 }
@@ -552,20 +555,6 @@ g_settings_class_init (GSettingsClass *class)
                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
    /**
-    * GSettings:delay-apply:
-    *
-    * If this property is %TRUE, the #GSettings object is in 'delay-apply'
-    * mode and will not apply changes until g_settings_apply() is called.
-    */
-   g_object_class_install_property (object_class, PROP_DELAY_APPLY,
-     g_param_spec_boolean ("delay-apply",
-                           P_("Delayed apply"),
-                           P_("If TRUE, you must call apply() to write changes"),
-                           FALSE,
-                           G_PARAM_CONSTRUCT_ONLY |
-                           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
-
-   /**
     * GSettings:has-unapplied:
     *
     * If this property is %TRUE, the #GSettings object has outstanding



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]