summaryrefslogtreecommitdiff
path: root/gtk/gtkarrow.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2002-02-26 23:50:14 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2002-02-26 23:50:14 +0000
commitad64579ca088e50234b8a8264684e7d8c818f38c (patch)
treefdeb1dc0840ae89ad63c7a26792f90941d86620e /gtk/gtkarrow.c
parent1e9f8b7c0f2a4197641f59d4bd152feb03d0cad3 (diff)
downloadgtk+-ad64579ca088e50234b8a8264684e7d8c818f38c.tar.gz
Draw arrows better (without extra baseline)
Wed Feb 27 00:45:39 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without extra baseline)
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r--gtk/gtkarrow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 5ce6b7eb31..bdf9b376cf 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -241,13 +241,13 @@ gtk_arrow_expose (GtkWidget *widget,
width = widget->allocation.width - misc->xpad * 2;
height = widget->allocation.height - misc->ypad * 2;
- extent = MIN (width, height);
+ extent = MIN (width, height) * 0.7;
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
xalign = misc->xalign;
else
xalign = 1.0 - misc->xalign;
-
+
x = floor (widget->allocation.x + misc->xpad
+ ((widget->allocation.width - extent) * xalign)
+ 0.5);