diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-02-20 17:03:57 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2019-03-22 13:20:22 +0100 |
commit | bde8353d1c979ffb9ecf3b285344e34e4e5b25fd (patch) | |
tree | 6a702a3a66afd0100e471786d930e7cf76b5b420 | |
parent | 863cc23d12a1d7474dce2958fadcafdf183eab79 (diff) | |
download | gnome-settings-daemon-bde8353d1c979ffb9ecf3b285344e34e4e5b25fd.tar.gz |
media-keys: Use gtk_show_uri_on_window to fix a compile warning
Simply switching the call from gtk_show_uri to gtk_show_uri_on_window
fixes a compile time warning. This is valid, as both the passed screen
or window may be NULL.
-rw-r--r-- | plugins/media-keys/gsd-media-keys-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c index 8bdf32d3..027af429 100644 --- a/plugins/media-keys/gsd-media-keys-manager.c +++ b/plugins/media-keys/gsd-media-keys-manager.c @@ -1087,7 +1087,7 @@ do_home_key_action (GsdMediaKeysManager *manager, uri = g_file_get_uri (file); g_object_unref (file); - if (gtk_show_uri (NULL, uri, timestamp, &error) == FALSE) { + if (gtk_show_uri_on_window (NULL, uri, timestamp, &error) == FALSE) { g_warning ("Failed to launch '%s': %s", uri, error->message); g_error_free (error); } |