[gnome-system-tools] Fix selecting current user on start plus a leak
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-system-tools] Fix selecting current user on start plus a leak
- Date: Sat, 13 Feb 2010 10:52:00 +0000 (UTC)
commit 95f99a8798dc556c9ec030351067a7637882d29b
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sat Feb 13 11:49:45 2010 +0100
Fix selecting current user on start plus a leak
We were setting selection using the path in the GtkTreeModelFilter instead of the GtkTreeModelSort, which led to strange results. Fix a GtkTreePath leak BTW.
src/users/users-table.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/users/users-table.c b/src/users/users-table.c
index 1825dd9..adef0f4 100644
--- a/src/users/users-table.c
+++ b/src/users/users-table.c
@@ -301,9 +301,10 @@ users_table_select_path (GtkTreePath *path)
(GTK_TREE_MODEL_SORT (sort_model), filter_path);
gtk_tree_selection_unselect_all (selection);
- gtk_tree_selection_select_path (selection, filter_path);
+ gtk_tree_selection_select_path (selection, sort_path);
gtk_tree_path_free (filter_path);
+ gtk_tree_path_free (sort_path);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]