diff src/notify.c @ 11531:bf763a1b2454

[gaim-migrate @ 13780] (13:57:11) rlaager: LSchiere2: Should we just change gaim_notify_userinfo to take a screenname and eliminate all the duplication of "Buddy Information" and "Info for %s"? (13:57:18) LSchiere2: sounds good This breaks perl, I could not figure out how to fix that. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 12 Sep 2005 18:46:15 +0000
parents 9480e0d0f563
children c9b815aeddc1
line wrap: on
line diff
--- a/src/notify.c	Mon Sep 12 18:43:03 2005 +0000
+++ b/src/notify.c	Mon Sep 12 18:46:15 2005 +0000
@@ -22,6 +22,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+#include "internal.h"
 #include "notify.h"
 
 static GaimNotifyUiOps *notify_ui_ops = NULL;
@@ -328,11 +329,14 @@
 }
 
 void *
-gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title,
+gaim_notify_userinfo(GaimConnection *gc, const char *who,
 						   const char *primary, const char *secondary,
 						   const char *text, GCallback cb, void *user_data)
 {
 	GaimNotifyUiOps *ops;
+	char title[256];
+
+	g_snprintf(title, sizeof(title), _("Info for %s"), who);
 
 	g_return_val_if_fail(primary != NULL, NULL);