[gnome-calendar/calendar-editor] window: hide the dialog after the response



commit 602934622bb42afef3c961c685f0a6444c0f4385
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 13:27:11 2015 -0200

    window: hide the dialog after the response

 src/gcal-window.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 0864825..28c9c8d 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -825,7 +825,8 @@ show_source_dialog (GtkButton *button,
 
   gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_CREATE);
 
-  gtk_window_present (GTK_WINDOW (priv->source_dialog));
+  gtk_dialog_run (GTK_DIALOG (priv->source_dialog));
+  gtk_widget_hide (priv->source_dialog);
 }
 
 static void
@@ -837,7 +838,8 @@ source_row_activated (GtkListBox    *listbox,
 
   gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT);
 
-  gtk_window_present (GTK_WINDOW (priv->source_dialog));
+  gtk_dialog_run (GTK_DIALOG (priv->source_dialog));
+  gtk_widget_hide (priv->source_dialog);
 }
 
 static void


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