Mercurial > pidgin
diff libpurple/protocols/gg/gg-utils.c @ 15822:32c366eeeb99
sed -ie 's/gaim/purple/g'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 19 Mar 2007 07:01:17 +0000 |
parents | 5fe8042783c1 |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/protocols/gg/gg-utils.c Mon Mar 19 06:11:46 2007 +0000 +++ b/libpurple/protocols/gg/gg-utils.c Mon Mar 19 07:01:17 2007 +0000 @@ -1,7 +1,7 @@ /** * @file gg-utils.c * - * gaim + * purple * * Copyright (C) 2005 Bartosz Oler <bartosz@bzimage.us> * @@ -74,7 +74,7 @@ msg = g_convert_with_fallback(locstr, strlen(locstr), encdst, encsrc, "?", NULL, NULL, &err); if (err != NULL) { - gaim_debug_error("gg", "Error converting from %s to %s: %s\n", + purple_debug_error("gg", "Error converting from %s to %s: %s\n", encsrc, encdst, err->message); g_error_free(err); } @@ -87,25 +87,25 @@ } /* }}} */ -/* ggp_get_uin(GaimAccount *account) {{{ */ -uin_t ggp_get_uin(GaimAccount *account) +/* ggp_get_uin(PurpleAccount *account) {{{ */ +uin_t ggp_get_uin(PurpleAccount *account) { - return ggp_str_to_uin(gaim_account_get_username(account)); + return ggp_str_to_uin(purple_account_get_username(account)); } /* }}} */ -/* char *ggp_buddy_get_name(GaimConnection *gc, const uin_t uin) {{{ */ -char *ggp_buddy_get_name(GaimConnection *gc, const uin_t uin) +/* char *ggp_buddy_get_name(PurpleConnection *gc, const uin_t uin) {{{ */ +char *ggp_buddy_get_name(PurpleConnection *gc, const uin_t uin) { - GaimBuddy *buddy; + PurpleBuddy *buddy; gchar *str_uin; str_uin = g_strdup_printf("%lu", (unsigned long int)uin); - buddy = gaim_find_buddy(gaim_connection_get_account(gc), str_uin); + buddy = purple_find_buddy(purple_connection_get_account(gc), str_uin); if (buddy != NULL) { g_free(str_uin); - return g_strdup(gaim_buddy_get_alias(buddy)); + return g_strdup(purple_buddy_get_alias(buddy)); } else { return str_uin; }