Commit 843b356a authored by Ernestas Kulik's avatar Ernestas Kulik

general: use gtk_show_uri_on_window ()

gtk_show_uri () has been deprecated. This commit makes the code make use
of the recommended API instead.

https://bugzilla.gnome.org/show_bug.cgi?id=779083
parent 2b6ca358
......@@ -775,11 +775,8 @@ action_help (GSimpleAction *action,
GError *error = NULL;
window = gtk_application_get_active_window (application);
gtk_show_uri (window ?
gtk_window_get_screen (GTK_WINDOW (window)) :
gdk_screen_get_default (),
"help:gnome-help/files",
gtk_get_current_event_time (), &error);
gtk_show_uri_on_window (window, "help:gnome-help/files",
gtk_get_current_event_time (), &error);
if (error)
{
......
......@@ -690,7 +690,7 @@ handle_activate_result (NautilusShellSearchProvider2 *skeleton,
gboolean res;
GFile *file;
res = gtk_show_uri (NULL, result, timestamp, NULL);
res = gtk_show_uri_on_window (NULL, result, timestamp, NULL);
if (!res)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment