[network-manager-applet] gconf: return correct error on connection add failure



commit 447befc06fcfcb13322deb66bcdc9067bda0915b
Author: Jirka Klimes <jklimes redhat com>
Date:   Tue Jan 19 22:39:20 2010 -0800

    gconf: return correct error on connection add failure

 src/gconf-helpers/nma-gconf-settings.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-helpers/nma-gconf-settings.c b/src/gconf-helpers/nma-gconf-settings.c
index 986d947..f9a4f81 100644
--- a/src/gconf-helpers/nma-gconf-settings.c
+++ b/src/gconf-helpers/nma-gconf-settings.c
@@ -190,8 +190,9 @@ add_connection (NMSettingsService *settings,
 	 */
 	if (context) {
 		GError *error;
+		GQuark domain = g_quark_from_string("org.freedesktop.NetworkManagerSettings.AddFailed");
 
-		error = g_error_new (0, 0, "%s: adding connections via D-Bus is not (yet) supported", __func__);
+		error = g_error_new (domain, 0, "%s: adding connections via D-Bus is not (yet) supported", __func__);
 		callback (NM_SETTINGS_INTERFACE (settings), error, user_data);
 		g_error_free (error);
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]