Commit bbe8d13c authored by Alberto Ruiz's avatar Alberto Ruiz Committed by Matthias Clasen

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

parent 1b00a3eb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment