From: Matthias Clasen Date: Fri, 28 Apr 2023 18:16:32 +0000 (-0400) Subject: textutil: Stop using gtk_widget_get_allocation X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~347^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=627ce3d44733f8c5ce89e67607a4ab9ff96f17c2;p=gtk4.git textutil: Stop using gtk_widget_get_allocation --- diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c index a7cc04da61..5d3146b786 100644 --- a/gtk/gtktextutil.c +++ b/gtk/gtktextutil.c @@ -207,7 +207,6 @@ gtk_text_util_create_rich_drag_icon (GtkWidget *widget, GtkTextIter *start, GtkTextIter *end) { - GtkAllocation allocation; GdkPaintable *paintable; GtkSnapshot *snapshot; int layout_width, layout_height; @@ -244,8 +243,7 @@ gtk_text_util_create_rich_drag_icon (GtkWidget *widget, style = gtk_text_attributes_new (); - gtk_widget_get_allocation (widget, &allocation); - layout_width = allocation.width; + layout_width = gtk_widget_get_width (widget); set_attributes_from_style (widget, style);