[gnome-settings-daemon/wip/benzea/cleanups-and-small-fixes: 17/18] media-keys: Use gtk_show_uri_on_window to fix a compile warning



commit f20848604feba5b2ce7ef9d155c7f97a5fcdd474
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Feb 20 17:03:57 2019 +0100

    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.

 plugins/media-keys/gsd-media-keys-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 0223e161..96a50e49 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1084,7 +1084,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);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]