[glib/new-gsettings] awo;fjie



commit 5936df8ba841facf97fcd84b445a40fe986d8a86
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Apr 16 11:04:53 2010 -0400

    awo;fjie

 gio/gsettings.h |   51 +++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 37 insertions(+), 14 deletions(-)
---
diff --git a/gio/gsettings.h b/gio/gsettings.h
index 0f5ee6a..e297505 100644
--- a/gio/gsettings.h
+++ b/gio/gsettings.h
@@ -44,16 +44,15 @@ struct _GSettingsClass
 {
   GObjectClass parent_class;
 
-  void        (*all_writable_changed) (GSettings    *settings);
-  void        (*all_changed)          (GSettings    *settings);
-  void        (*keys_changed)         (GSettings    *settings,
-                                       const GQuark *keys,
-                                       gint          n_keys);
-
-  void        (*writable_changed)     (GSettings    *settings,
-                                       const gchar  *key);
-  void        (*changed)              (GSettings    *settings,
-                                       const gchar  *key);
+  void        (*keys_writable_changed) (GSettings    *settings);
+  void        (*keys_changed)          (GSettings    *settings,
+                                        const GQuark *keys,
+                                        gint          n_keys);
+
+  void        (*writable_changed)      (GSettings    *settings,
+                                        const gchar  *key);
+  void        (*changed)               (GSettings    *settings,
+                                        const gchar  *key);
 };
 
 struct _GSettings
@@ -90,13 +89,37 @@ void                    g_settings_get                                  (GSettin
                                                                          const gchar        *format_string,
                                                                          ...);
 
+gint                    g_settings_get_int                              (GSettings          *settings,
+                                                                         const gchar        *key);
+gboolean                g_settings_set_int                              (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         gint                value);
+gchar *                 g_settings_get_string                           (GSettings          *settings,
+                                                                         const gchar        *key);
+gboolean                g_settings_set_string                           (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         const gchar        *value);
+gboolean                g_settings_get_boolean                          (GSettings          *settings,
+                                                                         const gchar        *key);
+gboolean                g_settings_set_boolean                          (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         gboolean            value);
+gdouble                 g_settings_get_double                           (GSettings          *settings,
+                                                                         const gchar        *key);
+gboolean                g_settings_set_double                           (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         gdouble             value);
+gchar **                g_settings_get_strv                             (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         gint               *length);
+gboolean                g_settings_set_strv                             (GSettings          *settings,
+                                                                         const gchar        *key,
+                                                                         const gchar *const *value,
+                                                                         gint                length);
+
 GSettings *             g_settings_get_child                            (GSettings          *settings,
                                                                          const gchar        *name);
 
-void                    g_settings_reset                                (GSettings          *settings,
-                                                                         const gchar        *key);
-void                    g_settings_reset_all                            (GSettings          *settings);
-
 gboolean                g_settings_is_writable                          (GSettings          *settings,
                                                                          const gchar        *name);
 



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