[gnome-calendar] gcal-window: handled reentrancy of new-event widget
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] gcal-window: handled reentrancy of new-event widget
- Date: Thu, 4 Dec 2014 22:27:54 +0000 (UTC)
commit 7c976b5a867d87c98d059b702a25394b402ee73d
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Thu Jul 4 10:03:02 2013 -0400
gcal-window: handled reentrancy of new-event widget
src/gcal-window.c | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index d359173..8ba9776 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -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)
- {
- /* set views to disable clicks */
- ;
- }
- else
+ 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)
{
- /* 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]