# HG changeset patch # User Etan Reisner # Date 1246776639 0 # Node ID c91c1b6a84c66a8ea0e6db31939821f9f29be302 # Parent a71cc338f0fd145c56f0ee3f693a2131024ea8b1 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. diff -r a71cc338f0fd -r c91c1b6a84c6 pidgin/gtkprefs.c --- 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);