[bijiben] icon-amended: use a generic flag for items icon changed
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] icon-amended: use a generic flag for items icon changed
- Date: Sun, 5 May 2013 21:55:56 +0000 (UTC)
commit 854321b460bdb67576ed6739abec0fbf2600db9c
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun May 5 22:53:40 2013 +0200
icon-amended: use a generic flag for items icon changed
src/bjb-controller.c | 2 +-
src/libbiji/biji-note-book.c | 2 +-
src/libbiji/biji-note-book.h | 10 +++++-----
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/bjb-controller.c b/src/bjb-controller.c
index e24b9da..c8fd93f 100644
--- a/src/bjb-controller.c
+++ b/src/bjb-controller.c
@@ -537,7 +537,7 @@ on_book_changed (BijiNoteBook *book,
break;
/* If color changed we just amend the icon */
- case BIJI_BOOK_NOTE_COLORED:
+ case BIJI_BOOK_ITEM_ICON_CHANGED:
if (bjb_main_view_get_view_type (
bjb_window_base_get_main_view (self->priv->window)) == GD_MAIN_VIEW_ICON
&& bjb_controller_get_iter (self, item, &p_iter))
diff --git a/src/libbiji/biji-note-book.c b/src/libbiji/biji-note-book.c
index ccda58c..917470f 100644
--- a/src/libbiji/biji-note-book.c
+++ b/src/libbiji/biji-note-book.c
@@ -196,7 +196,7 @@ book_on_note_changed_cb (BijiNoteObj *note, BijiNoteBook *book)
static void
book_on_note_color_changed_cb (BijiNoteObj *note, BijiNoteBook *book)
{
- biji_note_book_notify_changed (book, BIJI_BOOK_NOTE_COLORED, BIJI_ITEM (note));
+ biji_note_book_notify_changed (book, BIJI_BOOK_ITEM_ICON_CHANGED, BIJI_ITEM (note));
}
static void
diff --git a/src/libbiji/biji-note-book.h b/src/libbiji/biji-note-book.h
index 8d29c7c..0d29ace 100644
--- a/src/libbiji/biji-note-book.h
+++ b/src/libbiji/biji-note-book.h
@@ -11,11 +11,11 @@ G_BEGIN_DECLS
typedef enum
{
BIJI_BOOK_CHANGE_FLAG,
- BIJI_BOOK_MASS_CHANGE, // Startup, mass import.. rather rebuild the whole.
- BIJI_BOOK_ITEM_ADDED, // Single item added
- BIJI_BOOK_ITEM_TRASHED, // Single item trashed
- BIJI_BOOK_NOTE_AMENDED, // Single note amended (title, content)
- BIJI_BOOK_NOTE_COLORED, // Single note color
+ BIJI_BOOK_MASS_CHANGE, // Startup, mass import.. rather rebuild the whole.
+ BIJI_BOOK_ITEM_ADDED, // Single item added
+ BIJI_BOOK_ITEM_TRASHED, // Single item trashed
+ BIJI_BOOK_ITEM_ICON_CHANGED, // Single item icon
+ BIJI_BOOK_NOTE_AMENDED, // Single note amended (title, content)
} BijiNoteBookChangeFlag;
#define BIJI_TYPE_NOTE_BOOK (biji_note_book_get_type ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]