Commit 20b787c9 authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

do not leak the columns list.

2009-02-23  Paolo Borelli  <pborelli@katamail.com>

	* src/file-manager/fm-list-view.c (sort_criterion_changes_due_to_user):
	do not leak the columns list.


svn path=/trunk/; revision=14998
parent a7bdb32e
2009-02-23 Paolo Borelli <pborelli@katamail.com>
* src/file-manager/fm-list-view.c (sort_criterion_changes_due_to_user):
do not leak the columns list.
2009-02-23 Paolo Borelli <pborelli@katamail.com>
* libnautilus-private/nautilus-thumbnails.c: check if the mtime
......
......@@ -1007,19 +1007,24 @@ sort_criterion_changes_due_to_user (GtkTreeView *tree_view)
GtkTreeViewColumn *column;
GSignalInvocationHint *ihint;
unsigned int sort_signal_id;
gboolean ret;
sort_signal_id = g_signal_lookup ("clicked", gtk_tree_view_column_get_type ());
ret = FALSE;
columns = gtk_tree_view_get_columns (tree_view);
for (p = columns; p != NULL; p = p->next) {
column = p->data;
ihint = g_signal_get_invocation_hint (column);
if (ihint != NULL) {
return TRUE;
ret = TRUE;
break;
}
}
g_list_free (columns);
return FALSE;
return ret;
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment