[anjuta/gsettings-migration: 3/65] message-view: Fixed preferences
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 3/65] message-view: Fixed preferences
- Date: Sun, 17 Oct 2010 09:33:01 +0000 (UTC)
commit 754f069bcbacb772ba126f15a6cc85a16262bb53
Author: Johannes Schmid <jhs gnome org>
Date: Tue Sep 28 20:43:30 2010 +0200
message-view: Fixed preferences
plugins/message-view/anjuta-msgman.c | 2 +-
plugins/message-view/anjuta-msgman.h | 2 +-
plugins/message-view/message-view.c | 20 +++++++++-----------
plugins/message-view/plugin.c | 4 ++--
4 files changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/plugins/message-view/anjuta-msgman.c b/plugins/message-view/anjuta-msgman.c
index 254c4a3..a8727c4 100644
--- a/plugins/message-view/anjuta-msgman.c
+++ b/plugins/message-view/anjuta-msgman.c
@@ -286,7 +286,7 @@ set_message_tab(AnjutaPreferences *pref, GtkNotebook *msgman)
void
on_notify_message_pref (AnjutaPreferences* prefs, const gchar* key,
- const gchar* value, gpointer user_data)
+ gpointer user_data)
{
set_message_tab(prefs, GTK_NOTEBOOK (user_data));
}
diff --git a/plugins/message-view/anjuta-msgman.h b/plugins/message-view/anjuta-msgman.h
index 4f7fff2..587e81d 100644
--- a/plugins/message-view/anjuta-msgman.h
+++ b/plugins/message-view/anjuta-msgman.h
@@ -83,6 +83,6 @@ GtkWidget* anjuta_msgman_get_tabber (AnjutaMsgman* msgman);
void
on_notify_message_pref (AnjutaPreferences* prefs, const gchar* key,
- const gchar* value, gpointer user_data);
+ gpointer user_data);
#endif /* _ANJUTA_MSGMAN_H */
diff --git a/plugins/message-view/message-view.c b/plugins/message-view/message-view.c
index dc56454..b46640d 100644
--- a/plugins/message-view/message-view.c
+++ b/plugins/message-view/message-view.c
@@ -928,7 +928,7 @@ pref_change_color (MessageView *mview, IAnjutaMessageViewType type,
static void
on_notify_color (AnjutaPreferences* prefs, const gchar* key,
- const gchar* value, gpointer user_data)
+ gpointer user_data)
{
pref_change_color (MESSAGE_VIEW (user_data),
IANJUTA_MESSAGE_VIEW_TYPE_WARNING,
@@ -939,18 +939,16 @@ static void
prefs_init (MessageView *mview)
{
gint id;
- id = anjuta_preferences_notify_add_string (anjuta_preferences_default (),
- "messages.color.error",
- on_notify_color,
- mview,
- NULL);
+ id = anjuta_preferences_notify_add (anjuta_preferences_default (),
+ "messages.color.error",
+ on_notify_color,
+ mview);
mview->privat->notify_ids = g_list_append (mview->privat->notify_ids,
GINT_TO_POINTER (id));
- id = anjuta_preferences_notify_add_string (anjuta_preferences_default (),
- "messages.color.warning",
- on_notify_color,
- mview,
- NULL);
+ id = anjuta_preferences_notify_add (anjuta_preferences_default (),
+ "messages.color.warning",
+ on_notify_color,
+ mview);
mview->privat->notify_ids = g_list_append (mview->privat->notify_ids,
GINT_TO_POINTER (id));
}
diff --git a/plugins/message-view/plugin.c b/plugins/message-view/plugin.c
index 869400e..8042313 100644
--- a/plugins/message-view/plugin.c
+++ b/plugins/message-view/plugin.c
@@ -587,8 +587,8 @@ ipreferences_merge(IAnjutaPreferences* ipref, AnjutaPreferences* prefs, GError**
anjuta_preferences_add_from_builder (prefs, bxml,
"Messages", _("Messages"),
ANJUTA_PIXMAP_MESSAGES);
- notify_id = anjuta_preferences_notify_add_string (prefs, MESSAGES_TABS_POS,
- on_notify_message_pref, plugin->msgman, NULL);
+ notify_id = anjuta_preferences_notify_add (prefs, MESSAGES_TABS_POS,
+ on_notify_message_pref, plugin->msgman);
g_object_unref (bxml);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]