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



commit 454f10694131d11f2e07fba64bc2f7c7abc4f8ff
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 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);
        }


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