[gnome-photos] selection-toolbar: Simplify code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] selection-toolbar: Simplify code
- Date: Tue, 12 Aug 2014 00:14:59 +0000 (UTC)
commit 05f65fefc055a296509f724d80eff524c11deeea
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Aug 11 23:59:41 2014 +0200
selection-toolbar: Simplify code
src/photos-selection-toolbar.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-selection-toolbar.c b/src/photos-selection-toolbar.c
index 9304be9..daea869 100644
--- a/src/photos-selection-toolbar.c
+++ b/src/photos-selection-toolbar.c
@@ -31,7 +31,6 @@
#include "photos-base-item.h"
#include "photos-delete-notification.h"
-#include "photos-filterable.h"
#include "photos-icons.h"
#include "photos-item-manager.h"
#include "photos-organize-collection-dialog.h"
@@ -396,10 +395,7 @@ photos_selection_toolbar_trash_clicked (GtkButton *button, gpointer user_data)
for (l = items; l != NULL; l = l->next)
{
PhotosBaseItem *item = PHOTOS_BASE_ITEM (l->data);
- const gchar *urn;
-
- urn = photos_filterable_get_id (PHOTOS_FILTERABLE (item));
- photos_base_manager_remove_object_by_id (priv->item_mngr, urn);
+ photos_base_manager_remove_object (priv->item_mngr, G_OBJECT (item));
}
photos_delete_notification_new (items);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]