[gtk+/composite-templates] Emit row-changed notification



commit a2a62be13deea9e3ce02e2cdfc33775445f5a2a5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 15 00:37:41 2012 -0400

    Emit row-changed notification
    
    Emit row-changed when the filteredness of a visible row
    changes in GtkFileSystemModel.

 gtk/gtkfilesystemmodel.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 354caa4..1e5ffe3 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -313,7 +313,12 @@ node_set_visible_and_filtered_out (GtkFileSystemModel *model, guint id, gboolean
 
   /* Filteredness */
 
-  node->filtered_out = filtered_out;
+  if (node->filtered_out != filtered_out)
+    {
+      node->filtered_out = filtered_out;
+      if (node->visible && visible)
+        emit_row_changed_for_node (model, id);
+    }
 
   /* Visibility */
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]