Re: Goffice: Axis labels and other text elements

I think we need to find some way to document available roles for each
class. Unfortunately, gtk-doc does not help a lot.

Le mercredi 15 septembre 2010 à 11:47 +0200, Jon Nordby a écrit :
On Thu, 2010-09-02 at 15:17 +0200, Jean Brefort wrote:
Le jeudi 02 septembre 2010 à 12:58 +0200, Jon Nordby a écrit :
I want to add labels to the x and y axis of an AreaPlot. I suspect this
folllows the same idiom as for adding a title (which is show in
tests/pie-demo.c), but what is the name(s) to add as?

GogObject *label = gog_object_add_by_name (GOG_OBJECT (axis), "Label", NULL);

More generally, you can look at the 'static GogObjectRole const roles[]'
in the *_class_init() function for the appropriate class.

This is essentially a part of the API, so shouldn't this be part of the
API documentation? Is anything major preventing that?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]