[nautilus/wip/antoniof/gtk4-preparation-step-properties-cleanup: 5/13] file-conflict-dialog: Set 18px margin as per HIG
- From: António Fernandes <antoniof src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [nautilus/wip/antoniof/gtk4-preparation-step-properties-cleanup: 5/13] file-conflict-dialog: Set 18px margin as per HIG
 
- Date: Tue,  9 Nov 2021 00:08:24 +0000 (UTC)
 
commit bc3dcb25775dae003e41012b2a8116acc1513c4a
Author: António Fernandes <antoniof gnome org>
Date:   Sun Jan 24 02:31:00 2021 +0000
    file-conflict-dialog: Set 18px margin as per HIG
    
    Also, remove 2 usages of GtkContainer:border-width, which is going to
    help with porting to GTK4.
 src/nautilus-file-conflict-dialog.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/nautilus-file-conflict-dialog.c b/src/nautilus-file-conflict-dialog.c
index 6481a717e..edc328967 100644
--- a/src/nautilus-file-conflict-dialog.c
+++ b/src/nautilus-file-conflict-dialog.c
@@ -280,7 +280,6 @@ nautilus_file_conflict_dialog_init (NautilusFileConflictDialog *fcd)
     hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
     dialog_area = gtk_dialog_get_content_area (dialog);
     gtk_box_pack_start (GTK_BOX (dialog_area), hbox, FALSE, FALSE, 0);
-    gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
 
     /* Setup the dialog image */
     widget = gtk_image_new_from_icon_name ("dialog-warning",
@@ -370,8 +369,7 @@ nautilus_file_conflict_dialog_init (NautilusFileConflictDialog *fcd)
     gtk_widget_grab_focus (fcd->replace_button);
 
     /* Setup HIG properties */
-    gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
-    gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (dialog)), 14);
+    g_object_set (dialog_area, "margin", 18, NULL);
     gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
 
     gtk_widget_show_all (dialog_area);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]