comparison src/gtkconv.c @ 5211:0241d6b6702d

[gaim-migrate @ 5581] Wrote a new debugging API, and of course core/ui split it. Debug statements can now have debug levels and categories, for future filtering of stuff, and color highlighting. It's nifty, m'kay? committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 06:46:08 +0000
parents fefad67de2c7
children 1a53330dfd34
comparison
equal deleted inserted replaced
5210:39bb2a35f8d9 5211:0241d6b6702d
154 154
155 if (!name) 155 if (!name)
156 return; 156 return;
157 157
158 if (stat(name, &st) != 0) { 158 if (stat(name, &st) != 0) {
159 debug_printf("Could not stat %s\n", name); 159 gaim_debug(GAIM_DEBUG_ERROR, "gtkconv",
160 "Could not stat image %s\n", name);
160 return; 161 return;
161 } 162 }
162 163
163 filename = name; 164 filename = name;
164 while (strchr(filename, '/')) 165 while (strchr(filename, '/'))
1519 return FALSE; 1520 return FALSE;
1520 1521
1521 gtkwin = GAIM_GTK_WINDOW(win); 1522 gtkwin = GAIM_GTK_WINDOW(win);
1522 1523
1523 if (gtkwin->in_drag) { 1524 if (gtkwin->in_drag) {
1524 debug_printf("Already in the middle of a window " 1525 gaim_debug(GAIM_DEBUG_WARNING, "gtkconv",
1525 "drag at tab_press_cb\n"); 1526 "Already in the middle of a window drag at tab_press_cb\n");
1526 return TRUE; 1527 return TRUE;
1527 } 1528 }
1528 1529
1529 /* 1530 /*
1530 * Make sure a tab was actually clicked. The arrow buttons 1531 * Make sure a tab was actually clicked. The arrow buttons
4533 GList *cl; 4534 GList *cl;
4534 struct gaim_conversation *conv; 4535 struct gaim_conversation *conv;
4535 struct gaim_gtk_conversation *gtkconv; 4536 struct gaim_gtk_conversation *gtkconv;
4536 GtkSpell *spell; 4537 GtkSpell *spell;
4537 4538
4538 debug_printf("gaim_gtkconv_toggle_spellchk\n");
4539 for (cl = gaim_get_conversations(); cl != NULL; cl = cl->next) { 4539 for (cl = gaim_get_conversations(); cl != NULL; cl = cl->next) {
4540 4540
4541 conv = (struct gaim_conversation *)cl->data; 4541 conv = (struct gaim_conversation *)cl->data;
4542 4542
4543 if (!GAIM_IS_GTK_CONVERSATION(conv)) 4543 if (!GAIM_IS_GTK_CONVERSATION(conv))
4612 GdkPixmap *pm; 4612 GdkPixmap *pm;
4613 GdkBitmap *bm; 4613 GdkBitmap *bm;
4614 gint delay; 4614 gint delay;
4615 4615
4616 if (!g_list_find(gaim_get_ims(), conv)) { 4616 if (!g_list_find(gaim_get_ims(), conv)) {
4617 debug_printf("I think this is a bug.\n"); 4617 gaim_debug(GAIM_DEBUG_WARNING, "gtkconv",
4618 "Conversation not found in redraw_icon. I think this "
4619 "is a bug.\n");
4618 return FALSE; 4620 return FALSE;
4619 } 4621 }
4620 4622
4621 gtkconv = GAIM_GTK_CONVERSATION(conv); 4623 gtkconv = GAIM_GTK_CONVERSATION(conv);
4622 4624
4808 /* make sure we remove the file as soon as possible */ 4810 /* make sure we remove the file as soon as possible */
4809 unlink(filename); 4811 unlink(filename);
4810 } 4812 }
4811 4813
4812 if (err) { 4814 if (err) {
4813 debug_printf("Buddy icon error: %s\n", err->message); 4815 gaim_debug(GAIM_DEBUG_ERROR, "gtkconv",
4816 "Buddy icon error: %s\n", err->message);
4814 g_error_free(err); 4817 g_error_free(err);
4815 } 4818 }
4816 4819
4817 4820
4818 if (!gtkconv->u.im->anim) 4821 if (!gtkconv->u.im->anim)