summaryrefslogtreecommitdiff
path: root/frontends/gtk/toolbar.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-09 11:58:44 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-05-09 11:58:44 +0100
commitd2e5446bfbebb199db868b7696f9afef308bec3c (patch)
tree4600504dcf9d9dd4cd63ba3813a18f69a0748de4 /frontends/gtk/toolbar.c
parent600b2ed60aceae01c1a1e551d1812c9a3789a92f (diff)
downloadnetsurf-d2e5446bfbebb199db868b7696f9afef308bec3c.tar.gz
netsurf-d2e5446bfbebb199db868b7696f9afef308bec3c.tar.bz2
GTK: Change toolbar page-info to use compat allocation function
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'frontends/gtk/toolbar.c')
-rw-r--r--frontends/gtk/toolbar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/gtk/toolbar.c b/frontends/gtk/toolbar.c
index c6028c94b..9a57b67ee 100644
--- a/frontends/gtk/toolbar.c
+++ b/frontends/gtk/toolbar.c
@@ -3806,12 +3806,15 @@ nserror nsgtk_toolbar_position_page_info(struct nsgtk_toolbar *tb,
{
struct nsgtk_toolbar_item *item = &tb->items[URL_BAR_ITEM];
GtkWidget *widget = GTK_WIDGET(gtk_bin_get_child(GTK_BIN(item->button)));
+ GtkAllocation alloc;
gint rootx, rooty, x, y;
+ nsgtk_widget_get_allocation(widget, &alloc);
+
if (gtk_widget_translate_coordinates(widget,
gtk_widget_get_toplevel(widget),
0,
- gtk_widget_get_allocated_height(widget) - 1,
+ alloc.height - 1,
&x, &y) != TRUE) {
return NSERROR_UNKNOWN;
}