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

This commit is contained in:
Alberto Ruiz
2011-05-04 23:23:13 +01:00
committed by Matthias Clasen
parent 1b00a3eb76
commit bbe8d13c6e

View File

@ -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);