[gtk+] Fix a arrow positioning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a arrow positioning
- Date: Mon, 9 May 2011 01:28:40 +0000 (UTC)
commit 3b3c5e19d90f52fbcb959ec5dd9eb00f3167707e
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 8 21:16:05 2011 -0400
Fix a arrow positioning
This gets the misc-alignment test for arrows closer to
not failing.
gtk/gtkarrow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 04e3b99..431fd9b 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]