[bijiben] Controller: fix list-view note-color-changed
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] Controller: fix list-view note-color-changed
- Date: Wed, 24 Apr 2013 22:12:29 +0000 (UTC)
commit 5f712ae52bcb1e91d7bd494bd6d89a9e445e5087
Author: Pierre-Yves Luyten <py luyten fr>
Date: Thu Apr 25 00:11:17 2013 +0200
Controller: fix list-view note-color-changed
When a note color is changed, in case of list view
emblem should be updated
src/bjb-controller.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index 151c7d5..11de083 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -476,6 +476,11 @@ on_book_changed (BijiNoteBook *book,
&& bjb_controller_get_iter_at_note (self, note, &p_iter))
gtk_list_store_set (GTK_LIST_STORE (priv->model), p_iter,
GD_MAIN_COLUMN_ICON, biji_note_obj_get_icon (note), -1);
+ else if (bjb_main_view_get_view_type (
+ bjb_window_base_get_main_view (self->priv->window)) == GD_MAIN_VIEW_LIST
+ && bjb_controller_get_iter_at_note (self, note, &p_iter))
+ gtk_list_store_set (GTK_LIST_STORE (priv->model), p_iter,
+ GD_MAIN_COLUMN_ICON, biji_note_obj_get_emblem (note), -1);
break;
case BIJI_BOOK_NOTE_TRASHED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]