From 97a648c1a366b9700ed9e6a107378873db781430 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Fri, 21 Aug 2009 01:01:55 +0200 Subject: [PATCH] [AdgContext] Got some docs from the wiki The AdgContextFiller documentation in the wiki was too technical: moved inside the sources to target more interested developers. --- adg/adg-context.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/adg/adg-context.c b/adg/adg-context.c index b1975fd2..f3656c6b 100644 --- a/adg/adg-context.c +++ b/adg/adg-context.c @@ -48,8 +48,14 @@ * @style_class: the new style class * @user_data: the user provided data * - * Callback to be used to get the default instance for - * newly registered style classes. + * Callback to be used to get the default instance for newly registered + * style classes. This is needed to solve the issue rising on #AdgContext + * instances when a new style is added. + * + * The arrays that keep track of the style instances inside the contexts + * are dynamics (#GPtrArray type): whenever an undefined style instance + * is requested, the context object fills the array "holes" using a call + * to this callback. * * Returns: the instance to use for the passed in style class **/ -- 2.11.4.GIT