mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
printing: Another tweak to sheet drawing
After consultation, revisit the vertical centering to center the first 'stack', and put the second one behind it.
This commit is contained in:
parent
72a809be0a
commit
f634684eeb
@ -2244,12 +2244,12 @@ draw_collate_cb (GtkWidget *widget,
|
|||||||
|
|
||||||
rtl = (gtk_widget_get_direction (GTK_WIDGET (widget)) == GTK_TEXT_DIR_RTL);
|
rtl = (gtk_widget_get_direction (GTK_WIDGET (widget)) == GTK_TEXT_DIR_RTL);
|
||||||
|
|
||||||
x = (gtk_widget_get_allocated_width (widget) - 66) / 2;
|
x = (gtk_widget_get_allocated_width (widget) - 30) / 2;
|
||||||
y = (gtk_widget_get_allocated_height (widget) - 36) / 2;
|
y = (gtk_widget_get_allocated_height (widget) - 36) / 2;
|
||||||
if (rtl)
|
if (rtl)
|
||||||
{
|
{
|
||||||
x1 = x + 36;
|
x1 = x;
|
||||||
x2 = x;
|
x2 = x - 36;
|
||||||
p1 = 0;
|
p1 = 0;
|
||||||
p2 = 10;
|
p2 = 10;
|
||||||
text_x = 4;
|
text_x = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user