[bijiben] controller: do not insert templates
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] controller: do not insert templates
- Date: Sat, 19 Oct 2013 13:39:21 +0000 (UTC)
commit 7c9a933541017ea01ae095ef0d4128515aff7a3b
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sat Oct 19 14:57:45 2013 +0200
controller: do not insert templates
See 709197
src/bjb-controller.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index 63b83be..5718be1 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -253,6 +253,12 @@ bjb_controller_add_item (BjbController *self,
g_return_if_fail (BIJI_IS_ITEM (item));
store = GTK_LIST_STORE (self->priv->model);
+ /* Only append notes which are not templates. Currently useless */
+ if (BIJI_IS_NOTE_OBJ (item)
+ && biji_note_obj_is_template (BIJI_NOTE_OBJ (item)))
+ return;
+
+
if (sibling)
gtk_list_store_insert_before (store, &iter, sibling);
@@ -262,10 +268,6 @@ bjb_controller_add_item (BjbController *self,
else
gtk_list_store_append (store, &iter);
- /* Only append notes which are not templates. Currently useless */
- if (BIJI_IS_NOTE_OBJ (item)
- && biji_note_obj_is_template (BIJI_NOTE_OBJ (item)))
- return;
/* First , if there is a gd main view , and if gd main view
* is a list, then load the smaller emblem */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]