aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-09-13 18:38:25 +0800
committerChristian Persch <chpe@src.gnome.org>2004-09-13 18:38:25 +0800
commita04af5554c7ffd589bc9b8e39d33cf6001bb9e30 (patch)
tree3302cd07c9927c285b2b32c792f24379f6fb63ed /src
parent9ea59954b1c4c79acc545a13c4199aba2a8d66e6 (diff)
downloadgsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar.gz
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar.bz2
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar.lz
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar.xz
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.tar.zst
gsoc2013-epiphany-a04af5554c7ffd589bc9b8e39d33cf6001bb9e30.zip
Fix for too-small notebook tab close buttons. Fixes bug #144772.
2004-09-13 Christian Persch <chpe@cvs.gnome.org> * data/art/Makefile.am: * data/art/epiphany-close-tab.png: * lib/ephy-stock-icons.c: (ephy_stock_icons_init): * src/ephy-notebook.c: (build_tab_label): Fix for too-small notebook tab close buttons. Fixes bug #144772.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 5651b2e98..c359f5c59 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -25,6 +25,7 @@
#endif
#include "ephy-notebook.h"
+#include "ephy-stock-icons.h"
#include "eel-gconf-extensions.h"
#include "ephy-prefs.h"
#include "ephy-marshal.h"
@@ -844,12 +845,10 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab)
{
GtkWidget *window, *hbox, *label_hbox, *label_ebox;
GtkWidget *label, *close_button, *image, *spinner, *icon;
- int h = -1, w = -1;
+ GtkIconSize close_icon_size;
window = gtk_widget_get_toplevel (GTK_WIDGET (nb));
- gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h);
-
/* set hbox spacing and label padding (see below) so that there's an
* equal amount of space around the label */
hbox = gtk_hbox_new (FALSE, 4);
@@ -865,9 +864,8 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab)
close_button = gtk_button_new ();
gtk_button_set_relief (GTK_BUTTON (close_button),
GTK_RELIEF_NONE);
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
- GTK_ICON_SIZE_MENU);
- gtk_widget_set_size_request (close_button, w, h);
+ 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);
gtk_container_add (GTK_CONTAINER (close_button), image);
gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);