[glib/new-gsettings] Add a stub long description
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Add a stub long description
- Date: Wed, 14 Apr 2010 03:53:29 +0000 (UTC)
commit fe3e6f85be4956ca4bbc34f914a3e02845a22504
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 13 23:17:31 2010 -0400
Add a stub long description
gio/gsettings.c | 8 ++++++++
gio/gsettingsbackend.c | 14 +++++++++-----
2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 8303b1f..9266426 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -22,6 +22,14 @@
#include "gioalias.h"
+/**
+ * SECTION:gsettings
+ * @short_description: a high-level API for application settings
+ *
+ * The #GSettings class provides a convenient API for storing and retrieving
+ * application settings.
+ */
+
struct _GSettingsPrivate {
GSettingsBackend *backend;
gchar *base_path;
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index e1018f2..a348dd1 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -8,6 +8,8 @@
* See the included COPYING file for more information.
*/
+#include "config.h"
+
#include "gsettingsbackend.h"
#include "gmemorysettingsbackend.h"
#include "giomodule-priv.h"
@@ -16,6 +18,7 @@
#include <string.h>
#include <stdlib.h>
#include <glib.h>
+#include <glibintl.h>
#include "gioalias.h"
@@ -389,11 +392,12 @@ g_settings_backend_class_init (GSettingsBackendClass *class)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_CONTEXT,
- g_param_spec_string ("context",
- "Context",
- "A context to use when deciding which storage to use",
- NULL,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
+ g_param_spec_string ("context",
+ P_("Context"),
+ P_("A context to use when deciding which storage to use"),
+ NULL,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]