From ad64579ca088e50234b8a8264684e7d8c818f38c Mon Sep 17 00:00:00 2001 From: Soeren Sandmann Date: Tue, 26 Feb 2002 23:50:14 +0000 Subject: Draw arrows better (without extra baseline) Wed Feb 27 00:45:39 2002 Soeren Sandmann * gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without extra baseline) --- gtk/gtkarrow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtkarrow.c') 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); -- cgit v1.2.1