Mercurial > pidgin.yaz
comparison src/dialogs.c @ 3659:5b439da85c3b
[gaim-migrate @ 3788]
more i18n work from paco-paco and a fix for colors with high intensity from
Alex Converse (alex4)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 12 Oct 2002 20:45:00 +0000 |
parents | f09193608fd3 |
children | 5b82f99d028d |
comparison
equal
deleted
inserted
replaced
3658:50122d258d6d | 3659:5b439da85c3b |
---|---|
3044 gtk_color_selection_get_current_color(colorsel, &text_color); | 3044 gtk_color_selection_get_current_color(colorsel, &text_color); |
3045 | 3045 |
3046 c = gtk_object_get_user_data(GTK_OBJECT(colorsel)); | 3046 c = gtk_object_get_user_data(GTK_OBJECT(colorsel)); |
3047 /* GTK_IS_EDITABLE(c->entry); huh? */ | 3047 /* GTK_IS_EDITABLE(c->entry); huh? */ |
3048 | 3048 |
3049 text_color.red = text_color.red * 256 / 65535; | 3049 text_color.red = text_color.red / 256; |
3050 text_color.green = text_color.green * 256 /65535; | 3050 text_color.green = text_color.green / 256; |
3051 text_color.blue = text_color.blue * 256 / 65535; | 3051 text_color.blue = text_color.blue / 256; |
3052 | 3052 |
3053 c->fgcol = text_color; | 3053 c->fgcol = text_color; |
3054 c->hasfg = 1; | 3054 c->hasfg = 1; |
3055 g_snprintf(open_tag, 23, "<FONT COLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, | 3055 g_snprintf(open_tag, 23, "<FONT COLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, |
3056 text_color.blue); | 3056 text_color.blue); |
3071 gtk_color_selection_get_current_color(colorsel, &text_color); | 3071 gtk_color_selection_get_current_color(colorsel, &text_color); |
3072 | 3072 |
3073 c = gtk_object_get_user_data(GTK_OBJECT(colorsel)); | 3073 c = gtk_object_get_user_data(GTK_OBJECT(colorsel)); |
3074 /* GTK_IS_EDITABLE(c->entry); huh? */ | 3074 /* GTK_IS_EDITABLE(c->entry); huh? */ |
3075 | 3075 |
3076 text_color.red = text_color.red * 256 / 65535; | 3076 text_color.red = text_color.red / 256; |
3077 text_color.green = text_color.green * 256 /65535; | 3077 text_color.green = text_color.green / 256; |
3078 text_color.blue = text_color.blue * 256 / 65535; | 3078 text_color.blue = text_color.blue / 256; |
3079 | 3079 |
3080 c->bgcol = text_color; | 3080 c->bgcol = text_color; |
3081 c->hasbg = 1; | 3081 c->hasbg = 1; |
3082 g_snprintf(open_tag, 25, "<BODY BGCOLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, | 3082 g_snprintf(open_tag, 25, "<BODY BGCOLOR=\"#%02X%02X%02X\">", text_color.red, text_color.green, |
3083 text_color.blue); | 3083 text_color.blue); |