summaryrefslogtreecommitdiff
path: root/src/caja-file-management-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-file-management-properties.c')
-rw-r--r--src/caja-file-management-properties.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 1cdc7b1d..2761a85b 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -726,21 +726,19 @@ extension_list_selection_changed_configure (GtkTreeSelection *selection, GtkButt
static void
extension_state_toggled (GtkCellRendererToggle *cell, gchar *path_str, gpointer data)
{
- GtkTreeIter iter;
- GtkTreePath *path;
- GtkTreeModel *model;
+ GtkTreeIter iter;
+ GtkTreePath *path;
+ GtkTreeModel *model;
gboolean new_state;
Extension *ext;
- path = gtk_tree_path_new_from_string (path_str);
- model = gtk_tree_view_get_model (GTK_TREE_VIEW (data));
+ path = gtk_tree_path_new_from_string (path_str);
+ model = gtk_tree_view_get_model (GTK_TREE_VIEW (data));
g_object_get (G_OBJECT (cell), "active", &new_state, NULL);
- gtk_tree_model_get_iter_from_string (model, &iter, path_str);
-
new_state ^= 1;
- if (&iter != NULL)
+ if (gtk_tree_model_get_iter_from_string (model, &iter, path_str))
{
gtk_tree_model_get (model, &iter, EXT_STRUCT_COLUMN, &ext, -1);