# HG changeset patch # User ivan.komarov@soc.pidgin.im # Date 1278205991 0 # Node ID c5790044f32f841edad13aa200bee31508309176 # Parent 50d472b3d7527da031e2a14bd8684d7913353291 Oh, there's a title parameter in purple_notify_formatted()! Shiny. diff -r 50d472b3d752 -r c5790044f32f libpurple/protocols/oscar/visibility.c --- 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