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:
committed by
Søren Sandmann Pedersen
parent
1e9f8b7c0f
commit
ad64579ca0
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user