[Xfce4-commits] [xfce/thunar] 01/01: Update rows on changes of case-sensitive and folders-first settings
noreply at xfce.org
noreply at xfce.org
Sat Apr 11 12:22:17 CEST 2015
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/thunar.
commit 1873ca9142c31a3cb3887e849e4c5d45c906176a
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Apr 11 12:17:32 2015 +0200
Update rows on changes of case-sensitive and folders-first settings
This is analogous to 02baccc0858a37a3bfa6d027cf05f32578ea0106.
---
thunar/thunar-list-model.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c
index 40ac28e..755c706 100644
--- a/thunar/thunar-list-model.c
+++ b/thunar/thunar-list-model.c
@@ -1677,6 +1677,12 @@ thunar_list_model_set_case_sensitive (ThunarListModel *store,
/* notify listeners */
g_object_notify_by_pspec (G_OBJECT (store), list_model_props[PROP_CASE_SENSITIVE]);
+
+ /* emit a "changed" signal for each row, so the display is
+ reloaded with the new binary file size setting */
+ gtk_tree_model_foreach (GTK_TREE_MODEL (store),
+ (GtkTreeModelForeachFunc) gtk_tree_model_row_changed,
+ NULL);
}
}
@@ -1881,6 +1887,12 @@ thunar_list_model_set_folders_first (ThunarListModel *store,
store->sort_folders_first = folders_first;
g_object_notify_by_pspec (G_OBJECT (store), list_model_props[PROP_FOLDERS_FIRST]);
thunar_list_model_sort (store);
+
+ /* emit a "changed" signal for each row, so the display is
+ reloaded with the new binary file size setting */
+ gtk_tree_model_foreach (GTK_TREE_MODEL (store),
+ (GtkTreeModelForeachFunc) gtk_tree_model_row_changed,
+ NULL);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list