[gnome-control-center/wip/jsparber/background: 25/40] background: remove CcBackgroundStore constructer
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background: 25/40] background: remove CcBackgroundStore constructer
- Date: Tue, 6 Feb 2018 19:20:02 +0000 (UTC)
commit b057210f7527ec906e8268e02841d85affeb81b2
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 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]