diff src/gtkutils.c @ 12114:2cbb5993c819

[gaim-migrate @ 14414] Killed stylize(). No more gtk in server.c. Next stop: No more server.c. It looks like also the auto-response code was leaking, so that's fixed now. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 16 Nov 2005 16:59:22 +0000
parents 3b52d94437f3
children c7ae1fd0827d
line wrap: on
line diff
--- a/src/gtkutils.c	Wed Nov 16 08:49:46 2005 +0000
+++ b/src/gtkutils.c	Wed Nov 16 16:59:22 2005 +0000
@@ -827,76 +827,6 @@
 	return FALSE;
 }
 
-/*
- * TODO: Do we even need this?
- */
-char *stylize(const gchar *text, int length)
-{
-	char *tmp;
-	gchar *buf;
-	const char *font;
-	GdkColor fg_color, bg_color;
-
-	tmp = g_malloc(length);
-	buf = g_malloc(length);
-	g_snprintf(buf, length, "%s", text);
-
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold"))
-	{
-		g_snprintf(tmp, length, "<B>%s</B>", buf);
-		strcpy(buf, tmp);
-	}
-
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic"))
-	{
-		g_snprintf(tmp, length, "<I>%s</I>", buf);
-		strcpy(buf, tmp);
-	}
-
-	if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline"))
-	{
-		g_snprintf(tmp, length, "<U>%s</U>", buf);
-		strcpy(buf, tmp);
-	}
-
-	font = gaim_prefs_get_string("/gaim/gtk/conversations/font_face");
-
-	if (strcmp(font, "") != 0)
-	{
-		g_snprintf(tmp, length, "<FONT FACE=\"%s\">%s</FONT>", font, buf);
-		strcpy(buf, tmp);
-	}
-
-	g_snprintf(tmp, length, "<FONT SIZE=\"%d\">%s</FONT>",
-		gaim_prefs_get_int("/gaim/gtk/conversations/font_size"), buf);
-	strcpy(buf, tmp);
-
-	if (strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/fgcolor"), "") != 0)
-	{
-		gdk_color_parse(gaim_prefs_get_string("/gaim/gtk/conversations/fgcolor"),
-						&fg_color);
-
-		g_snprintf(tmp, length, "<FONT COLOR=\"#%02X%02X%02X\">%s</FONT>",
-				   fg_color.red/256, fg_color.green/256,
-				   fg_color.blue/256, buf);
-		strcpy(buf, tmp);
-	}
-
-	if (strcmp(gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor"), "") != 0)
-	{
-		gdk_color_parse(gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor"),
-						&bg_color);
-
-		g_snprintf(tmp, length, "<BODY BGCOLOR=\"#%02X%02X%02X\">%s</BODY>",
-				   bg_color.red/256, bg_color.green/256,
-				   bg_color.blue/256, buf);
-		strcpy(buf, tmp);
-	}
-
-	g_free(tmp);
-	return buf;
-}
-
 void
 gaim_gtk_setup_gtkspell(GtkTextView *textview)
 {