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



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

    base-item: Use photos_utils_app_info_launch_uri

 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]