[file-roller] do not set the border width for any dialog



commit 2d1d283b71d4c5bf830ecc38a560df9b93932215
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Mar 9 21:24:17 2011 +0100

    do not set the border width for any dialog

 src/fr-window.c |    5 -----
 src/gtk-utils.c |   18 ------------------
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 4775c48..4ae485a 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7125,12 +7125,7 @@ fr_window_view_last_output (FrWindow   *window,
 					      GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
 					      NULL);
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
-
 	gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
-	gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
-	gtk_container_set_border_width (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 6);
-	gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 8);
-
 	gtk_widget_set_size_request (dialog, 500, 300);
 
 	/* Add text */
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index eca1471..1fdb8e4 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -74,13 +74,8 @@ _gtk_message_dialog_new (GtkWindow        *parent,
 		stock_id = GTK_STOCK_DIALOG_INFO;
 
 	dialog = gtk_dialog_new_with_buttons ("", parent, flags, NULL);
-
 	content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
-	gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
-	gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
-	gtk_box_set_spacing (GTK_BOX (content_area), 8);
-
 	/* Add label and image */
 
 	image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG);
@@ -209,13 +204,8 @@ _gtk_request_dialog_run (GtkWindow        *parent,
 	stock_id = GTK_STOCK_DIALOG_QUESTION;
 
 	dialog = gtk_dialog_new_with_buttons (title, parent, flags, NULL);
-
 	content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
-	gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
-	gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
-	gtk_box_set_spacing (GTK_BOX (content_area), 8);
-
 	/* Add label and image */
 
 	image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG);
@@ -303,10 +293,6 @@ _gtk_yesno_dialog_new (GtkWindow        *parent,
 
 	content_area = gtk_dialog_get_content_area (GTK_DIALOG (d));
 
-	gtk_container_set_border_width (GTK_CONTAINER (d), 6);
-	gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
-	gtk_box_set_spacing (GTK_BOX (content_area), 8);
-
 	/* Add label and image */
 
 	image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG);
@@ -390,10 +376,6 @@ _gtk_error_dialog_new (GtkWindow        *parent,
 
 	content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 
-	gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
-	gtk_container_set_border_width (GTK_CONTAINER (content_area), 6);
-	gtk_box_set_spacing (GTK_BOX (content_area), 8);
-
 	gtk_widget_set_size_request (dialog, 500, -1);
 
 	/* Add label and image */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]