gtk: Use new macros for defining private data
https://bugzilla.gnome.org/show_bug.cgi?id=702996
This commit is contained in:
		| @ -205,6 +205,7 @@ validate_tree (GtkTreeStore *tree_store) | ||||
| } | ||||
|  | ||||
| G_DEFINE_TYPE_WITH_CODE (GtkTreeStore, gtk_tree_store, G_TYPE_OBJECT, | ||||
|                          G_ADD_PRIVATE (GtkTreeStore) | ||||
| 			 G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL, | ||||
| 						gtk_tree_store_tree_model_init) | ||||
| 			 G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE, | ||||
| @ -224,8 +225,6 @@ gtk_tree_store_class_init (GtkTreeStoreClass *class) | ||||
|   object_class = (GObjectClass *) class; | ||||
|  | ||||
|   object_class->finalize = gtk_tree_store_finalize; | ||||
|  | ||||
|   g_type_class_add_private (class, sizeof (GtkTreeStorePrivate)); | ||||
| } | ||||
|  | ||||
| static void | ||||
| @ -283,9 +282,7 @@ gtk_tree_store_init (GtkTreeStore *tree_store) | ||||
| { | ||||
|   GtkTreeStorePrivate *priv; | ||||
|  | ||||
|   priv = G_TYPE_INSTANCE_GET_PRIVATE (tree_store, | ||||
|                                       GTK_TYPE_TREE_STORE, | ||||
|                                       GtkTreeStorePrivate); | ||||
|   priv = gtk_tree_store_get_instance_private (tree_store); | ||||
|   tree_store->priv = priv; | ||||
|   priv->root = g_node_new (NULL); | ||||
|   /* While the odds are against us getting 0...  */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Emmanuele Bassi
					Emmanuele Bassi