nautilus r14998 - in trunk: . src/file-manager
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14998 - in trunk: . src/file-manager
- Date: Mon, 23 Feb 2009 16:42:37 +0000 (UTC)
Author: pborelli
Date: Mon Feb 23 16:42:37 2009
New Revision: 14998
URL: http://svn.gnome.org/viewvc/nautilus?rev=14998&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/src/file-manager/fm-list-view.c
Modified: trunk/src/file-manager/fm-list-view.c
==============================================================================
--- trunk/src/file-manager/fm-list-view.c (original)
+++ trunk/src/file-manager/fm-list-view.c Mon Feb 23 16:42:37 2009
@@ -1007,19 +1007,24 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]