pidgin/gtkprefs.c

changeset 22404
145dfc6b5f29
parent 22330
c9ac9657f47a
child 22406
d6bdf71bab55
child 22407
338cb79b5c1f
equal deleted inserted replaced
22403:fa5ec7eaa0a0 22404:145dfc6b5f29
974 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); 974 fontpref = pidgin_prefs_checkbox(_("Use document font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox);
975 else 975 else
976 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox); 976 fontpref = pidgin_prefs_checkbox(_("Use font from _theme"), PIDGIN_PREFS_ROOT "/conversations/use_theme_font", vbox);
977 977
978 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font"); 978 font_name = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font");
979 font_button = gtk_font_button_new_with_font(font_name ? font_name : NULL); 979 font_button = gtk_font_button_new_with_font(font_name ? font_name : "");
980 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE); 980 gtk_font_button_set_show_style(GTK_FONT_BUTTON(font_button), TRUE);
981 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL); 981 hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Conversation _font:"), NULL, font_button, FALSE, NULL);
982 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font")) 982 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font"))
983 gtk_widget_set_sensitive(hbox, FALSE); 983 gtk_widget_set_sensitive(hbox, FALSE);
984 g_signal_connect(G_OBJECT(fontpref), "clicked", G_CALLBACK(pidgin_toggle_sensitive), hbox); 984 g_signal_connect(G_OBJECT(fontpref), "clicked", G_CALLBACK(pidgin_toggle_sensitive), hbox);

mercurial