subscriber-view: flag children changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user