summaryrefslogtreecommitdiff
path: root/gtk/gtkarrow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-06-21 15:38:40 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-06-21 15:38:40 +0000
commit2ef6d354d1ad64a484c8980e8d2a908adb274d96 (patch)
treeb317d24ef79d5b1916e55a5c1548acf3cabc72c3 /gtk/gtkarrow.c
parent50807a616b17e120ada50fb82bad7ed4128a8153 (diff)
downloadgtk+-2ef6d354d1ad64a484c8980e8d2a908adb274d96.tar.gz
Modify all of the GtkMisc widgets to round down on centering calculations
2005-06-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkarrow.c: * gtk/gtkimage.c: * gtk/gtklabel.c: * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down on centering calculations to match the behaviour of other parts of GTK+. (#307419, Ryan Lortie)
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r--gtk/gtkarrow.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index f9568e481f..350b404124 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -260,11 +260,9 @@ gtk_arrow_expose (GtkWidget *widget,
}
x = floor (widget->allocation.x + misc->xpad
- + ((widget->allocation.width - extent) * xalign)
- + 0.5);
+ + ((widget->allocation.width - extent) * xalign));
y = floor (widget->allocation.y + misc->ypad
- + ((widget->allocation.height - extent) * misc->yalign)
- + 0.5);
+ + ((widget->allocation.height - extent) * misc->yalign));
shadow_type = arrow->shadow_type;