pidgin: 504516e5: Seriously why would you ever do this? U...
markdoliner at pidgin.im
markdoliner at pidgin.im
Fri Nov 14 15:15:26 EST 2008
-----------------------------------------------------------------
Revision: 504516e5634efdaf3d6dc0eaabd0506a67e68dd4
Ancestor: e2bbe819a07e75ca524863421955fc9fdc66efab
Author: markdoliner at pidgin.im
Date: 2008-11-14T20:13:22
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/504516e5634efdaf3d6dc0eaabd0506a67e68dd4
Modified files:
libpurple/protocols/qq/buddy_info.c
ChangeLog:
Seriously why would you ever do this? Use g_path_get_basename()
-------------- next part --------------
============================================================
--- libpurple/protocols/qq/buddy_info.c 2564ab18a00291f82530bf6c91232909c062771a
+++ libpurple/protocols/qq/buddy_info.c b66712b71bd66e40da00d3f3d78fc5fddcead966
@@ -486,7 +486,6 @@ void qq_change_icon_cb(PurpleConnection
gchar *basename;
size_t index;
gint face;
- gchar *error;
g_return_if_fail(filepath != NULL);
@@ -505,8 +504,6 @@ void qq_set_custom_icon(PurpleConnection
{
PurpleAccount *account = purple_connection_get_account(gc);
const gchar *icon_path = purple_account_get_buddy_icon_path(account);
- gchar **segments;
- gint index;
g_return_if_fail(icon_path != NULL);
@@ -515,12 +512,6 @@ void qq_set_custom_icon(PurpleConnection
* purple_imgstore_get_filename is always new file
* QQ buddy may set custom icon if level is over 16 */
purple_debug_info("QQ", "Change my icon to %s\n", icon_path);
- segments = g_strsplit_set(icon_path, G_DIR_SEPARATOR_S, 0);
- for (index = 0; segments[index] != NULL; index++) {
- purple_debug_info("QQ", "Split to %s\n", segments[index]);
- }
-
- g_strfreev(segments);
}
gchar *qq_get_icon_name(gint face)
More information about the Commits
mailing list