From da5d9256984938434aea101a2d9ca615a91fa534 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 4 Jan 2006 13:46:26 +0000 Subject: R data/art/epiphany-close-tab.png: 2006-01-04 Christian Persch R data/art/epiphany-close-tab.png: * lib/ephy-stock-icons.c: (ephy_stock_icons_init): * lib/ephy-stock-icons.h: * src/ephy-notebook.c: (build_tab_label): Go back to using the gtk stock close icon, to get correct themeing in a11y themes. --- src/ephy-notebook.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/ephy-notebook.c') diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index ef2790a74..cd13b09b9 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -23,7 +23,6 @@ #include "config.h" #include "ephy-notebook.h" -#include "ephy-stock-icons.h" #include "eel-gconf-extensions.h" #include "ephy-prefs.h" #include "ephy-marshal.h" @@ -36,7 +35,7 @@ #include "ephy-link.h" #include "ephy-debug.h" -#include +#include #include #include #include @@ -48,8 +47,6 @@ #include #include #include -#include -#include #define TAB_WIDTH_N_CHARS 15 @@ -1057,7 +1054,7 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) { GtkWidget *hbox, *label_hbox, *label_ebox; GtkWidget *label, *close_button, *image, *spinner, *icon; - GtkIconSize close_icon_size; + GtkRcStyle *rcstyle; /* set hbox spacing and label padding (see below) so that there's an * equal amount of space around the label */ @@ -1076,9 +1073,14 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) GTK_RELIEF_NONE); /* don't allow focus on the close button */ gtk_button_set_focus_on_click (GTK_BUTTON (close_button), FALSE); + gtk_button_set_relief (GTK_BUTTON (close_button), GTK_RELIEF_NONE); + + rcstyle = gtk_rc_style_new (); + rcstyle->xthickness = rcstyle->ythickness = 0; + gtk_widget_modify_style (close_button, rcstyle); + gtk_rc_style_unref (rcstyle), - close_icon_size = gtk_icon_size_from_name (EPHY_ICON_SIZE_TAB_BUTTON); - image = gtk_image_new_from_stock (EPHY_STOCK_CLOSE_TAB, close_icon_size); + image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); gtk_container_add (GTK_CONTAINER (close_button), image); gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0); -- cgit