projects
/
thunar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a710634
)
Update model with changed binary file size setting immediately
binarysize
author
Harald Judt
<h.judt@gmx.at>
Fri, 27 Mar 2015 22:18:48 +0000
(23:18 +0100)
committer
TJ
<ubuntu@iam.tj>
Mon, 25 Jan 2016 02:37:30 +0000
(
02:37
+0000)
This makes the changes apply immediately for the column view.
thunar/thunar-list-model.c
patch
|
blob
|
history
diff --git
a/thunar/thunar-list-model.c
b/thunar/thunar-list-model.c
index
a93c3e1
..
438d5f5
100644
(file)
--- a/
thunar/thunar-list-model.c
+++ b/
thunar/thunar-list-model.c
@@
-2012,6
+2012,12
@@
thunar_list_model_set_file_size_binary (ThunarListModel *store,
/* notify listeners */
g_object_notify_by_pspec (G_OBJECT (store), list_model_props[PROP_FILE_SIZE_BINARY]);
+
+ /* 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);
}
}