[gnome-control-center/wip/jsparber/background] [refactor] move stuff from CcBackgroundStore::constructed to obj init and remove CcBackgroundStore::
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background] [refactor] move stuff from CcBackgroundStore::constructed to obj init and remove CcBackgroundStore::
- Date: Wed, 31 Jan 2018 22:45:51 +0000 (UTC)
commit 62a4fa44e99fc80610a9a95ba022d4a88790d992
Author: Julian Sparber <julian sparber net>
Date: Mon Jan 15 15:43:51 2018 +0100
[refactor] move stuff from CcBackgroundStore::constructed to obj init
and remove CcBackgroundStore::constructed
https://bugzilla.gnome.org/show_bug.cgi?id=788515
panels/background/cc-background-store.c | 25 ++++++++-----------------
1 files changed, 8 insertions(+), 17 deletions(-)
---
diff --git a/panels/background/cc-background-store.c b/panels/background/cc-background-store.c
index f351bb1..2601297 100644
--- a/panels/background/cc-background-store.c
+++ b/panels/background/cc-background-store.c
@@ -72,28 +72,11 @@ list_load_cb (GObject *source_object,
}
static void
-cc_background_store_constructed (GObject *object)
-{
- CcBackgroundStore *self = CC_BACKGROUND_STORE (object);
-
- G_OBJECT_CLASS (cc_background_store_parent_class)->constructed (object);
-
- g_signal_connect (G_OBJECT (self->xml), "added",
- G_CALLBACK (item_added), self);
-
- /* Try adding the default background first */
- //load_default_bg (self);
-
- cc_background_xml_load_list_async (self->xml, NULL, list_load_cb, self);
-}
-
-static void
cc_background_store_class_init (CcBackgroundStoreClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = cc_background_store_dispose;
- object_class->constructed = cc_background_store_constructed;
object_class->finalize = cc_background_store_finalize;
}
@@ -102,6 +85,14 @@ cc_background_store_init (CcBackgroundStore *self)
{
self->model = g_list_store_new (cc_background_item_get_type());
self->xml = cc_background_xml_new ();
+
+ g_signal_connect (G_OBJECT (self->xml), "added",
+ G_CALLBACK (item_added), self);
+
+ /* Try adding the default background first */
+ //load_default_bg (self);
+
+ cc_background_xml_load_list_async (self->xml, NULL, list_load_cb, self);
}
GListStore *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]