[gedit] spell: adapt code for gspell_language_chooser_dialog_new() change
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] spell: adapt code for gspell_language_chooser_dialog_new() change
- Date: Fri, 20 Nov 2015 16:07:50 +0000 (UTC)
commit 70f3859d51c5a5dccb20cbcd0e00d7832ba898be
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 20 16:57:19 2015 +0100
spell: adapt code for gspell_language_chooser_dialog_new() change
There is now a third parameter with the GtkDialogFlags.
Don't use an headerbar because it doesn't fit well with the added Help
button.
plugins/spell/gedit-spell-plugin.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 01f19aa..95623ef 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -336,7 +336,10 @@ set_language_cb (GSimpleAction *action,
lang = gspell_checker_get_language (checker);
- dialog = gspell_language_chooser_dialog_new (GTK_WINDOW (priv->window), lang);
+ dialog = gspell_language_chooser_dialog_new (GTK_WINDOW (priv->window),
+ lang,
+ GTK_DIALOG_MODAL |
+ GTK_DIALOG_DESTROY_WITH_PARENT);
g_object_bind_property (dialog, "language",
checker, "language",
@@ -346,8 +349,6 @@ set_language_cb (GSimpleAction *action,
gtk_window_group_add_window (wg, GTK_WINDOW (dialog));
- gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
-
gtk_dialog_add_button (GTK_DIALOG (dialog),
_("_Help"),
GTK_RESPONSE_HELP);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]