[tepl] File saving: add dialog window to GtkWindowGroup
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] File saving: add dialog window to GtkWindowGroup
- Date: Sat, 14 Oct 2017 13:57:31 +0000 (UTC)
commit fc98dfa99dae3430aa33944d720acf4f761141a0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Oct 14 15:54:47 2017 +0200
File saving: add dialog window to GtkWindowGroup
tepl/tepl-application-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tepl/tepl-application-window.c b/tepl/tepl-application-window.c
index eebf7a2..df463cb 100644
--- a/tepl/tepl-application-window.c
+++ b/tepl/tepl-application-window.c
@@ -320,6 +320,7 @@ save_as_cb (GSimpleAction *save_as_action,
TeplTab *tab;
GtkWidget *file_chooser_dialog;
GtkFileChooser *file_chooser;
+ GtkWindowGroup *window_group;
tab = tepl_tab_group_get_active_tab (TEPL_TAB_GROUP (tepl_window));
g_return_if_fail (tab != NULL);
@@ -336,6 +337,9 @@ save_as_cb (GSimpleAction *save_as_action,
/* Prevent tab from being destroyed. */
gtk_window_set_modal (GTK_WINDOW (file_chooser_dialog), TRUE);
+ window_group = tepl_application_window_get_window_group (tepl_window);
+ gtk_window_group_add_window (window_group, GTK_WINDOW (file_chooser_dialog));
+
file_chooser = GTK_FILE_CHOOSER (file_chooser_dialog);
gtk_file_chooser_set_do_overwrite_confirmation (file_chooser, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]