aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-03-07 09:20:45 +0800
committerJames Willcox <jwillcox@src.gnome.org>2003-03-07 09:20:45 +0800
commit49b1348c56bbcd4f00361b0aed4755242903efd8 (patch)
treeec5aac785b3a4981d6c25d878a324e48fdda2982
parentcae31d5a232a286fa1e9ce2c303f3ed139b81b87 (diff)
downloadgsoc2013-epiphany-49b1348c56bbcd4f00361b0aed4755242903efd8.tar.gz
gsoc2013-epiphany-49b1348c56bbcd4f00361b0aed4755242903efd8.tar.zst
gsoc2013-epiphany-49b1348c56bbcd4f00361b0aed4755242903efd8.zip
Fix the padding.
2003-03-06 James Willcox <jwillcox@gnome.org> * lib/egg/eggtoolbar.c: (egg_toolbar_size_allocate): Fix the padding.
-rw-r--r--ChangeLog4
-rw-r--r--lib/egg/eggtoolbar.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d9893eb5..2ead458c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2003-03-06 James Willcox <jwillcox@gnome.org>
+ * lib/egg/eggtoolbar.c: (egg_toolbar_size_allocate): Fix the padding.
+
+2003-03-06 James Willcox <jwillcox@gnome.org>
+
* data/ui/epiphany-ui.xml.in:
* lib/egg/eggtoolbar.c: Update from libegg
* lib/egg/eggtoolbar.h: same
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 <gtk/gtkradiobutton.h>
#include <gtk/gtktoolbar.h>
-#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)