subscriber-view: flag children changes

This commit is contained in:
Erick Pérez Castellanos
2015-01-08 13:03:34 -05:00
parent 668c9ec439
commit c6b0274c2f
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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
+4
View File
@@ -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);