]> Pileus Git - ~andy/gtk/commitdiff
Fix a arrow positioning
authorMatthias Clasen <mclasen@redhat.com>
Mon, 9 May 2011 01:16:05 +0000 (21:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 9 May 2011 01:28:36 +0000 (21:28 -0400)
This gets the misc-alignment test for arrows closer to
not failing.

gtk/gtkarrow.c

index 04e3b9915235d4d4a531af7f338bd961e21f8aa5..431fd9bc1181021ea3342d83849edc7fcc39e09a 100644 (file)
@@ -345,8 +345,8 @@ gtk_arrow_draw (GtkWidget *widget,
         effective_arrow_type = GTK_ARROW_LEFT;
     }
 
-  x = xpad + ((width  - extent) * xalign);
-  y = ypad + ((height - extent) * yalign);
+  x = xpad + ((width - 2 * xpad - extent) * xalign);
+  y = ypad + ((height - 2 * ypad - extent) * yalign);
 
   switch (effective_arrow_type)
     {