snapshot: Compute correct size in gtk_snapshot_to_paintable()
authorBenjamin Otte <otte@redhat.com>
Tue, 19 Jun 2018 17:40:37 +0000 (19:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 19 Jun 2018 17:44:17 +0000 (19:44 +0200)
commit8c8dc3aeab1de296b0acc8fed3d9ae4c4103ad5c
treec2fef71705beb0e9165883d8c76bf50e63aed54f
parent4d4ec2dbfb809db6fab0aee3dbdb7b41f07c3ec7
snapshot: Compute correct size in gtk_snapshot_to_paintable()

Also, do actually respect the passed in size argument if it isn't NULL.

Fixes text being cut off inside DND icons.
gtk/gtksnapshot.c