|
@@ -31,7 +31,7 @@ static void mssh_pref_font_select(GtkWidget *widget, gpointer data)
|
|
|
|
|
|
client = gconf_client_get_default();
|
|
client = gconf_client_get_default();
|
|
|
|
|
|
- font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(widget));
|
|
|
|
|
|
+ font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER(widget));
|
|
|
|
|
|
gconf_client_set_string(client, MSSH_GCONF_KEY_FONT, font, NULL);
|
|
gconf_client_set_string(client, MSSH_GCONF_KEY_FONT, font, NULL);
|
|
}
|
|
}
|
|
@@ -383,7 +383,7 @@ static void mssh_pref_init(MSSHPref* pref)
|
|
entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FONT, NULL,
|
|
entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FONT, NULL,
|
|
TRUE, NULL);
|
|
TRUE, NULL);
|
|
value = gconf_entry_get_value(entry);
|
|
value = gconf_entry_get_value(entry);
|
|
- gtk_font_button_set_font_name(GTK_FONT_BUTTON(font_select),
|
|
|
|
|
|
+ gtk_font_chooser_set_font(GTK_FONT_CHOOSER(font_select),
|
|
gconf_value_get_string(value));
|
|
gconf_value_get_string(value));
|
|
|
|
|
|
entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FG_COLOUR, NULL,
|
|
entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FG_COLOUR, NULL,
|