diff src/gtkprefs.c @ 5671:d43a00b81d2a

[gaim-migrate @ 6088] color conversion and setting now works correctly. now maybe my eyes will stop bleeding. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 02 Jun 2003 17:04:46 +0000
parents 30316c5b13da
children 62f57ec16f29
line wrap: on
line diff
--- a/src/gtkprefs.c	Mon Jun 02 14:41:22 2003 +0000
+++ b/src/gtkprefs.c	Mon Jun 02 17:04:46 2003 +0000
@@ -2544,7 +2544,7 @@
 
 void apply_color_dlg(GtkWidget *w, gpointer d)
 {
-	char buf[8];
+	char buf[14];
 
 	if ((int)d == 1) {
 		GdkColor fgcolor;
@@ -2553,7 +2553,7 @@
 						      (GTK_COLOR_SELECTION_DIALOG(fgcseld)->colorsel),
 						      &fgcolor);
 
-		g_snprintf(buf, sizeof(buf), "#%02x%02x%02x",
+		g_snprintf(buf, sizeof(buf), "#%04x%04x%04x",
 				   fgcolor.red, fgcolor.green, fgcolor.blue);
 
 		gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", buf);
@@ -2567,7 +2567,7 @@
 						      (GTK_COLOR_SELECTION_DIALOG(bgcseld)->colorsel),
 						      &bgcolor);
 
-		g_snprintf(buf, sizeof(buf), "#%02x%02x%02x",
+		g_snprintf(buf, sizeof(buf), "#%04x%04x%04x",
 				   bgcolor.red, bgcolor.green, bgcolor.blue);
 
 		gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", buf);