summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-20 18:19:23 +0100
committerinfirit <[email protected]>2014-11-20 19:40:56 +0100
commit09fe261d9d0e6bbb9c44d073e6211c5eed37b2c0 (patch)
tree23d0ff1ba4936979229f87d58fb982539c9ee45f /src
parentf121d2e1058ffbdbb602a3322a129c1e4ed5f7c4 (diff)
downloadengrampa-09fe261d9d0e6bbb9c44d073e6211c5eed37b2c0.tar.bz2
engrampa-09fe261d9d0e6bbb9c44d073e6211c5eed37b2c0.tar.xz
do not set the border width for any dialog
Based on FR commit: 2d1d283b71d4c5bf830ecc38a560df9b93932215 From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/fr-window.c5
-rw-r--r--src/gtk-utils.c18
2 files changed, 0 insertions, 23 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 0ff7f25..84bac36 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7246,12 +7246,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 8082127..fbcf967 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -75,13 +75,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);
@@ -210,13 +205,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);
@@ -304,10 +294,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);
@@ -391,10 +377,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 */