[bijiben] Notebooks: warn it cannot be restored yet.
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Notebooks: warn it cannot be restored yet.
- Date: Mon, 17 Mar 2014 23:15:19 +0000 (UTC)
commit 7c03802fd65869fefa058a6c3adeb30cebcda80f
Author: Pierre-Yves Luyten <py luyten fr>
Date: Mon Mar 17 23:54:35 2014 +0100
Notebooks: warn it cannot be restored yet.
src/libbiji/biji-item.h | 11 ++++++-----
src/libbiji/biji-notebook.c | 10 ++++++++++
2 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/src/libbiji/biji-item.h b/src/libbiji/biji-item.h
index c4dec9b..7f1a193 100644
--- a/src/libbiji/biji-item.h
+++ b/src/libbiji/biji-item.h
@@ -74,9 +74,9 @@ struct BijiItemClass_
gboolean (*delete) (BijiItem *item);
gboolean (*is_collectable) (BijiItem *item);
- gboolean (*has_notebook) (BijiItem *item, gchar *coll);
- gboolean (*add_notebook) (BijiItem *item, BijiItem *coll, gchar *title);
- gboolean (*remove_notebook) (BijiItem *item, BijiItem *coll);
+ gboolean (*has_notebook) (BijiItem *item, gchar *coll);
+ gboolean (*add_notebook) (BijiItem *item, BijiItem *coll, gchar *title);
+ gboolean (*remove_notebook) (BijiItem *item, BijiItem *coll);
};
/* Do not create a generic items, it's rather an iface
@@ -95,7 +95,7 @@ const gchar * biji_item_get_title (BijiItem *item);
const gchar * biji_item_get_uuid (BijiItem *item);
-gpointer biji_item_get_manager (BijiItem *item);
+gpointer biji_item_get_manager (BijiItem *item);
gboolean biji_item_has_color (BijiItem *item);
@@ -128,7 +128,8 @@ gboolean biji_item_delete (BijiItem *item);
gboolean biji_item_is_collectable (BijiItem *item);
-gboolean biji_item_has_notebook (BijiItem *item, gchar *collection);
+gboolean biji_item_has_notebook (BijiItem *item,
+ gchar *collection);
/* Add Collection:
diff --git a/src/libbiji/biji-notebook.c b/src/libbiji/biji-notebook.c
index 4633cc9..078f0f5 100644
--- a/src/libbiji/biji-notebook.c
+++ b/src/libbiji/biji-notebook.c
@@ -277,6 +277,15 @@ biji_notebook_trash (BijiItem *item)
static gboolean
+biji_notebook_restore (BijiItem *item,
+ gchar **old_uuid)
+{
+ g_warning ("Notebooks restore is not yet implemented");
+ return FALSE;
+}
+
+
+static gboolean
biji_notebook_has_notebook (BijiItem *item, gchar *notebook)
{
//todo
@@ -493,6 +502,7 @@ biji_notebook_class_init (BijiNotebookClass *klass)
item_class->get_place = biji_notebook_get_place;
item_class->has_color = say_no;
item_class->trash = biji_notebook_trash;
+ item_class->restore = biji_notebook_restore;
item_class->is_collectable = say_no;
item_class->has_notebook = biji_notebook_has_notebook;
item_class->add_notebook = biji_notebook_add_notebook;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]