[epiphany] Fix download bar close button



commit e0bf4057b44661cb83ee24f9195e817ea0c00cbd
Author: William Jon McCann <william jon mccann gmail com>
Date:   Sun Dec 22 10:48:45 2013 -0500

    Fix download bar close button
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720941

 src/ephy-window.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 03e5a98..d6331d9 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2932,10 +2932,16 @@ setup_downloads_box (EphyWindow *window)
 
        widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        close_button = gtk_button_new ();
-       image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_BUTTON);
+       gtk_container_set_border_width (GTK_CONTAINER (close_button), 6);
+       gtk_widget_set_valign (close_button, GTK_ALIGN_CENTER);
+       gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "image-button");
+       gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "close");
 
        gtk_button_set_relief (GTK_BUTTON (close_button), GTK_RELIEF_NONE);
 
+       image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU);
+       g_object_set (image, "use-fallback", TRUE, NULL);
+
        gtk_container_add (GTK_CONTAINER (close_button), image);
        gtk_box_pack_end (GTK_BOX (widget), close_button, FALSE, FALSE, 4);
 


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