Update model with changed binary file size setting immediately binarysize
authorHarald Judt <h.judt@gmx.at>
Fri, 27 Mar 2015 22:18:48 +0000 (23:18 +0100)
committerTJ <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

index a93c3e1..438d5f5 100644 (file)
@@ -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);
     }
 }