[gnome-calendar/calendar-editor] window: hide calendar popover when the dialog is trigged



commit bba7959b44767a041ee3151c49b7bb6ca767c5ad
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 14:21:08 2015 -0200

    window: hide calendar popover when the dialog is trigged

 src/gcal-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index af71a4d..6e2fd0d 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -825,6 +825,8 @@ show_source_dialog (GtkButton *button,
 
   gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_CREATE);
 
+  gtk_widget_hide (priv->calendar_popover);
+
   gtk_dialog_run (GTK_DIALOG (priv->source_dialog));
   gtk_widget_hide (priv->source_dialog);
 }
@@ -857,6 +859,8 @@ source_row_activated (GtkListBox    *listbox,
   gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT);
   gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (priv->source_dialog), source);
 
+  gtk_widget_hide (priv->calendar_popover);
+
   gtk_dialog_run (GTK_DIALOG (priv->source_dialog));
   gtk_widget_hide (priv->source_dialog);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]