mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
GtkFontChooser: Initial support for deprecated functions
This commit is contained in:
parent
c96698e95f
commit
abc92d5030
@ -100,6 +100,15 @@ struct _GtkFontSelectionPrivate
|
|||||||
PangoFontFamily *family;
|
PangoFontFamily *family;
|
||||||
|
|
||||||
gboolean ignore_slider;
|
gboolean ignore_slider;
|
||||||
|
|
||||||
|
/*FIXME: Remove these widgets after deprecation removal */
|
||||||
|
GtkWidget *size_list;
|
||||||
|
GtkWidget *font_list;
|
||||||
|
GtkWidget *face_list;
|
||||||
|
|
||||||
|
GtkListStore *_size_model;
|
||||||
|
GtkListStore *_font_model;
|
||||||
|
GtkListStore *_face_model;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -510,15 +519,20 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
|
|||||||
GtkWidget *alignment;
|
GtkWidget *alignment;
|
||||||
GtkWidget *preview_and_size;
|
GtkWidget *preview_and_size;
|
||||||
GtkWidget *size_controls;
|
GtkWidget *size_controls;
|
||||||
#if 0
|
|
||||||
GList *focus_chain = NULL;
|
|
||||||
AtkObject *atk_obj;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fontsel->priv = G_TYPE_INSTANCE_GET_PRIVATE (fontsel,
|
fontsel->priv = G_TYPE_INSTANCE_GET_PRIVATE (fontsel,
|
||||||
GTK_TYPE_FONT_SELECTION,
|
GTK_TYPE_FONT_SELECTION,
|
||||||
GtkFontSelectionPrivate);
|
GtkFontSelectionPrivate);
|
||||||
|
|
||||||
priv = fontsel->priv;
|
priv = fontsel->priv;
|
||||||
|
priv->size_list = NULL;
|
||||||
|
priv->font_list = NULL;
|
||||||
|
priv->face_list = NULL;
|
||||||
|
|
||||||
|
priv->_size_model = NULL;
|
||||||
|
priv->_font_model = NULL;
|
||||||
|
priv->_face_model = NULL;
|
||||||
|
|
||||||
gtk_widget_push_composite_child ();
|
gtk_widget_push_composite_child ();
|
||||||
|
|
||||||
/* Creating fundamental widgets for the private struct */
|
/* Creating fundamental widgets for the private struct */
|
||||||
|
Loading…
Reference in New Issue
Block a user