[gnome-panel] panel-layout: use g_settings_schema_list_keys
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-layout: use g_settings_schema_list_keys
- Date: Sat, 26 Sep 2015 03:30:29 +0000 (UTC)
commit 89df1d1b4e665c032b538b4f0c509ccd9f72f59e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Sep 26 05:45:20 2015 +0300
panel-layout: use g_settings_schema_list_keys
configure.ac | 2 +-
gnome-panel/panel-layout.c | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 49965d0..b3b54d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,7 +101,7 @@ AC_CHECK_FUNCS(_NSGetEnviron)
LIBGNOME_DESKTOP_REQUIRED=2.91.0
GDK_PIXBUF_REQUIRED=2.25.2
PANGO_REQUIRED=1.15.4
-GLIB_REQUIRED=2.36.0
+GLIB_REQUIRED=2.45.3
GTK_REQUIRED=3.15.2
LIBWNCK_REQUIRED=3.4.6
LIBGNOME_MENU_REQUIRED=3.7.90
diff --git a/gnome-panel/panel-layout.c b/gnome-panel/panel-layout.c
index e83f167..3745547 100644
--- a/gnome-panel/panel-layout.c
+++ b/gnome-panel/panel-layout.c
@@ -120,6 +120,7 @@ panel_layout_append_self_check (GSettings *settings,
int key_definitions_len,
GError **error)
{
+ GSettingsSchema *schema;
char **settings_keys = NULL;
int i, j=0;
@@ -147,7 +148,9 @@ panel_layout_append_self_check (GSettings *settings,
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- settings_keys = g_settings_list_keys (settings);
+ g_object_get (settings, "settings-schema", &schema, NULL);
+ settings_keys = g_settings_schema_list_keys (schema);
+ g_settings_schema_unref (schema);
for (i = 0; settings_keys[i] != NULL; i++) {
gboolean found = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]