comparison src/gtkimhtml.c @ 11820:2cf6d4cf2cb0

[gaim-migrate @ 14111] Death to // comments. Excluding win32, where it doesn't matter, this should be it except for crazychat and bonjour. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 25 Oct 2005 20:50:21 +0000
parents fa17fc619f17
children 047f85200139
comparison
equal deleted inserted replaced
11819:1452a3a9f07a 11820:2cf6d4cf2cb0
1643 1643
1644 links = g_strsplit((char *)sd->data, "\n", 0); 1644 links = g_strsplit((char *)sd->data, "\n", 0);
1645 while((link = links[i]) != NULL){ 1645 while((link = links[i]) != NULL){
1646 if(gaim_str_has_prefix(link, "http://") || 1646 if(gaim_str_has_prefix(link, "http://") ||
1647 gaim_str_has_prefix(link, "https://") || 1647 gaim_str_has_prefix(link, "https://") ||
1648 gaim_str_has_prefix(link, "ftp://")) 1648 gaim_str_has_prefix(link, "ftp://"))
1649 { 1649 {
1650 gchar *label; 1650 gchar *label;
1651 1651
1652 if(links[i + 1]) 1652 if(links[i + 1])
1653 i++; 1653 i++;
2653 2653
2654 if (color && !(options & GTK_IMHTML_NO_COLOURS) && (imhtml->format_functions & GTK_IMHTML_FORECOLOR)) { 2654 if (color && !(options & GTK_IMHTML_NO_COLOURS) && (imhtml->format_functions & GTK_IMHTML_FORECOLOR)) {
2655 font->fore = color; 2655 font->fore = color;
2656 gtk_imhtml_toggle_forecolor(imhtml, font->fore); 2656 gtk_imhtml_toggle_forecolor(imhtml, font->fore);
2657 } 2657 }
2658 //else if (oldfont && oldfont->fore)
2659 // font->fore = g_strdup(oldfont->fore);
2660 2658
2661 if (back && !(options & GTK_IMHTML_NO_COLOURS) && (imhtml->format_functions & GTK_IMHTML_BACKCOLOR)) { 2659 if (back && !(options & GTK_IMHTML_NO_COLOURS) && (imhtml->format_functions & GTK_IMHTML_BACKCOLOR)) {
2662 font->back = back; 2660 font->back = back;
2663 gtk_imhtml_toggle_backcolor(imhtml, font->back); 2661 gtk_imhtml_toggle_backcolor(imhtml, font->back);
2664 } 2662 }
2665 //else if (oldfont && oldfont->back)
2666 // font->back = g_strdup(oldfont->back);
2667 2663
2668 if (face && !(options & GTK_IMHTML_NO_FONTS) && (imhtml->format_functions & GTK_IMHTML_FACE)) { 2664 if (face && !(options & GTK_IMHTML_NO_FONTS) && (imhtml->format_functions & GTK_IMHTML_FACE)) {
2669 font->face = face; 2665 font->face = face;
2670 gtk_imhtml_toggle_fontface(imhtml, font->face); 2666 gtk_imhtml_toggle_fontface(imhtml, font->face);
2671 } 2667 }
2672 //else if (oldfont && oldfont->face)
2673 // font->face = g_strdup(oldfont->face);
2674 2668
2675 if (sml) 2669 if (sml)
2676 font->sml = sml; 2670 font->sml = sml;
2677 else if (oldfont && oldfont->sml) 2671 else if (oldfont && oldfont->sml)
2678 font->sml = g_strdup(oldfont->sml); 2672 font->sml = g_strdup(oldfont->sml);