[gnome-control-center/wip/jsparber/background: 20/41] background: remove CcBackgroundStore constructer
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background: 20/41] background: remove CcBackgroundStore constructer
- Date: Thu, 8 Feb 2018 16:13:10 +0000 (UTC)
commit 677b6942351de6e6e9ec4a015672774c7748f15d
Author: Julian Sparber <julian sparber net>
Date: Mon Jan 15 15:43:51 2018 +0100
background: remove CcBackgroundStore constructer
move code from CcBackgroundStore::constructed to ::init
https://bugzilla.gnome.org/show_bug.cgi?id=788515
panels/background/cc-background-store.c | 25 ++++++++-----------------
1 file changed, 8 insertions(+), 17 deletions(-)
---
diff --git a/panels/background/cc-background-store.c b/panels/background/cc-background-store.c
index f351bb14d..26012976a 100644
--- a/panels/background/cc-background-store.c
+++ b/panels/background/cc-background-store.c
@@ -71,29 +71,12 @@ list_load_cb (GObject *source_object,
cc_background_xml_load_list_finish (res);
}
-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]