summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitem.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-07-18 16:25:31 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-07-18 16:25:31 +0000
commit80560b9d3dc597ec0db1acb94f9d08a0ac192b51 (patch)
treef32b9622a70135df6cb42bcace0ed9a623891fc5 /gtk/gtktoolitem.c
parent62a7160df0c8891cdc0a8ed88d3abb1b934cb236 (diff)
downloadgtk+-80560b9d3dc597ec0db1acb94f9d08a0ac192b51.tar.gz
By popular request give toolbuttons a border.
Fri Jul 18 18:43:01 2003 Soeren Sandmann <sandmann@daimi.au.dk> By popular request give toolbuttons a border. * gtk/gtktoolitem.c (gtk_tool_item_size_allocate): (gtk_tool_item_size_request): don't request and allocate a border around the child * gtk/gtktoolbutton.c (gtk_tool_button_size_allocate): (gtk_tool_button_size_request): remove these functions * gtk/gtktoolbar.c (gtk_toolbar_size_request): (gtk_toolbar_size_allocate): request and allocate a border if we have a shadow.
Diffstat (limited to 'gtk/gtktoolitem.c')
-rw-r--r--gtk/gtktoolitem.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c
index b52553dc1d..b7658816e2 100644
--- a/gtk/gtktoolitem.c
+++ b/gtk/gtktoolitem.c
@@ -400,13 +400,10 @@ gtk_tool_item_size_allocate (GtkWidget *widget,
if (child && GTK_WIDGET_VISIBLE (child))
{
- gint xthickness = widget->style->xthickness;
- gint ythickness = widget->style->ythickness;
-
- child_allocation.x = allocation->x + border_width + xthickness;
- child_allocation.y = allocation->y + border_width + ythickness;
- child_allocation.width = allocation->width - 2 * (xthickness + border_width);
- child_allocation.height = allocation->height - 2 * (ythickness + border_width);
+ child_allocation.x = allocation->x + border_width;
+ child_allocation.y = allocation->y + border_width;
+ child_allocation.width = allocation->width - 2 * border_width;
+ child_allocation.height = allocation->height - 2 * border_width;
gtk_widget_size_allocate (child, &child_allocation);
}