tips-parser

tips-parser

Synopsis

struct              GimpTip;
GimpTip *           gimp_tip_new                        (const gchar *title,
                                                         const gchar *format,
                                                         ...);
void                gimp_tip_free                       (GimpTip *tip);
GList *             gimp_tips_from_file                 (const gchar *filename,
                                                         GError **error);
void                gimp_tips_free                      (GList *tips);

Description

Details

struct GimpTip

struct GimpTip {
  gchar *text;
  gchar *help_id;
};


gimp_tip_new ()

GimpTip *           gimp_tip_new                        (const gchar *title,
                                                         const gchar *format,
                                                         ...);


gimp_tip_free ()

void                gimp_tip_free                       (GimpTip *tip);


gimp_tips_from_file ()

GList *             gimp_tips_from_file                 (const gchar *filename,
                                                         GError **error);

Reads a gimp-tips XML file, creates a new GimpTip for each tip entry and returns a GList of them. If a parser error occurs at some point, the uncompleted list is returned and error is set (unless error is NULL). The message set in error contains a detailed description of the problem.

filename :

the name of the tips file to parse

error :

return location for a GError

Returns :

a Glist of GimpTips.

gimp_tips_free ()

void                gimp_tips_free                      (GList *tips);