libnm-glib: initialize NMRemoteSettings in nm_remote_settings_new() (rh #806664)

The object was not initialized after creation in nm_remote_settings_new(). This
was a regression caused by 762df85234.
This commit is contained in:
Jiří Klimeš 2012-03-27 22:36:55 +02:00
parent 876f318ee8
commit dd0460697c

View file

@ -728,7 +728,12 @@ properties_changed_cb (DBusGProxy *proxy,
NMRemoteSettings *
nm_remote_settings_new (DBusGConnection *bus)
{
return g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
NMRemoteSettings *settings;
settings = g_object_new (NM_TYPE_REMOTE_SETTINGS, NM_REMOTE_SETTINGS_BUS, bus, NULL);
_nm_remote_settings_ensure_inited (settings);
return settings;
}
static void