[gtk+] Make the custom paper size dialog not block the main dialog
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Make the custom paper size dialog not block the main dialog
- Date: Wed, 9 Sep 2009 04:05:08 +0000 (UTC)
commit 308fade38c1c69bcdd655d8c707c6c3dffe7fd9b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 8 19:39:52 2009 -0400
Make the custom paper size dialog not block the main dialog
This was causing problems in gedit, which uses window groups.
Bug 593678.
gtk/gtkcustompaperunixdialog.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c
index 7813b58..9006eab 100644
--- a/gtk/gtkcustompaperunixdialog.c
+++ b/gtk/gtkcustompaperunixdialog.c
@@ -375,15 +375,11 @@ _gtk_custom_paper_unix_dialog_new (GtkWindow *parent,
result = g_object_new (GTK_TYPE_CUSTOM_PAPER_UNIX_DIALOG,
"title", title,
+ "transient-for", parent,
+ "modal", parent != NULL,
+ "destroy-with-parent", TRUE,
NULL);
- if (parent)
- {
- gtk_window_set_modal (GTK_WINDOW (result), TRUE);
- gtk_window_set_transient_for (GTK_WINDOW (result), parent);
- gtk_window_set_destroy_with_parent (GTK_WINDOW (result), TRUE);
- }
-
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]