[Xfce4-commits] [xfce/thunar] 05/05: Update model with changed binary file size setting immediately

noreply at xfce.org noreply at xfce.org
Fri Mar 27 23:33:19 CET 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 02baccc0858a37a3bfa6d027cf05f32578ea0106
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Mar 27 23:18:48 2015 +0100

    Update model with changed binary file size setting immediately
    
    This makes the changes apply immediately for the column view.
---
 thunar/thunar-list-model.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c
index a9e59c1..40ac28e 100644
--- a/thunar/thunar-list-model.c
+++ b/thunar/thunar-list-model.c
@@ -2034,6 +2034,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);
     }
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list