[gnome-calendar/search-improvements] subscriber-view: flag children changes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/search-improvements] subscriber-view: flag children changes
- Date: Thu, 8 Jan 2015 18:17:38 +0000 (UTC)
commit 102d3e5683801fc0102e8fb3471e1fdae35bf844
Author: Erick PĂ©rez Castellanos <erick red gmail com>
Date: Thu Jan 8 13:03:34 2015 -0500
subscriber-view: flag children changes
src/gcal-subscriber-view-private.h | 3 +++
src/gcal-subscriber-view.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-subscriber-view-private.h b/src/gcal-subscriber-view-private.h
index ad3aee6..cb21577 100644
--- a/src/gcal-subscriber-view-private.h
+++ b/src/gcal-subscriber-view-private.h
@@ -52,6 +52,9 @@ struct _GcalSubscriberViewPrivate
* Set containing the master widgets hidden for delete;
*/
GHashTable *hidden_as_overflow;
+
+ /* state flags */
+ gboolean children_changed;
};
G_END_DECLS
diff --git a/src/gcal-subscriber-view.c b/src/gcal-subscriber-view.c
index 867b99a..7f8c68c 100644
--- a/src/gcal-subscriber-view.c
+++ b/src/gcal-subscriber-view.c
@@ -173,6 +173,8 @@ gcal_subscriber_view_add (GtkContainer *container,
gtk_widget_destroy (widget);
return;
}
+
+ priv->children_changed = TRUE;
l = g_list_append (l, widget);
g_hash_table_insert (priv->children, g_strdup (uuid), l);
@@ -216,6 +218,8 @@ gcal_subscriber_view_remove (GtkContainer *container,
l = g_hash_table_lookup (priv->children, uuid);
if (l != NULL)
{
+ priv->children_changed = TRUE;
+
master_widget = (GtkWidget*) l->data;
was_visible = gtk_widget_get_visible (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]