aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-gui.c')
-rw-r--r--lib/ephy-gui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 053b970df..5ad290772 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -292,7 +292,11 @@ ephy_gui_help (GtkWidget *parent,
else
url = g_strdup ("ghelp:epiphany");
- screen = gtk_widget_get_screen (parent);
+ if (parent)
+ screen = gtk_widget_get_screen (parent);
+ else
+ screen = gdk_screen_get_default ();
+
gtk_show_uri (screen, url, gtk_get_current_event_time (), &error);
if (error != NULL)