[Xfce4-commits] [apps/xfburn] 02/04: Bugfix: Do close new warning dialog

noreply at xfce.org noreply at xfce.org
Tue Mar 25 14:18:17 CET 2014


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit 0c4e78559fc6150e7c7d704b58508fe41b8d0a77
Author: David Mohr <david at mcbf.net>
Date:   Mon Mar 24 23:32:01 2014 -0600

    Bugfix: Do close new warning dialog
    
    Bug was introduced in 3fa931a47931ab0d9dd3b7c1ca5f43b603eacaf8.
---
 xfburn/xfburn-data-composition.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/xfburn/xfburn-data-composition.c b/xfburn/xfburn-data-composition.c
index 6bfbbfe..e5ab751 100644
--- a/xfburn/xfburn-data-composition.c
+++ b/xfburn/xfburn-data-composition.c
@@ -2016,7 +2016,6 @@ generate_iso_image (XfburnDataComposition * dc)
       gchar * combined_msg = "";
       GtkWidget * dialog, * label, * textview, * scrolled;
       GtkTextBuffer * buffer;
-      GdkGeometry hints = {600, 200, -1, -1, 700, 400, 1, 1, 0.0, 0.0};
       XfburnMainWindow *mainwin = xfburn_main_window_get_instance ();
       gchar * title;
 
@@ -2029,7 +2028,7 @@ generate_iso_image (XfburnDataComposition * dc)
                                             GTK_WINDOW (mainwin),
                                             GTK_DIALOG_DESTROY_WITH_PARENT,
                                             GTK_STOCK_OK,
-                                            GTK_RESPONSE_NONE,
+                                            GTK_RESPONSE_OK,
                                             NULL);
 
       label = gtk_label_new (NULL);
@@ -2048,16 +2047,15 @@ generate_iso_image (XfburnDataComposition * dc)
       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
       gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), scrolled);
 
-      gtk_window_set_geometry_hints (GTK_WINDOW (dialog),
-                                     scrolled,
-                                     &hints,
-                                     GDK_HINT_BASE_SIZE | GDK_HINT_MIN_SIZE);
+      gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 200);
 
       gtk_widget_show (label);
       gtk_widget_show (textview);
       gtk_widget_show (scrolled);
 
       gtk_dialog_run (GTK_DIALOG (dialog));
+
+      gtk_widget_destroy (dialog);
       g_free (combined_msg);
     }
   }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list