[anjuta/gsettings-migration] message-view: Fixed GSettings problem
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration] message-view: Fixed GSettings problem
- Date: Tue, 19 Oct 2010 13:51:43 +0000 (UTC)
commit 16508522650b592860a4c1ba7afc8f5c14e88a1c
Author: Johannes Schmid <jhs gnome org>
Date: Tue Oct 19 15:05:11 2010 +0200
message-view: Fixed GSettings problem
plugins/message-view/message-view.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/message-view/message-view.c b/plugins/message-view/message-view.c
index 1d4fad6..be596db 100644
--- a/plugins/message-view/message-view.c
+++ b/plugins/message-view/message-view.c
@@ -24,8 +24,8 @@
#define MESSAGE_TYPE message_get_type()
#define PREFERENCES_SCHEMA "org.gnome.anjuta.message-manager"
-#define COLOR_ERROR "messages.color.error"
-#define COLOR_WARNING "messages.color.warning"
+#define COLOR_ERROR "msgman-color-error"
+#define COLOR_WARNING "msgman-color-warning"
struct _MessageViewPrivate
{
@@ -952,7 +952,9 @@ prefs_init (MessageView *mview)
static void
prefs_finalize (MessageView *mview)
{
- g_object_unref (mview->privat->settings);
+ if (mview->privat->settings)
+ g_object_unref (mview->privat->settings);
+ mview->privat->settings = NULL;
}
/* IAnjutaMessageView interface implementation */
@@ -1267,4 +1269,4 @@ gint message_view_get_count (MessageView* view, MessageViewFlags flags)
ANJUTA_TYPE_BEGIN(MessageView, message_view, GTK_TYPE_HBOX);
ANJUTA_TYPE_ADD_INTERFACE(imessage_view, IANJUTA_TYPE_MESSAGE_VIEW);
-ANJUTA_TYPE_END;
+ANJUTA_TYPE_END;
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]