keyfile: refactor GObject type creation

This commit is contained in:
Thomas Haller
2016-10-05 18:35:23 +02:00
parent 5d80a8a78b
commit 8b1411712a
8 changed files with 75 additions and 65 deletions

View File

@@ -346,7 +346,7 @@ setup_monitoring (NMSettingsPlugin *config)
GFile *file;
GFileMonitor *monitor;
if (nm_config_get_monitor_connection_files (nm_config_get ())) {
if (nm_config_get_monitor_connection_files (priv->config)) {
file = g_file_new_for_path (nms_keyfile_utils_get_path ());
monitor = g_file_monitor_directory (file, G_FILE_MONITOR_NONE, NULL, NULL);
g_object_unref (file);
@@ -586,7 +586,7 @@ constructed (GObject *object)
nm_log_warn (LOGD_SETTINGS, "keyfile: 'hostname' option is deprecated and has no effect");
}
GObject *
NMSKeyfilePlugin *
nms_keyfile_plugin_new (void)
{
return g_object_new (NMS_TYPE_KEYFILE_PLUGIN, NULL);