[gtk+] fontchooser: Don't reload the fonts on style changes



commit 6552a8245b155e875ae2f52d9fcfe5cb0eaf5429
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 19 18:51:11 2011 +0200

    fontchooser: Don't reload the fonts on style changes
    
    It's not necessary, because nothing changes.

 gtk/gtkfontchooserwidget.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 32160a9..ed5f4ce 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -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)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]