# HG changeset patch
# User Sean Egan <seanegan@gmail.com>
# Date 1180671736 0
# Node ID a8e63ed9867330a672f37af1d1ad09ef9e5ca937
# Parent  175f9fc28e75ae2a50902b0d78bc01cec9bea856# Parent  8e8da9a1eaac2cebe8dbff4550902061012b6d67
merge of '10b1053a68924a00cad9c1ed655c2528d95e6b36'
     and '4d5db7915aefec35d5303682ec33a210c4a5035e'

diff -r 175f9fc28e75 -r a8e63ed98673 pidgin/gtkconv.c
--- a/pidgin/gtkconv.c	Fri Jun 01 04:20:37 2007 +0000
+++ b/pidgin/gtkconv.c	Fri Jun 01 04:22:16 2007 +0000
@@ -6956,7 +6956,7 @@
 	purple_prefs_add_int(PIDGIN_PREFS_ROOT "/conversations/scrollback_lines", 4000);
 
 	purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font", TRUE);
-	purple_prefs_add_string(PIDGIN_PREFS_ROOT "/conversations/custom_font", "Sans 28");
+	purple_prefs_add_string(PIDGIN_PREFS_ROOT "/conversations/custom_font", "");
 
 	/* Conversations -> Chat */
 	purple_prefs_add_none(PIDGIN_PREFS_ROOT "/conversations/chat");
diff -r 175f9fc28e75 -r a8e63ed98673 pidgin/gtkprefs.c
--- a/pidgin/gtkprefs.c	Fri Jun 01 04:20:37 2007 +0000
+++ b/pidgin/gtkprefs.c	Fri Jun 01 04:22:16 2007 +0000
@@ -906,6 +906,7 @@
 	GtkWidget *hbox;
 	GtkWidget *label;
 	GtkWidget *font_button;
+	const char *font_name;
 #endif
 
 	ret = gtk_vbox_new(FALSE, PIDGIN_HIG_CAT_SPACE);
@@ -947,7 +948,8 @@
 	hbox = gtk_hbox_new(FALSE, 3);
 	label = gtk_label_new_with_mnemonic(_("Conversation _font:"));
 	gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
-	font_button = gtk_font_button_new_with_font(purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font"));
+	font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font");
+	font_button = gtk_font_button_new_with_font(purple_prefs_get_string(font_name ? font_name : NULL));
 	gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE);
 	gtk_box_pack_start(GTK_BOX(hbox), font_button, FALSE, FALSE, 0);
 	gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);