Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/d2e5446bfbebb199db868b7696f9afef308bec3c
...commit
http://git.netsurf-browser.org/netsurf.git/commit/d2e5446bfbebb199db868b7696f9afef308bec3c
...tree
http://git.netsurf-browser.org/netsurf.git/tree/d2e5446bfbebb199db868b7696f9afef308bec3c
The branch, master has been updated
via d2e5446bfbebb199db868b7696f9afef308bec3c (commit)
from 600b2ed60aceae01c1a1e551d1812c9a3789a92f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=d2e5446bfbebb199db868b7696f9afef308bec3c
commit d2e5446bfbebb199db868b7696f9afef308bec3c
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
GTK: Change toolbar page-info to use compat allocation function
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/frontends/gtk/toolbar.c b/frontends/gtk/toolbar.c
index c6028c9..9a57b67 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;
}
-----------------------------------------------------------------------
Summary of changes:
frontends/gtk/toolbar.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/frontends/gtk/toolbar.c b/frontends/gtk/toolbar.c
index c6028c9..9a57b67 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;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]