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)
This commit is contained in:
Soeren Sandmann
2002-02-26 23:50:14 +00:00
committed by Søren Sandmann Pedersen
parent 1e9f8b7c0f
commit ad64579ca0
12 changed files with 300 additions and 191 deletions

View File

@ -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);