Commit ece3c54f authored by Benjamin Otte's avatar Benjamin Otte

arrow: Don't include padding in computation of alignment

parent 2ebdcf5f
......@@ -330,10 +330,10 @@ gtk_arrow_draw (GtkWidget *widget,
gtk_misc_get_padding (misc, &xpad, &ypad);
gtk_misc_get_alignment (misc, &xalign, &yalign);
width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_height (widget);
width = gtk_widget_get_allocated_width (widget) - 2 * xpad;
height = gtk_widget_get_allocated_height (widget) - 2 * ypad;
extent = MIN (width - 2 * xpad, height - 2 * ypad) * arrow_scaling;
extent = MIN (width, height) * arrow_scaling;
effective_arrow_type = priv->arrow_type;
if (gtk_widget_get_direction (widget) != GTK_TEXT_DIR_LTR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment