[bijiben] memo-note: Add missing delete method



commit dc548737ff1192c3f71ffbf308d24db7be87b68d
Author: Isaque Galdino <igaldino gmail com>
Date:   Wed Sep 6 23:34:22 2017 -0300

    memo-note: Add missing delete method
    
    Application was crashing when trying to remove Memo notes - those
    provided by Evolution.
    
    It was noticed that it was only implemented the archived method for Memo
    notes.
    
    This patches adds the missing delete method.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787393

 src/libbiji/provider/biji-memo-note.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/provider/biji-memo-note.c b/src/libbiji/provider/biji-memo-note.c
index 640f7cd..7dcbb9e 100644
--- a/src/libbiji/provider/biji-memo-note.c
+++ b/src/libbiji/provider/biji-memo-note.c
@@ -316,7 +316,14 @@ memo_set_html (BijiNoteObj *note,
 }
 
 
+static gboolean
+memo_item_delete (BijiItem *item)
+{
+  g_return_val_if_fail (BIJI_IS_NOTE_OBJ (item), FALSE);
 
+  g_warning ("Memo note delete is not yet implemented");
+  return FALSE;
+}
 
 static void
 on_memo_deleted (GObject *ecal,
@@ -427,6 +434,7 @@ biji_memo_note_class_init (BijiMemoNoteClass *klass)
   item_class->is_collectable = item_no;
   item_class->has_color = item_no;
   item_class->get_place = memo_get_place;
+  item_class->delete = memo_item_delete;
 
   note_class->get_basename = memo_get_basename;
   note_class->get_html = memo_get_html;


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