[gnome-calendar] window: hide the dialog after the response
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: hide the dialog after the response
- Date: Mon, 25 May 2015 16:46:59 +0000 (UTC)
commit 95af5c72d343b42acbeac97614f84dfe5137a0b7
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 3864884..a3dd681 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -868,7 +868,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
@@ -880,7 +881,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]