[bijiben] NoteObj : emit renamed signal even for first name
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] NoteObj : emit renamed signal even for first name
- Date: Sun, 2 Dec 2012 22:57:53 +0000 (UTC)
commit 6f5c3841e738977cefdfd24ba4774ec3473e4d0c
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun Dec 2 23:49:22 2012 +0100
NoteObj : emit renamed signal even for first name
src/libbiji/biji-note-obj.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libbiji/biji-note-obj.c b/src/libbiji/biji-note-obj.c
index d819c8a..0fc26ed 100644
--- a/src/libbiji/biji-note-obj.c
+++ b/src/libbiji/biji-note-obj.c
@@ -411,13 +411,12 @@ biji_note_obj_set_title(BijiNoteObj *note,gchar *title)
if (g_strcmp0 (title, biji_note_id_get_title (note->priv->id))==0)
return FALSE;
+ /* Emit signal even if initial title, just to let know */
biji_note_id_set_title (note->priv->id,title);
+ g_signal_emit (G_OBJECT (note), biji_obj_signals[NOTE_RENAMED],0);
if (!initial)
- {
biji_note_id_set_last_metadata_change_date_now (note->priv->id);
- g_signal_emit (G_OBJECT (note), biji_obj_signals[NOTE_RENAMED],0);
- }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]