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



commit 823ddcc296d563b1de9e9927070122b069b319f1
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 f8ae974..f9f940f 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]