diff options
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 929810e6a4..c8e0730548 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1614,8 +1614,7 @@ add_child_attrs (GtkTextLayout *layout, /* Found it */ GtkRequisition req; - gtk_size_request_get_size (GTK_SIZE_REQUEST (child), - &req, NULL); + gtk_widget_get_preferred_size (child, &req, NULL); width = req.width; height = req.height; |