changeset 27432:c91c1b6a84c6

This may or may not fix #9579 but it shouldn't hurt anything even if it doesn't and we worked around the issue in the ticket. Closes #9579.
author Etan Reisner <pidgin@unreliablesource.net>
date Sun, 05 Jul 2009 06:50:39 +0000
parents a71cc338f0fd
children 5b07c7253ba4
files pidgin/gtkprefs.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkprefs.c	Sun Jul 05 05:49:17 2009 +0000
+++ b/pidgin/gtkprefs.c	Sun Jul 05 06:50:39 2009 +0000
@@ -1593,7 +1593,11 @@
 		fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox);
 
 	font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font");
-	font_button = gtk_font_button_new_with_font(font_name ? font_name : NULL);
+	if ((font_name == NULL) || (*font_name == '\0')) {
+		font_button = gtk_font_button_new();
+	} else {
+		font_button = gtk_font_button_new_with_font(font_name);
+	}
 
 	gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE);
 	hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL);