+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)
+
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_source_set): Connect to
+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)
+
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_source_set): Connect to
+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)
+
2005-06-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_source_set): Connect to
}
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;
xalign = 1.0 - misc->xalign;
x = floor (widget->allocation.x + misc->xpad
- + ((widget->allocation.width - widget->requisition.width) * xalign)
- + 0.5);
+ + ((widget->allocation.width - widget->requisition.width) * xalign));
y = floor (widget->allocation.y + misc->ypad
- + ((widget->allocation.height - widget->requisition.height) * misc->yalign)
- + 0.5);
+ + ((widget->allocation.height - widget->requisition.height) * misc->yalign));
mask_x = x;
mask_y = y;
req_width = widget->requisition.width;
x = floor (widget->allocation.x + (gint)misc->xpad +
- xalign * (widget->allocation.width - req_width)
- + 0.5);
+ xalign * (widget->allocation.width - req_width));
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR)
x = MAX (x, widget->allocation.x + misc->xpad);
req_width - misc->xpad);
y = floor (widget->allocation.y + (gint)misc->ypad
- + MAX (((widget->allocation.height - widget->requisition.height) * misc->yalign)
- + 0.5, 0));
+ + MAX (((widget->allocation.height - widget->requisition.height) * misc->yalign),
+ 0));
if (xp)
*xp = x;
xalign = 1.0 - misc->xalign;
x = floor (widget->allocation.x + misc->xpad
- + ((widget->allocation.width - widget->requisition.width) * xalign)
- + 0.5);
+ + ((widget->allocation.width - widget->requisition.width) * xalign));
y = floor (widget->allocation.y + misc->ypad
- + ((widget->allocation.height - widget->requisition.height) * misc->yalign)
- + 0.5);
+ + ((widget->allocation.height - widget->requisition.height) * misc->yalign));
if (pixmap->mask)
{