gtkcomboboxentry: unseal private pointer

This commit is contained in:
Javier Jardón 2010-06-02 05:23:43 +02:00
parent 56cc11a416
commit 5fd442eda2
2 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,6 @@
#include "gtkintl.h"
#include "gtkbuildable.h"
#define GTK_COMBO_BOX_ENTRY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_COMBO_BOX_ENTRY, GtkComboBoxEntryPrivate))
struct _GtkComboBoxEntryPrivate
{
@ -118,7 +117,10 @@ gtk_combo_box_entry_init (GtkComboBoxEntry *entry_box)
{
GtkWidget *entry;
entry_box->priv = GTK_COMBO_BOX_ENTRY_GET_PRIVATE (entry_box);
entry_box->priv = G_TYPE_INSTANCE_GET_PRIVATE (entry_box,
GTK_TYPE_COMBO_BOX_ENTRY,
GtkComboBoxEntryPrivate);
entry_box->priv->text_column = -1;
entry = gtk_entry_new ();

View File

@ -45,7 +45,7 @@ struct _GtkComboBoxEntry
GtkComboBox parent_instance;
/*< private >*/
GtkComboBoxEntryPrivate *GSEAL (priv);
GtkComboBoxEntryPrivate *priv;
};
struct _GtkComboBoxEntryClass