[nautilus] file-conflict-dialog: Drop full-color icon



commit 2e5d113e59ca450a643ccaecdacb25b344bf860c
Author: Joshua Lee <lee son wai gmail com>
Date:   Thu Nov 11 05:05:46 2021 +0000

    file-conflict-dialog: Drop full-color icon
    
    Such use of full color icon used to be common place, but it's outdated.
    
    This also obliviates the need for the parent horizontal GtkBox.

 src/nautilus-file-conflict-dialog.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-file-conflict-dialog.c b/src/nautilus-file-conflict-dialog.c
index 30d0c64f2..5832dbfce 100644
--- a/src/nautilus-file-conflict-dialog.c
+++ b/src/nautilus-file-conflict-dialog.c
@@ -276,20 +276,10 @@ nautilus_file_conflict_dialog_init (NautilusFileConflictDialog *fcd)
 
     dialog = GTK_DIALOG (fcd);
 
-    /* Setup the main hbox */
-    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);
-
-    /* Setup the dialog image */
-    widget = gtk_image_new_from_icon_name ("dialog-warning",
-                                           GTK_ICON_SIZE_DIALOG);
-    gtk_box_pack_start (GTK_BOX (hbox), widget, FALSE, FALSE, 0);
-    gtk_widget_set_valign (widget, GTK_ALIGN_START);
-
     /* Setup the vbox containing the dialog body */
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
-    gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
+    dialog_area = gtk_dialog_get_content_area (dialog);
+    gtk_box_pack_start (GTK_BOX (dialog_area), vbox, FALSE, FALSE, 0);
 
     /* Setup the vbox for the dialog labels */
     widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);


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