diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2013-06-27 20:02:52 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2013-07-09 09:30:02 +0100 |
commit | 0899ef7cc9cf73824901923143f38bb9b6d224a3 (patch) | |
tree | 16207a8837da8a89a6f4a1d1a1c23074fd29aa1d /gtk/gtkcellarea.c | |
parent | 365919d5f6da0a8648815ca5cf5805fb88c9be16 (diff) | |
download | gtk+-0899ef7cc9cf73824901923143f38bb9b6d224a3.tar.gz |
gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
Diffstat (limited to 'gtk/gtkcellarea.c')
-rw-r--r-- | gtk/gtkcellarea.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkcellarea.c b/gtk/gtkcellarea.c index 715e4ae207..b7bad3d559 100644 --- a/gtk/gtkcellarea.c +++ b/gtk/gtkcellarea.c @@ -616,6 +616,7 @@ static guint cell_area_signals[LAST_SIGNAL] = { 0 }; #define PARAM_SPEC_SET_PARAM_ID(pspec, id) ((pspec)->param_id = (id)) G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GtkCellArea, gtk_cell_area, G_TYPE_INITIALLY_UNOWNED, + G_ADD_PRIVATE (GtkCellArea) G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_LAYOUT, gtk_cell_area_cell_layout_init) G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, @@ -626,9 +627,7 @@ gtk_cell_area_init (GtkCellArea *area) { GtkCellAreaPrivate *priv; - area->priv = G_TYPE_INSTANCE_GET_PRIVATE (area, - GTK_TYPE_CELL_AREA, - GtkCellAreaPrivate); + area->priv = gtk_cell_area_get_instance_private (area); priv = area->priv; priv->cell_info = g_hash_table_new_full (g_direct_hash, @@ -846,8 +845,6 @@ gtk_cell_area_class_init (GtkCellAreaClass *class) /* Pool for Cell Properties */ if (!cell_property_pool) cell_property_pool = g_param_spec_pool_new (FALSE); - - g_type_class_add_private (object_class, sizeof (GtkCellAreaPrivate)); } /************************************************************* |