[gnome-disk-utility] Drop unneeded margin inside image buttons



commit 8902cbcfa1235d1f9e02333f6a1fa798a71c6ac0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 18 21:31:30 2014 -0400

    Drop unneeded margin inside image buttons
    
    These margins may have been needed before GTK+ was automatically
    adding the image-button style class. Nowadays, they just make the
    buttons non-square.
    https://bugzilla.gnome.org/show_bug.cgi?id=726500
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/disks/gduwindow.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 56b457b..875cf1e 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -976,30 +976,22 @@ create_header (GduWindow *window)
 
   button = window->devtab_drive_loop_detach_button = gtk_button_new ();
   image = gtk_image_new_from_icon_name ("list-remove-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_widget_set_margin_left (image, 4);
-  gtk_widget_set_margin_right (image, 4);
   gtk_button_set_image (GTK_BUTTON (button), image);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
 
   button = window->devtab_drive_eject_button = gtk_button_new ();
   image = gtk_image_new_from_icon_name ("media-eject-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_widget_set_margin_left (image, 4);
-  gtk_widget_set_margin_right (image, 4);
   gtk_button_set_image (GTK_BUTTON (button), image);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
 
   button = window->devtab_drive_power_off_button = gtk_button_new ();
   image = gtk_image_new_from_icon_name ("system-shutdown-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_widget_set_margin_left (image, 4);
-  gtk_widget_set_margin_right (image, 4);
   gtk_button_set_image (GTK_BUTTON (button), image);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
 
   button = window->devtab_drive_generic_button = gtk_menu_button_new ();
   gtk_menu_button_set_popup (GTK_MENU_BUTTON (button), window->generic_drive_menu);
   image = gtk_image_new_from_icon_name ("emblem-system-symbolic", GTK_ICON_SIZE_MENU);
-  gtk_widget_set_margin_left (image, 4);
-  gtk_widget_set_margin_right (image, 4);
   gtk_button_set_image (GTK_BUTTON (button), image);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
   return header;


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