From 26e1491c705f55444856d6dc97548553d9bc4a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 27 Jun 2017 17:12:00 +0200 Subject: [PATCH] label: Use the correct size in snapshot() --- gtk/gtklabel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 6b8c1ff61a..a7107511e3 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -3905,7 +3905,6 @@ gtk_label_snapshot (GtkWidget *widget, GtkLabelSelectionInfo *info; GtkStyleContext *context; gint lx, ly; - GtkAllocation allocation; int width, height, x; label = GTK_LABEL (widget); @@ -3916,10 +3915,8 @@ gtk_label_snapshot (GtkWidget *widget, context = _gtk_widget_get_style_context (widget); - gtk_widget_get_allocation (widget, &allocation); + gtk_widget_get_content_size (widget, &width, &height); x = 0; - width = allocation.width; - height = allocation.height; if (priv->text && (*priv->text != '\0')) {