Commit 56cc11a4 authored by Javier Jardon's avatar Javier Jardon

gtkcombobox: unseal private pointer

parent ebf6ce27
......@@ -68,7 +68,6 @@ struct _ComboCellInfo
guint pack : 1;
};
#define GTK_COMBO_BOX_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_COMBO_BOX, GtkComboBoxPrivate))
struct _GtkComboBoxPrivate
{
......@@ -927,7 +926,12 @@ gtk_combo_box_cell_editable_init (GtkCellEditableIface *iface)
static void
gtk_combo_box_init (GtkComboBox *combo_box)
{
GtkComboBoxPrivate *priv = GTK_COMBO_BOX_GET_PRIVATE (combo_box);
GtkComboBoxPrivate *priv;
combo_box->priv = G_TYPE_INSTANCE_GET_PRIVATE (combo_box,
GTK_TYPE_COMBO_BOX,
GtkComboBoxPrivate);
priv = combo_box->priv;
priv->cell_view = gtk_cell_view_new ();
gtk_widget_set_parent (priv->cell_view, GTK_WIDGET (combo_box));
......@@ -952,8 +956,6 @@ gtk_combo_box_init (GtkComboBox *combo_box)
priv->focus_on_click = TRUE;
priv->button_sensitivity = GTK_SENSITIVITY_AUTO;
combo_box->priv = priv;
gtk_combo_box_check_appearance (combo_box);
}
......@@ -1033,7 +1035,7 @@ gtk_combo_box_get_property (GObject *object,
GParamSpec *pspec)
{
GtkComboBox *combo_box = GTK_COMBO_BOX (object);
GtkComboBoxPrivate *priv = GTK_COMBO_BOX_GET_PRIVATE (combo_box);
GtkComboBoxPrivate *priv = combo_box->priv;
switch (prop_id)
{
......
......@@ -46,7 +46,7 @@ struct _GtkComboBox
GtkBin parent_instance;
/*< private >*/
GtkComboBoxPrivate *GSEAL (priv);
GtkComboBoxPrivate *priv;
};
struct _GtkComboBoxClass
......
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