[gtk+/gtk-2-24] Emit row-changed notification



commit 469c9a4da3e6b4242e858cd9a581a9d422b7808f
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 40eecfd..e6a3e94 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -316,7 +316,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]