[evolution] Bug #559815 - Empty Reminders editor when opened second time
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #559815 - Empty Reminders editor when opened second time
- Date: Wed, 8 Aug 2012 10:00:17 +0000 (UTC)
commit 5f0b2dd1d8182d99dda623d5a8bbc4acdc05e0a4
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 8 11:59:49 2012 +0200
Bug #559815 - Empty Reminders editor when opened second time
calendar/gui/dialogs/event-page.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 437af2d..d8d0711 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -918,6 +918,11 @@ event_page_dispose (GObject *object)
priv->sod = NULL;
}
+ if (priv->alarm_dialog) {
+ gtk_widget_destroy (priv->alarm_dialog);
+ priv->alarm_dialog = NULL;
+ }
+
/* Chain up to parent's dispose() method. */
G_OBJECT_CLASS (event_page_parent_class)->dispose (object);
}
@@ -3200,6 +3205,15 @@ alarm_custom_clicked_cb (GtkWidget *widget,
}
#endif
+static gboolean
+alarm_dialog_delete_event_cb (GtkWidget *alarm_dialog)
+{
+ gtk_widget_hide (alarm_dialog);
+
+ /* stop processing other handlers */
+ return TRUE;
+}
+
/* Hooks the widget signals */
static gboolean
init_widgets (EventPage *epage)
@@ -3347,7 +3361,7 @@ init_widgets (EventPage *epage)
G_CALLBACK (gtk_widget_hide), priv->alarm_dialog);
g_signal_connect (
priv->alarm_dialog, "delete-event",
- G_CALLBACK (gtk_widget_hide), priv->alarm_dialog);
+ G_CALLBACK (alarm_dialog_delete_event_cb), priv->alarm_dialog);
priv->alarm_list_dlg_widget = alarm_list_dialog_peek (
registry, client, priv->alarm_list_store);
gtk_widget_reparent (priv->alarm_list_dlg_widget, priv->alarm_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]