Skip to content

Commit

Permalink
Fix for #45
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Balneaves committed May 10, 2013
1 parent f153fc4 commit ea467b2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions capplets/keybindings/mate-keybinding-properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,14 @@ typedef struct {
static gboolean key_match(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* iter, gpointer data)
{
KeyMatchData* match_data = data;
KeyEntry* element;
KeyEntry* element = NULL;
gchar *element_schema = NULL;
gchar *element_path = NULL;

gtk_tree_model_get(model, iter,
KEYENTRY_COLUMN, &element,
-1);

gchar *element_schema;
gchar *element_path;

if (element && element->settings && G_IS_SETTINGS(element->settings))
{
#if GLIB_CHECK_VERSION (2, 32, 0)
Expand All @@ -450,10 +449,6 @@ static gboolean key_match(GtkTreeModel* model, GtkTreePath* path, GtkTreeIter* i
#endif
g_object_get (element->settings, "path", &element_path, NULL);
}
else {
element_schema = NULL;
element_path = NULL;
}

if (element && g_strcmp0(element->gsettings_key, match_data->key) == 0
&& g_strcmp0(element_schema, match_data->schema) == 0
Expand Down

0 comments on commit ea467b2

Please sign in to comment.