[bijiben] note-view : on color changed : refer to emiting note
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] note-view : on color changed : refer to emiting note
- Date: Tue, 7 Jul 2015 22:55:52 +0000 (UTC)
commit 32c92435ffe0e7caf581459af6448894cf6fa8f0
Author: Pierre-Yves Luyten <py luyten fr>
Date: Wed Jul 8 00:50:15 2015 +0200
note-view : on color changed : refer to emiting note
Instead of using priv->note, which seems in some cases to be broken.
See RH BZ #1204815
src/bjb-note-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-note-view.c b/src/bjb-note-view.c
index 918a508..bcacd0c 100644
--- a/src/bjb-note-view.c
+++ b/src/bjb-note-view.c
@@ -176,7 +176,7 @@ on_note_color_changed_cb (BijiNoteObj *note, BjbNoteView *self)
g_return_if_fail (BIJI_IS_NOTE_OBJ (note));
- biji_note_obj_get_rgba (priv->note, &color);
+ biji_note_obj_get_rgba (note, &color);
if (color.red < 0.5)
font_color = "white";
else
@@ -189,7 +189,7 @@ on_note_color_changed_cb (BijiNoteObj *note, BjbNoteView *self)
*/
text = g_strdup_printf (_("<b>Last updated</b> %s"),
biji_note_obj_get_last_change_date_string
- (priv->note));
+ (note));
span = g_strdup_printf ("<span color='%s'>%s</span>", font_color, text);
gtk_label_set_markup (GTK_LABEL (priv->last_update), span);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]