aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-web-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-web-view.c')
-rw-r--r--widgets/misc/e-web-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index a873731014..0a0e3143ef 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -255,7 +255,7 @@ action_http_open_cb (GtkAction *action,
gpointer parent;
parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view));
- parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
+ parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
uri = e_web_view_get_selected_uri (web_view);
g_return_if_fail (uri != NULL);
@@ -311,7 +311,7 @@ action_send_message_cb (GtkAction *action,
gpointer parent;
parent = gtk_widget_get_toplevel (GTK_WIDGET (web_view));
- parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
+ parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
uri = e_web_view_get_selected_uri (web_view);
g_return_if_fail (uri != NULL);
@@ -684,7 +684,7 @@ web_view_link_clicked (GtkHTML *html,
gpointer parent;
parent = gtk_widget_get_toplevel (GTK_WIDGET (html));
- parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
+ parent = gtk_widget_is_toplevel (parent) ? parent : NULL;
e_show_uri (parent, uri);
}