GtkFontChooser: Check if the deprecated widgets are present before updating the size list
This commit is contained in:
committed by
Matthias Clasen
parent
1b00a3eb76
commit
bbe8d13c6e
@ -412,8 +412,11 @@ spin_change_cb (GtkAdjustment *adjustment, gpointer data)
|
|||||||
|
|
||||||
|
|
||||||
#ifndef GTK_DISABLE_DEPRECATED
|
#ifndef GTK_DISABLE_DEPRECATED
|
||||||
priv->ignore_size = TRUE;
|
if (priv->size_list)
|
||||||
update_size_list_selection (fontsel);
|
{
|
||||||
|
priv->ignore_size = TRUE;
|
||||||
|
update_size_list_selection (fontsel);
|
||||||
|
}
|
||||||
#endif /* GTK_DISABLE_DEPRECATED */
|
#endif /* GTK_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
gtk_widget_queue_draw (priv->preview);
|
gtk_widget_queue_draw (priv->preview);
|
||||||
|
|||||||
Reference in New Issue
Block a user