From 49b1348c56bbcd4f00361b0aed4755242903efd8 Mon Sep 17 00:00:00 2001 From: James Willcox Date: Fri, 7 Mar 2003 01:20:45 +0000 Subject: Fix the padding. 2003-03-06 James Willcox * lib/egg/eggtoolbar.c: (egg_toolbar_size_allocate): Fix the padding. --- lib/egg/eggtoolbar.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/egg/eggtoolbar.c b/lib/egg/eggtoolbar.c index ec7b4e04f..7fb5c0605 100644 --- a/lib/egg/eggtoolbar.c +++ b/lib/egg/eggtoolbar.c @@ -33,7 +33,7 @@ #include #include -#define DEFAULT_IPADDING 0 +#define DEFAULT_IPADDING 2 #define DEFAULT_SPACE_SIZE 5 #define DEFAULT_SPACE_STYLE GTK_TOOLBAR_SPACE_LINE @@ -716,10 +716,7 @@ egg_toolbar_size_allocate (GtkWidget *widget, total_size = 0; number_expandable = 0; space_size = get_space_size (toolbar); - - gtk_widget_style_get (widget, "internal_padding", &ipadding, NULL); - border_width += ipadding; - + available_width = allocation->width - 2 * border_width; available_height = allocation->height - 2 * border_width; if (toolbar->orientation == GTK_ORIENTATION_HORIZONTAL) -- cgit v1.2.3