aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg/eggtoolitem.c
diff options
context:
space:
mode:
authorPiers Cornwell <piersc@cogs.susx.ac.uk>2003-06-09 05:32:02 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-09 05:32:02 +0800
commitbc879380cdd671e88955d503f0f9c22815e1c67e (patch)
tree8bafcf2fb72a066391c491e5ebc2c088bf0f3fd5 /lib/egg/eggtoolitem.c
parente803042418a83e9fe898c06ded27eec014df4224 (diff)
downloadgsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar.gz
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar.bz2
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar.lz
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar.xz
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.tar.zst
gsoc2013-epiphany-bc879380cdd671e88955d503f0f9c22815e1c67e.zip
Fixup context menu accesskeys. Use correct icon for Save As.
2003-06-08 Piers Cornwell <piersc@cogs.susx.ac.uk> * data/ui/epiphany-ui.xml.in: * src/ephy-window.c: Fixup context menu accesskeys. Use correct icon for Save As.
Diffstat (limited to 'lib/egg/eggtoolitem.c')
-rw-r--r--lib/egg/eggtoolitem.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/egg/eggtoolitem.c b/lib/egg/eggtoolitem.c
index 0ffc5b298..9e012a408 100644
--- a/lib/egg/eggtoolitem.c
+++ b/lib/egg/eggtoolitem.c
@@ -341,12 +341,14 @@ egg_tool_item_size_request (GtkWidget *widget,
GtkRequisition *requisition)
{
GtkBin *bin = GTK_BIN (widget);
+ gint xthickness = widget->style->xthickness;
+ gint ythickness = widget->style->ythickness;
if (bin->child)
gtk_widget_size_request (bin->child, requisition);
- requisition->width += GTK_CONTAINER (widget)->border_width * 2;
- requisition->height += GTK_CONTAINER (widget)->border_width * 2;
+ requisition->width += (xthickness + GTK_CONTAINER (widget)->border_width) * 2;
+ requisition->height += (ythickness + GTK_CONTAINER (widget)->border_width) * 2;
}
static void
@@ -371,10 +373,13 @@ egg_tool_item_size_allocate (GtkWidget *widget,
child = GTK_BIN (toolitem)->child;
if (child && GTK_WIDGET_VISIBLE (child))
{
- child_allocation.x = allocation->x + border_width;
- child_allocation.y = allocation->y + border_width;
- child_allocation.width = allocation->width - border_width * 2;
- child_allocation.height = allocation->height - border_width * 2;
+ 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);
gtk_widget_size_allocate (child, &child_allocation);
}