comparison src/dialogs.c @ 5213:1cf4eb75e3ee

[gaim-migrate @ 5583] More debug_printf -> gaim_debug. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 07:15:59 +0000
parents fefad67de2c7
children 1a53330dfd34
comparison
equal deleted inserted replaced
5212:740303e8425b 5213:1cf4eb75e3ee
413 return; 413 return;
414 414
415 g = gaim_find_buddys_group(b); 415 g = gaim_find_buddys_group(b);
416 name = g_strdup(b->name); /* b->name is null after remove_buddy */ 416 name = g_strdup(b->name); /* b->name is null after remove_buddy */
417 417
418 debug_printf(_("Removing '%s' from buddy list.\n"), b->name); 418 gaim_debug(GAIM_DEBUG_INFO, "blist",
419 "Removing '%s' from buddy list.\n", b->name);
419 serv_remove_buddy(b->account->gc, name, g->name); 420 serv_remove_buddy(b->account->gc, name, g->name);
420 gaim_blist_remove_buddy(b); 421 gaim_blist_remove_buddy(b);
421 gaim_blist_save(); 422 gaim_blist_save();
422 423
423 c = gaim_find_conversation(name); 424 c = gaim_find_conversation(name);
1189 1190
1190 static void set_deny_mode(GtkWidget *w, int data) 1191 static void set_deny_mode(GtkWidget *w, int data)
1191 { 1192 {
1192 if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) 1193 if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)))
1193 return; 1194 return;
1194 debug_printf("setting deny mode %d\n", data); 1195
1196 gaim_debug(GAIM_DEBUG_INFO, "privacy", "Setting deny mode %d\n", data);
1195 current_deny_gc->account->permdeny = data; 1197 current_deny_gc->account->permdeny = data;
1196 serv_set_permit_deny(current_deny_gc); 1198 serv_set_permit_deny(current_deny_gc);
1197 gaim_blist_save(); 1199 gaim_blist_save();
1198 } 1200 }
1199 1201
2700 g_snprintf(open_tag, 23, "<FONT COLOR=\"#%02X%02X%02X\">", 2702 g_snprintf(open_tag, 23, "<FONT COLOR=\"#%02X%02X%02X\">",
2701 text_color.red / 256, 2703 text_color.red / 256,
2702 text_color.green / 256, 2704 text_color.green / 256,
2703 text_color.blue / 256); 2705 text_color.blue / 256);
2704 gaim_gtk_surround(gtkconv, open_tag, "</FONT>"); 2706 gaim_gtk_surround(gtkconv, open_tag, "</FONT>");
2705 debug_printf("#%02X%02X%02X\n", 2707
2706 text_color.red / 256, 2708 gaim_debug(GAIM_DEBUG_MISC, "fgcolor dialog", "#%02X%02X%02X\n",
2707 text_color.green / 256, 2709 text_color.red / 256,
2708 text_color.blue / 256); 2710 text_color.green / 256,
2711 text_color.blue / 256);
2709 g_free(open_tag); 2712 g_free(open_tag);
2710 cancel_fgcolor(NULL, c); 2713 cancel_fgcolor(NULL, c);
2711 } 2714 }
2712 2715
2713 void do_bgcolor(GtkWidget *widget, GtkColorSelection *colorsel) 2716 void do_bgcolor(GtkWidget *widget, GtkColorSelection *colorsel)
2730 g_snprintf(open_tag, 25, "<BODY BGCOLOR=\"#%02X%02X%02X\">", 2733 g_snprintf(open_tag, 25, "<BODY BGCOLOR=\"#%02X%02X%02X\">",
2731 text_color.red / 256, 2734 text_color.red / 256,
2732 text_color.green / 256, 2735 text_color.green / 256,
2733 text_color.blue / 256); 2736 text_color.blue / 256);
2734 gaim_gtk_surround(gtkconv, open_tag, "</BODY>"); 2737 gaim_gtk_surround(gtkconv, open_tag, "</BODY>");
2735 debug_printf("#%02X%02X%02X\n", 2738 gaim_debug(GAIM_DEBUG_MISC, "bgcolor dialog", "#%02X%02X%02X\n",
2736 text_color.red / 256, 2739 text_color.red / 256,
2737 text_color.green / 256, 2740 text_color.green / 256,
2738 text_color.blue / 256); 2741 text_color.blue / 256);
2742
2739 g_free(open_tag); 2743 g_free(open_tag);
2740 cancel_bgcolor(NULL, c); 2744 cancel_bgcolor(NULL, c);
2741 } 2745 }
2742 2746
2743 void show_fgcolor_dialog(struct gaim_conversation *c, GtkWidget *color) 2747 void show_fgcolor_dialog(struct gaim_conversation *c, GtkWidget *color)
4124 gtk_box_pack_start_defaults(GTK_BOX(bbox), lbox); 4128 gtk_box_pack_start_defaults(GTK_BOX(bbox), lbox);
4125 4129
4126 if (iconfile) { 4130 if (iconfile) {
4127 char *filename; 4131 char *filename;
4128 filename = g_build_filename (DATADIR, "pixmaps", "gaim", "buttons", iconfile, NULL); 4132 filename = g_build_filename (DATADIR, "pixmaps", "gaim", "buttons", iconfile, NULL);
4129 debug_printf("Loading: %s\n", filename); 4133 gaim_debug(GAIM_DEBUG_MISC, "gaim_pixbuf_button",
4134 "Loading: %s\n", filename);
4130 image = gtk_image_new_from_file(filename); 4135 image = gtk_image_new_from_file(filename);
4131 gtk_box_pack_end(GTK_BOX(ibox), image, FALSE, FALSE, 0); 4136 gtk_box_pack_end(GTK_BOX(ibox), image, FALSE, FALSE, 0);
4132 g_free(filename); 4137 g_free(filename);
4133 } 4138 }
4134 4139