Mercurial > pidgin.yaz
comparison gtk/gtkaccount.c @ 14608:98776da658d1
[gaim-migrate @ 17336]
Get rid of a call to printf
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 22 Sep 2006 06:21:00 +0000 |
parents | c7a1dc62b312 |
children | 36ededd6e064 |
comparison
equal
deleted
inserted
replaced
14607:f23506e8f812 | 14608:98776da658d1 |
---|---|
605 } | 605 } |
606 | 606 |
607 if (dialog->account != NULL) { | 607 if (dialog->account != NULL) { |
608 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->new_mail_check), | 608 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->new_mail_check), |
609 gaim_account_get_check_mail(dialog->account)); | 609 gaim_account_get_check_mail(dialog->account)); |
610 | 610 |
611 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->icon_check), | 611 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->icon_check), |
612 !gaim_account_get_ui_bool(dialog->account, GAIM_GTK_UI, "use-global-buddyicon", | 612 !gaim_account_get_ui_bool(dialog->account, GAIM_GTK_UI, "use-global-buddyicon", |
613 TRUE)); | 613 TRUE)); |
614 | 614 |
615 dialog->icon_path = g_strdup(gaim_account_get_ui_string(dialog->account, GAIM_GTK_UI, "non-global-buddyicon", NULL)); | 615 dialog->icon_path = g_strdup(gaim_account_get_ui_string(dialog->account, GAIM_GTK_UI, "non-global-buddyicon", NULL)); |
1061 if (dialog->icon_path != NULL && (icon == NULL || strcmp(dialog->icon_path, icon))) | 1061 if (dialog->icon_path != NULL && (icon == NULL || strcmp(dialog->icon_path, icon))) |
1062 { | 1062 { |
1063 /* The user set an icon, which would've been cached by convert_buddy_icon, | 1063 /* The user set an icon, which would've been cached by convert_buddy_icon, |
1064 * but didn't save the changes. Delete the cache file. */ | 1064 * but didn't save the changes. Delete the cache file. */ |
1065 char *filename = g_build_filename(gaim_buddy_icons_get_cache_dir(), dialog->icon_path, NULL); | 1065 char *filename = g_build_filename(gaim_buddy_icons_get_cache_dir(), dialog->icon_path, NULL); |
1066 printf("Deleting\n"); | |
1067 g_unlink(filename); | 1066 g_unlink(filename); |
1068 g_free(filename); | 1067 g_free(filename); |
1069 } | 1068 } |
1070 | 1069 |
1071 g_free(dialog->icon_path); | 1070 g_free(dialog->icon_path); |