[bijiben] noteView: call bjb_settings_get rather g_object_get
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] noteView: call bjb_settings_get rather g_object_get
- Date: Sun, 13 Oct 2013 20:43:54 +0000 (UTC)
commit 9135a649d6428b3d3d5940ac0199f95ed9a77189
Author: Pierre-Yves Luyten <py luyten fr>
Date: Fri Oct 11 21:05:38 2013 +0200
noteView: call bjb_settings_get rather g_object_get
src/bjb-note-view.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/bjb-note-view.c b/src/bjb-note-view.c
index c1fd7a8..e70f24e 100644
--- a/src/bjb-note-view.c
+++ b/src/bjb-note-view.c
@@ -336,11 +336,8 @@ bjb_note_view_constructed (GObject *obj)
if (!biji_note_obj_get_rgba(priv->note, &color))
{
- gchar *default_color;
- g_object_get (G_OBJECT(settings),"color", &default_color, NULL);
- gdk_rgba_parse (&color, default_color);
- g_free (default_color);
- biji_note_obj_set_rgba (priv->note, &color);
+ if (gdk_rgba_parse (&color, bjb_settings_get_default_color (settings)))
+ biji_note_obj_set_rgba (priv->note, &color);
}
/* Edition Toolbar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]