mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
textutil: Stop using gtk_widget_get_allocation
This commit is contained in:
parent
79119e64f9
commit
627ce3d447
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user