mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-24 18:25:50 +00:00
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
This commit is contained in:
parent
a7bdb32e4f
commit
20b787c9a5
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue