[gtk+] GtkFontChooser: Check if the deprecated widgets are present before updating the size list



commit bbe8d13c6e2e6d134fb2d099b1ac83c82d391a88
Author: Alberto Ruiz <aruiz gnome org>
Date:   Wed May 4 23:23:13 2011 +0100

    GtkFontChooser: Check if the deprecated widgets are present before updating the size list

 gtk/gtkfontchooser.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 5da1d04..074124a 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -412,8 +412,11 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data)
 
 
 #ifndef GTK_DISABLE_DEPRECATED
-  priv->ignore_size = TRUE;
-  update_size_list_selection (fontsel);
+  if (priv->size_list)
+    {
+      priv->ignore_size = TRUE;
+      update_size_list_selection (fontsel);
+    }
 #endif /* GTK_DISABLE_DEPRECATED */
 
   gtk_widget_queue_draw (priv->preview);



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