Mercurial > pidgin
changeset 17423:a8e63ed98673
merge of '10b1053a68924a00cad9c1ed655c2528d95e6b36'
and '4d5db7915aefec35d5303682ec33a210c4a5035e'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 01 Jun 2007 04:22:16 +0000 |
parents | 175f9fc28e75 (current diff) 8e8da9a1eaac (diff) |
children | f9335f068ae8 4c454d1a6f85 |
files | pidgin/gtkconv.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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");
--- 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);