[gnome-photos] selection-toolbar: Compare the app names, not the pointers



commit 61844b55c9bfe09726b32357200d372169bf9daa
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Dec 15 15:31:36 2015 +0100

    selection-toolbar: Compare the app names, not the pointers

 src/photos-selection-toolbar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-selection-toolbar.c b/src/photos-selection-toolbar.c
index c502d93..6591ac9 100644
--- a/src/photos-selection-toolbar.c
+++ b/src/photos-selection-toolbar.c
@@ -307,7 +307,8 @@ photos_selection_toolbar_set_item_visibility (PhotosSelectionToolbar *self)
         fav_count++;
 
       default_app_name = photos_base_item_get_default_app_name (item);
-      if (default_app_name != NULL && g_list_find (apps, default_app_name) == NULL)
+      if (default_app_name != NULL
+          && g_list_find_custom (apps, default_app_name, (GCompareFunc) g_strcmp0) == NULL)
         apps = g_list_prepend (apps, (gpointer) g_strdup (default_app_name));
 
       show_trash = show_trash && photos_base_item_can_trash (item);


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