[Xfce4-commits] <midori:master> Fix midori_view_get_for_widget behavior for WebKit2
Christian Dywan
noreply at xfce.org
Sat Apr 6 23:14:06 CEST 2013
Updating branch refs/heads/master
to 45ef6691c14e2eaf581bb4bc482ebbe88e3910aa (commit)
from e97a57fbbbd7705e9e54bd1ed1cdf019b5034b13 (commit)
commit 45ef6691c14e2eaf581bb4bc482ebbe88e3910aa
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Apr 6 23:12:15 2013 +0200
Fix midori_view_get_for_widget behavior for WebKit2
midori/midori-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 56e5e58..8d9f1ab 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5875,7 +5875,11 @@ midori_view_get_for_widget (GtkWidget* web_view)
{
g_return_val_if_fail (GTK_IS_WIDGET (web_view), NULL);
+ #ifdef HAVE_WEBKIT2
+ GtkWidget* scrolled = web_view;
+ #else
GtkWidget* scrolled = gtk_widget_get_parent (web_view);
+ #endif
#if GTK_CHECK_VERSION(3, 2, 0)
GtkWidget* overlay = gtk_widget_get_parent (scrolled);
GtkWidget* view = gtk_widget_get_parent (overlay);
More information about the Xfce4-commits
mailing list