app: use gtk_widget_override_font() instead of modify_font()

This commit is contained in:
Michael Natterer 2011-01-03 14:45:58 +01:00
parent dada25b14e
commit afaa31bb33
1 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ gimp_text_editor_set_font_name (GimpTextEditor *editor,
if (font_name)
font_desc = pango_font_description_from_string (font_name);
gtk_widget_modify_font (editor->view, font_desc);
gtk_widget_override_font (editor->view, font_desc);
if (font_desc)
pango_font_description_free (font_desc);
@ -352,7 +352,7 @@ gimp_text_editor_font_toggled (GtkToggleButton *button,
if (gtk_toggle_button_get_active (button) && editor->font_name)
font_desc = pango_font_description_from_string (editor->font_name);
gtk_widget_modify_font (editor->view, font_desc);
gtk_widget_override_font (editor->view, font_desc);
if (font_desc)
pango_font_description_free (font_desc);