gtkcellview: unseal private pointer

This commit is contained in:
Javier Jardón 2010-06-01 23:38:52 +02:00
parent 3c90ecf27b
commit 637c9f16e3
2 changed files with 8 additions and 4 deletions

View File

@ -122,7 +122,6 @@ static void gtk_cell_view_buildable_custom_tag_end (GtkBuildable
static GtkBuildableIface *parent_buildable_iface; static GtkBuildableIface *parent_buildable_iface;
#define GTK_CELL_VIEW_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_CELL_VIEW, GtkCellViewPrivate))
enum enum
{ {
@ -288,9 +287,14 @@ gtk_cell_view_set_property (GObject *object,
static void static void
gtk_cell_view_init (GtkCellView *cellview) gtk_cell_view_init (GtkCellView *cellview)
{ {
gtk_widget_set_has_window (GTK_WIDGET (cellview), FALSE); GtkCellViewPrivate *priv;
cellview->priv = GTK_CELL_VIEW_GET_PRIVATE (cellview); cellview->priv = G_TYPE_INSTANCE_GET_PRIVATE (cellview,
GTK_TYPE_CELL_VIEW,
GtkCellViewPrivate);
priv = cellview->priv;
gtk_widget_set_has_window (GTK_WIDGET (cellview), FALSE);
} }
static void static void

View File

@ -46,7 +46,7 @@ struct _GtkCellView
GtkWidget parent_instance; GtkWidget parent_instance;
/*< private >*/ /*< private >*/
GtkCellViewPrivate *GSEAL (priv); GtkCellViewPrivate *priv;
}; };
struct _GtkCellViewClass struct _GtkCellViewClass