background: Replace deprecated GSimpleAsyncResult with GTask
This commit is contained in:
parent
3622c8ff14
commit
122f997493
3 changed files with 35 additions and 34 deletions
|
@ -31,17 +31,19 @@ G_DECLARE_FINAL_TYPE (CcBackgroundXml, cc_background_xml, CC, BACKGROUND_XML, GO
|
|||
|
||||
CcBackgroundXml *cc_background_xml_new (void);
|
||||
|
||||
void cc_background_xml_save (CcBackgroundItem *item,
|
||||
const char *filename);
|
||||
void cc_background_xml_save (CcBackgroundItem *item,
|
||||
const char *filename);
|
||||
|
||||
CcBackgroundItem *cc_background_xml_get_item (const char *filename);
|
||||
gboolean cc_background_xml_load_xml (CcBackgroundXml *data,
|
||||
const char *filename);
|
||||
void cc_background_xml_load_list_async (CcBackgroundXml *data,
|
||||
GCancellable *cancellable,
|
||||
CcBackgroundItem *cc_background_xml_get_item (const char *filename);
|
||||
gboolean cc_background_xml_load_xml (CcBackgroundXml *data,
|
||||
const char *filename);
|
||||
void cc_background_xml_load_list_async (CcBackgroundXml *xml,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
const GHashTable *cc_background_xml_load_list_finish (GAsyncResult *async_result);
|
||||
gpointer user_data);
|
||||
gboolean cc_background_xml_load_list_finish (CcBackgroundXml *xml,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue