background: Add "added" signal to CcBackgroundXml

So that the front-end can load the wallpapers piece-meal, and
avoid overloading the UI on startup.
This commit is contained in:
Bastien Nocera 2011-02-12 02:37:04 +00:00
parent 415d4c1111
commit c2e84e2c8a
2 changed files with 69 additions and 6 deletions

View file

@ -36,17 +36,18 @@ G_BEGIN_DECLS
typedef struct CcBackgroundXmlPrivate CcBackgroundXmlPrivate;
typedef struct
{
GObjectClass parent_class;
} CcBackgroundXmlClass;
typedef struct
{
GObject parent;
CcBackgroundXmlPrivate *priv;
} CcBackgroundXml;
typedef struct
{
GObjectClass parent_class;
void (*added) (CcBackgroundXml *xml, GObject *item);
} CcBackgroundXmlClass;
GType cc_background_xml_get_type (void);
CcBackgroundXml *cc_background_xml_new (void);