]> Pileus Git - ~andy/gtk/commitdiff
Make the custom paper size dialog not block the main dialog
authorMatthias Clasen <mclasen@redhat.com>
Tue, 8 Sep 2009 23:39:52 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 9 Sep 2009 04:03:14 +0000 (00:03 -0400)
This was causing problems in gedit, which uses window groups.
Bug 593678.

gtk/gtkcustompaperunixdialog.c

index 7813b58fc75773cf8eed55a82671064d19a3c775..9006eaba230af4dc5970fbfa8f0f6449ca9bc718 100644 (file)
@@ -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;
 }