[gtk+] Emit row-changed notification
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Emit row-changed notification
- Date: Sun, 15 Jul 2012 04:44:24 +0000 (UTC)
commit 46c1ea98d2d48c504e444544983c479bc4e14794
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]