[gtk+/wip/baedert/drawing: 63/63] label: Use the correct size in snapshot()
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 63/63] label: Use the correct size in snapshot()
- Date: Tue, 27 Jun 2017 16:56:46 +0000 (UTC)
commit ff880585c39d80c0d343c15967177cfce98d2c20
Author: Timm Bäder <mail baedert org>
Date: Tue Jun 27 17:12:00 2017 +0200
label: Use the correct size in snapshot()
gtk/gtklabel.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index aaf7edf..be2249b 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'))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]