From 5059fa16d31d7db63d448c496227bc9fb048d4cc Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sat, 29 Aug 2009 03:25:41 +0200 Subject: [PATCH] [AdgModel] Enhanced docs Highlighted the "This function is only useful in..." message as a note and put at the beginning of the docblock to emphasize it. --- adg/adg-model.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/adg/adg-model.c b/adg/adg-model.c index 0b4fd294..b68b1dd5 100644 --- a/adg/adg-model.c +++ b/adg/adg-model.c @@ -202,10 +202,12 @@ set_property(GObject *object, * @model: an #AdgModel * @entity: an #AdgEntity * + * + * This function is only useful in entity implementations. + * + * * Emits a #AdgModel::add-dependency signal on @model passing @entity * as argument. This will add a reference to @entity owned by @model. - * - * This function is only useful in entity implementations. **/ void adg_model_add_dependency(AdgModel *model, AdgEntity *entity) @@ -221,14 +223,16 @@ adg_model_add_dependency(AdgModel *model, AdgEntity *entity) * @model: an #AdgModel * @entity: an #AdgEntity * + * + * This function is only useful in entity implementations. + * + * * Emits a #AdgModel::remove-dependency signal on @model passing * @entity as argument. @entity must be inside @model. * * Note that @model will own a reference to @entity and it * may be the last reference held: this means removing an entity * from the model can destroy it. - * - * This function is only useful in entity implementations. **/ void adg_model_remove_dependency(AdgModel *model, AdgEntity *entity) @@ -293,10 +297,12 @@ adg_model_foreach_dependency(AdgModel *model, GCallback callback, * adg_model_changed: * @model: an #AdgModel * - * Emits the #AdgModel::changed signal on @model. + * + * This function is only useful in entity implementations. + * * - * This function is only useful in model implementations. - */ + * Emits the #AdgModel::changed signal on @model. + **/ void adg_model_changed(AdgModel *model) { -- 2.11.4.GIT