Skip to content

Commit

Permalink
schema-id is new in glib 2.32
Browse files Browse the repository at this point in the history
  • Loading branch information
stefano-k committed Oct 27, 2012
1 parent f5946af commit 44205a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,11 @@ change_notify (GSettings *settings,
}

gchar *schema_name = NULL;
#if GLIB_CHECK_VERSION (2, 32, 0)
g_object_get (settings, "schema-id", &schema_name, NULL);
#else
g_object_get (settings, "schema", &schema_name, NULL);
#endif

if (g_strcmp0 (schema_name, KEY_WINDOW_BINDINGS_SCHEMA) == 0 ||
g_strcmp0 (schema_name, KEY_SCREEN_BINDINGS_SCHEMA) == 0)
Expand Down

0 comments on commit 44205a3

Please sign in to comment.