button_2_chooser.patch 908 B

12345678910111213141516171819202122
  1. diff --git a/src/mssh-pref.c b/src/mssh-pref.c
  2. index 8b874d3..9185ec0 100644
  3. --- a/src/mssh-pref.c
  4. +++ b/src/mssh-pref.c
  5. @@ -31,7 +31,7 @@ static void mssh_pref_font_select(GtkWidget *widget, gpointer data)
  6. client = gconf_client_get_default();
  7. - font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(widget));
  8. + font = gtk_font_chooser_get_font (GTK_FONT_CHOOSER(widget));
  9. gconf_client_set_string(client, MSSH_GCONF_KEY_FONT, font, NULL);
  10. }
  11. @@ -383,7 +383,7 @@ static void mssh_pref_init(MSSHPref* pref)
  12. entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FONT, NULL,
  13. TRUE, NULL);
  14. value = gconf_entry_get_value(entry);
  15. - gtk_font_button_set_font_name(GTK_FONT_BUTTON(font_select),
  16. + gtk_font_chooser_set_font(GTK_FONT_CHOOSER(font_select),
  17. gconf_value_get_string(value));
  18. entry = gconf_client_get_entry(client, MSSH_GCONF_KEY_FG_COLOUR, NULL,