[gnome-photos/wip/rishi/share-point: 2/17] base-item: Use photos_utils_app_info_launch_uri



commit 1197c91e7de771e9a72b2c28be2d8141db32cac3
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jul 27 23:20:30 2016 +0200

    base-item: Use photos_utils_app_info_launch_uri
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751181

 src/photos-base-item.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 634ba10..64eed2b 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -442,19 +442,13 @@ photos_base_item_default_open (PhotosBaseItem *self, GdkScreen *screen, guint32
 
   if (priv->default_app != NULL)
     {
-      GList *uris = NULL;
-
-      uris = g_list_prepend (uris, g_strdup (priv->uri));
-
       error = NULL;
-      g_app_info_launch_uris (priv->default_app, uris, NULL, &error);
+      photos_utils_app_info_launch_uri (priv->default_app, priv->uri, NULL, &error);
       if (error != NULL)
         {
           g_warning ("Unable to show URI %s: %s", priv->uri, error->message);
           g_error_free (error);
         }
-
-      g_list_free_full (uris, g_free);
     }
   else
     {


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