mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
GtkFontButton: Fix the handling of show-preview-button
We were not storing the value at all, and not notifying.
This commit is contained in:
parent
595a44680a
commit
eb34ff5b48
@ -272,10 +272,15 @@ gtk_font_button_set_show_preview_entry (GtkFontButton *font_button,
|
||||
{
|
||||
GtkFontButtonPrivate *priv = font_button->priv;
|
||||
|
||||
if (priv->font_dialog)
|
||||
gtk_font_chooser_set_show_preview_entry (GTK_FONT_CHOOSER (priv->font_dialog), show);
|
||||
else
|
||||
priv->show_preview_entry = show != FALSE;
|
||||
show = show != FALSE;
|
||||
|
||||
if (priv->show_preview_entry != show)
|
||||
{
|
||||
priv->show_preview_entry = show;
|
||||
if (priv->font_dialog)
|
||||
gtk_font_chooser_set_show_preview_entry (GTK_FONT_CHOOSER (priv->font_dialog), show);
|
||||
g_object_notify (G_OBJECT (font_button), "show-preview-entry");
|
||||
}
|
||||
}
|
||||
|
||||
static PangoFontFamily *
|
||||
|
Loading…
Reference in New Issue
Block a user