[gnome-photos/gnome-3-20] base-item: Add a create_filename_fallback pure virtual method
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/gnome-3-20] base-item: Add a create_filename_fallback pure virtual method
- Date: Mon, 27 Jun 2016 07:15:11 +0000 (UTC)
commit 744e24c9d18b39b3085a0895d9971c4b805b1662
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Jun 24 12:08:34 2016 +0200
base-item: Add a create_filename_fallback pure virtual method
Sometimes we need a filename for a BaseItem, even if it is not a
LocalItem:
- to represent the final outcome of an export
- when caching
Different BaseItem sub-classes can implement this virtual method to
create a string that can be used as a filename in the absence of an
nfo:fileName entry in the database.
https://bugzilla.gnome.org/show_bug.cgi?id=766162
src/photos-base-item.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-item.h b/src/photos-base-item.h
index 701125a..b1aa2a2 100644
--- a/src/photos-base-item.h
+++ b/src/photos-base-item.h
@@ -74,6 +74,7 @@ struct _PhotosBaseItemClass
const gchar *miner_object_path;
/* virtual methods */
+ gchar *(*create_filename_fallback) (PhotosBaseItem *self);
gchar *(*create_name_fallback) (PhotosBaseItem *self);
gchar *(*create_pipeline_path) (PhotosBaseItem *self);
gboolean (*create_thumbnail) (PhotosBaseItem *self, GCancellable *cancellable, GError
**error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]