subscriber-view: flag children changes
This commit is contained in:
@@ -52,6 +52,9 @@ struct _GcalSubscriberViewPrivate
|
|||||||
* Set containing the master widgets hidden for delete;
|
* Set containing the master widgets hidden for delete;
|
||||||
*/
|
*/
|
||||||
GHashTable *hidden_as_overflow;
|
GHashTable *hidden_as_overflow;
|
||||||
|
|
||||||
|
/* state flags */
|
||||||
|
gboolean children_changed;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|||||||
@@ -173,6 +173,8 @@ gcal_subscriber_view_add (GtkContainer *container,
|
|||||||
gtk_widget_destroy (widget);
|
gtk_widget_destroy (widget);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
priv->children_changed = TRUE;
|
||||||
l = g_list_append (l, widget);
|
l = g_list_append (l, widget);
|
||||||
g_hash_table_insert (priv->children, g_strdup (uuid), l);
|
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);
|
l = g_hash_table_lookup (priv->children, uuid);
|
||||||
if (l != NULL)
|
if (l != NULL)
|
||||||
{
|
{
|
||||||
|
priv->children_changed = TRUE;
|
||||||
|
|
||||||
master_widget = (GtkWidget*) l->data;
|
master_widget = (GtkWidget*) l->data;
|
||||||
|
|
||||||
was_visible = gtk_widget_get_visible (widget);
|
was_visible = gtk_widget_get_visible (widget);
|
||||||
|
|||||||
Reference in New Issue
Block a user