summaryrefslogtreecommitdiff
path: root/xfconf
diff options
context:
space:
mode:
authorBrian Tarricone <brian@tarricone.org>2007-10-03 05:07:36 +0000
committerBrian Tarricone <brian@tarricone.org>2007-10-03 05:07:36 +0000
commitc0799ed2eb8616cd1e93bf263792d3301f3f670d (patch)
tree7e82562e35b2dee755632d1f85ae395e73f913d3 /xfconf
parent098c0f21b5945af02f17060959f2100b66dce9e8 (diff)
downloadxfconf-c0799ed2eb8616cd1e93bf263792d3301f3f670d.tar.gz
move channel init stuff out of _new() and into _init()
(Old svn revision: 26746)
Diffstat (limited to 'xfconf')
-rw-r--r--xfconf/xfconf-channel.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/xfconf/xfconf-channel.c b/xfconf/xfconf-channel.c
index d2aed17..b7e07a5 100644
--- a/xfconf/xfconf-channel.c
+++ b/xfconf/xfconf-channel.c
@@ -135,7 +135,10 @@ xfconf_channel_class_init(XfconfChannelClass *klass)
static void
xfconf_channel_init(XfconfChannel *instance)
{
-
+ DBusGProxy *proxy = _xfconf_get_dbus_g_proxy();
+ dbus_g_proxy_connect_signal(proxy, "Changed",
+ G_CALLBACK(xfconf_channel_property_changed),
+ instance, NULL);
}
static void
@@ -241,16 +244,9 @@ xfconf_channel_get_internal(XfconfChannel *channel,
XfconfChannel *
xfconf_channel_new(const gchar *channel_name)
{
- DBusGProxy *proxy = _xfconf_get_dbus_g_proxy();
- XfconfChannel *channel = g_object_new(XFCONF_TYPE_CHANNEL,
- "channel-name", channel_name,
- NULL);
-
- dbus_g_proxy_connect_signal(proxy, "Changed",
- G_CALLBACK(xfconf_channel_property_changed),
- channel, NULL);
-
- return channel;
+ return g_object_new(XFCONF_TYPE_CHANNEL,
+ "channel-name", channel_name,
+ NULL);
}
/**