summaryrefslogtreecommitdiff
path: root/lib/ephy-gui.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2017-02-19 10:54:06 -0600
committerMichael Catanzaro <mcatanzaro@gnome.org>2017-02-19 10:54:06 -0600
commit486f4389a11bee5e5fb2a4e2f1b415d082e6e6b6 (patch)
treee3d584d7436b2b6beb71918167f7377fc615ecf1 /lib/ephy-gui.c
parent2cb839ce0e385335f6253ffeca5e4c57073b3daa (diff)
downloadepiphany-486f4389a11bee5e5fb2a4e2f1b415d082e6e6b6.tar.gz
Use gtk_show_uri_on_window
To avoid deprecation warnings
Diffstat (limited to 'lib/ephy-gui.c')
-rw-r--r--lib/ephy-gui.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 8a3940bed..989012fc5 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -54,7 +54,6 @@ ephy_gui_help (GtkWidget *parent,
const char *page)
{
GError *error = NULL;
- GdkScreen *screen;
char *url;
if (page)
@@ -62,12 +61,7 @@ ephy_gui_help (GtkWidget *parent,
else
url = g_strdup ("help:epiphany");
- 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);
+ gtk_show_uri_on_window (GTK_WINDOW (parent), url, gtk_get_current_event_time (), &error);
if (error != NULL) {
GtkWidget *dialog;