comparison 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
comparison
equal deleted inserted replaced
11530:2a13cfe607b5 11531:bf763a1b2454
20 * 20 *
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software 22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */ 24 */
25 #include "internal.h"
25 #include "notify.h" 26 #include "notify.h"
26 27
27 static GaimNotifyUiOps *notify_ui_ops = NULL; 28 static GaimNotifyUiOps *notify_ui_ops = NULL;
28 static GList *handles = NULL; 29 static GList *handles = NULL;
29 30
326 327
327 return g_list_nth_data(results->rows, row_id); 328 return g_list_nth_data(results->rows, row_id);
328 } 329 }
329 330
330 void * 331 void *
331 gaim_notify_userinfo(GaimConnection *gc, const char *who, const char *title, 332 gaim_notify_userinfo(GaimConnection *gc, const char *who,
332 const char *primary, const char *secondary, 333 const char *primary, const char *secondary,
333 const char *text, GCallback cb, void *user_data) 334 const char *text, GCallback cb, void *user_data)
334 { 335 {
335 GaimNotifyUiOps *ops; 336 GaimNotifyUiOps *ops;
337 char title[256];
338
339 g_snprintf(title, sizeof(title), _("Info for %s"), who);
336 340
337 g_return_val_if_fail(primary != NULL, NULL); 341 g_return_val_if_fail(primary != NULL, NULL);
338 342
339 ops = gaim_notify_get_ui_ops(); 343 ops = gaim_notify_get_ui_ops();
340 344