changeset 30811:c5790044f32f

Oh, there's a title parameter in purple_notify_formatted()! Shiny.
author ivan.komarov@soc.pidgin.im
date Sun, 04 Jul 2010 01:13:11 +0000
parents 50d472b3d752
children 242bcf6b1258 2d4dd38c5db5
files libpurple/protocols/oscar/visibility.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/visibility.c	Thu Jul 01 18:56:17 2010 +0000
+++ b/libpurple/protocols/oscar/visibility.c	Sun Jul 04 01:13:11 2010 +0000
@@ -71,7 +71,7 @@
 }
 
 static void
-show_private_list(PurplePluginAction *action, guint16 list_type, const gchar *list_description, const gchar *menu_action_name)
+show_private_list(PurplePluginAction *action, guint16 list_type, const gchar *title, const gchar *list_description, const gchar *menu_action_name)
 {
 	PurpleConnection *gc = (PurpleConnection *) action->context;
 	OscarData *od = purple_connection_get_protocol_data(gc);
@@ -101,7 +101,7 @@
 	secondary = g_strdup_printf(_("You can add a buddy to this list "
 					"by right-clicking on them and "
 					"selecting \"%s\""), menu_action_name);
-	purple_notify_formatted(gc, NULL, list_description, secondary, text, NULL, NULL);
+	purple_notify_formatted(gc, title, list_description, secondary, text, NULL, NULL);
 	g_free(secondary);
 	g_free(text);
 }
@@ -109,7 +109,8 @@
 void
 oscar_show_visible_list(PurplePluginAction *action)
 {
-	show_private_list(action, AIM_SSI_TYPE_PERMIT, _("These buddies will see "
+	show_private_list(action, AIM_SSI_TYPE_PERMIT, _("Visible List"),
+							_("These buddies will see "
 							"your status when you switch "
 							"to \"Invisible\""),
 							_(APPEAR_ONLINE));
@@ -118,5 +119,7 @@
 void
 oscar_show_invisible_list(PurplePluginAction *action)
 {
-	show_private_list(action, AIM_SSI_TYPE_DENY, _("These buddies will always see you as offline"), _(APPEAR_OFFLINE));
+	show_private_list(action, AIM_SSI_TYPE_DENY, _("Invisible List"),
+							_("These buddies will always see you as offline"),
+							_(APPEAR_OFFLINE));
 }
\ No newline at end of file