Mercurial > pidgin
diff src/dialogs.c @ 1250:b5783215b245
[gaim-migrate @ 1260]
decklin's clean up of the account editor, much needed.
indent -kr -i8 -l105 -ncs -cp7 -npcs -T GtkWidget -T gpointer -T AppletCallbackFunc -T GtkFunction -T gaim_plugin_remove -T name -T FILE -T gchar -T user_opts -T GdkEvent -T GtkObject ...
did about.c, aim.c, away.c, browser.c, buddy_chat.c, gaimrc.c, html.c, idle.c, multi.c. Need to do buddy.c, conversation.c, dialogs.c, oscar.c, perl.c, plugins.c, prefs.c, proxy.c, prpl.c, rvous.c, server.c, sound.c, toc.c, util.c. not doing gtkhtml.c because it's a piece of crap anyway, or *ticker.c because they're syd's.
got rid of debug_buff, just debug_printf now.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 13 Dec 2000 20:18:35 +0000 |
| parents | 78c4f497db2b |
| children | 9cff8ff01d37 |
line wrap: on
line diff
--- a/src/dialogs.c Wed Dec 13 06:39:24 2000 +0000 +++ b/src/dialogs.c Wed Dec 13 20:18:35 2000 +0000 @@ -2474,8 +2474,7 @@ c->hasfg = 1; g_snprintf(open_tag, 23, "<FONT COLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, text_color.blue); surround(c->entry, open_tag, "</FONT>"); - sprintf(debug_buff,"#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); - debug_print(debug_buff); + debug_printf("#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); g_free(open_tag); cancel_fgcolor(NULL, c); } @@ -2502,8 +2501,7 @@ c->hasbg = 1; g_snprintf(open_tag, 25, "<BODY BGCOLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, text_color.blue); surround(c->entry, open_tag, "</BODY>"); - sprintf(debug_buff,"#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); - debug_print(debug_buff); + debug_printf("#%02X%02X%02X\n", text_color.red, text_color.green, text_color.blue); g_free(open_tag); cancel_bgcolor(NULL, c); } @@ -2657,8 +2655,7 @@ } font[k] = '\0'; - sprintf(debug_buff, "Setting font face %s\n", font); - debug_print(debug_buff); + debug_printf("Setting font face %s\n", font); set_font_face(font, c); } @@ -2772,12 +2769,10 @@ if ( file != (char *) NULL ) { sprintf(path, "%s/%s.blist", file, g_screenname); if ( !stat(path, &sbuf) ) { - sprintf(debug_buff, "%s exists.\n", path); - debug_print(debug_buff); + debug_printf("%s exists.\n", path); ret = TRUE; } else { - sprintf(debug_buff, "%s does not exist.\n", path); - debug_print(debug_buff); + debug_printf("%s does not exist.\n", path); } g_free(file); } @@ -2837,15 +2832,13 @@ g_screenname[i] = '\0'; sprintf(path, "%s/%s.blist", file, g_screenname); if ((f = fopen(path,"w"))) { - sprintf(debug_buff, "writing %s\n", path); - debug_print(debug_buff); + debug_printf("writing %s\n", path); toc_build_config(g, buf, 8192 - 1, TRUE); fprintf(f, "%s\n", buf); fclose(f); chmod(buf, S_IRUSR | S_IWUSR); } else { - sprintf(debug_buff, "unable to write %s\n", path); - debug_print(debug_buff); + debug_printf("unable to write %s\n", path); } c = c->next; @@ -2936,8 +2929,7 @@ destroy_dialog(NULL, importdialog); importdialog = NULL; } - sprintf(debug_buff, "Unable to open %s.\n", path); - debug_print(debug_buff); + debug_printf("Unable to open %s.\n", path); g_free(buf); g_free(first); return; @@ -2947,22 +2939,20 @@ /* AIM 4 buddy list */ if (!strcasecmp(first, "Config {\n")) { - debug_print("aim 4\n"); + debug_printf("aim 4\n"); rewind(f); translate_blt (f, buf); - sprintf(debug_buff, "%s\n", buf); - debug_print(debug_buff); + debug_printf("%s\n", buf); buf2 = buf; buf = g_malloc(8193); g_snprintf(buf, 8192, "toc_set_config {%s}\n", buf2); g_free(buf2); /* AIM 3 buddy list */ } else if (strstr(first, "group") != NULL) { - debug_print("aim 3\n"); + debug_printf("aim 3\n"); rewind(f); translate_lst (f, buf); - sprintf(debug_buff, "%s\n", buf); - debug_print(debug_buff); + debug_printf("%s\n", buf); buf2 = buf; buf = g_malloc(8193); g_snprintf(buf, 8192, "toc_set_config {%s}\n", buf2);
