fontchooser: Don't reload the fonts on style changes

It's not necessary, because nothing changes.
This commit is contained in:
Benjamin Otte 2011-09-19 18:51:11 +02:00
parent 64d3350264
commit 6552a8245b

View File

@ -144,7 +144,6 @@ static void gtk_font_chooser_widget_dispose (GObject *objec
static void gtk_font_chooser_widget_screen_changed (GtkWidget *widget,
GdkScreen *previous_screen);
static void gtk_font_chooser_widget_style_updated (GtkWidget *widget);
static void gtk_font_chooser_widget_bootstrap_fontlist (GtkFontChooserWidget *fontchooser);
@ -180,7 +179,6 @@ gtk_font_chooser_widget_class_init (GtkFontChooserWidgetClass *klass)
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
widget_class->screen_changed = gtk_font_chooser_widget_screen_changed;
widget_class->style_updated = gtk_font_chooser_widget_style_updated;
gobject_class->dispose = gtk_font_chooser_widget_dispose;
gobject_class->finalize = gtk_font_chooser_widget_finalize;
@ -977,18 +975,6 @@ gtk_font_chooser_widget_screen_changed (GtkWidget *widget,
gtk_font_chooser_widget_select_font (fontchooser);
}
static void
gtk_font_chooser_widget_style_updated (GtkWidget *widget)
{
GtkFontChooserWidget *fontchooser = GTK_FONT_CHOOSER_WIDGET (widget);
GTK_WIDGET_CLASS (gtk_font_chooser_widget_parent_class)->style_updated (widget);
populate_list (fontchooser,
GTK_TREE_VIEW (fontchooser->priv->family_face_list),
fontchooser->priv->model);
}
static PangoFontFamily *
gtk_font_chooser_widget_get_family (GtkFontChooser *chooser)
{