soc.2010.icq-tlc: 7f7c58ec: Oh, there's a title parameter in purple_...

ivan.komarov at soc.pidgin.im ivan.komarov at soc.pidgin.im
Thu Jul 8 13:56:17 EDT 2010


----------------------------------------------------------------------
Revision: 7f7c58ec53c2d4419f78f66bf32c3c444987b621
Parent:   0f5f92050db8d88246b01b4efa6f098cc264f144
Author:   ivan.komarov at soc.pidgin.im
Date:     07/03/10 21:13:11
Branch:   im.pidgin.soc.2010.icq-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/7f7c58ec53c2d4419f78f66bf32c3c444987b621

Changelog: 

Oh, there's a title parameter in purple_notify_formatted()! Shiny.

Changes against parent 0f5f92050db8d88246b01b4efa6f098cc264f144

  patched  libpurple/protocols/oscar/visibility.c

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/visibility.c	79b652192c9bfb92c899063ac18d3b91b40e1d7f
+++ libpurple/protocols/oscar/visibility.c	2fa0497ed474a598202098dd2bce22ec32b02942
@@ -71,7 +71,7 @@ static void
 }
 
 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 @@ show_private_list(PurplePluginAction *ac
 	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 @@ oscar_show_visible_list(PurplePluginActi
 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 @@ oscar_show_invisible_list(PurplePluginAc
 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


More information about the Commits mailing list