[network-manager-applet/polkit1] settings: set bus on construction
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet/polkit1] settings: set bus on construction
- Date: Tue, 11 Aug 2009 05:04:36 +0000 (UTC)
commit 7557236cccba08514be5535415a27ca3d42fe059
Author: Dan Williams <dcbw redhat com>
Date: Tue Aug 11 00:03:13 2009 -0500
settings: set bus on construction
src/gconf-helpers/nma-gconf-settings.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/gconf-helpers/nma-gconf-settings.c b/src/gconf-helpers/nma-gconf-settings.c
index 2aabe58..2776703 100644
--- a/src/gconf-helpers/nma-gconf-settings.c
+++ b/src/gconf-helpers/nma-gconf-settings.c
@@ -52,14 +52,10 @@ static guint signals[LAST_SIGNAL] = { 0 };
NMAGConfSettings *
nma_gconf_settings_new (DBusGConnection *bus)
{
- NMAGConfSettings *self;
-
- self = (NMAGConfSettings *) g_object_new (NMA_TYPE_GCONF_SETTINGS,
+ return (NMAGConfSettings *) g_object_new (NMA_TYPE_GCONF_SETTINGS,
NM_SETTINGS_SERVICE_SCOPE, NM_CONNECTION_SCOPE_USER,
+ NM_SETTINGS_SERVICE_BUS, bus,
NULL);
- if (self && bus)
- g_object_set (G_OBJECT (self), NM_SETTINGS_SERVICE_BUS, bus, NULL);
- return self;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]