gcal-window: handled reentrancy of new-event widget

This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:31 -05:00
parent 0527350db7
commit 7c976b5a86
+7 -8
View File
@@ -336,16 +336,15 @@ set_new_event_mode (GcalWindow *window,
priv->new_event_mode = enabled;
g_object_notify (G_OBJECT (window), "new-event-mode");
if (enabled)
if (! enabled)
gcal_view_clear_marks (GCAL_VIEW (priv->views[priv->active_view]));
/* XXX: here we could disable clicks from the views, yet */
/* for now we relaunch the new-event widget */
if (priv->new_event_widget != NULL)
{
/* set views to disable clicks */
;
}
else
{
/* clearing marks */
gcal_view_clear_marks (GCAL_VIEW (priv->views[priv->active_view]));
gtk_widget_destroy (priv->new_event_widget);
priv->new_event_widget = NULL;
}
}