[network-manager-applet] editor: show a more helpful error message if no VPN plugins are installed
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] editor: show a more helpful error message if no VPN plugins are installed
- Date: Tue, 4 Jun 2013 17:32:51 +0000 (UTC)
commit 8b8cadfb6cef877a9d2c4ed8507a5997604c8796
Author: Dan Williams <dcbw redhat com>
Date: Tue Jun 4 12:32:36 2013 -0500
editor: show a more helpful error message if no VPN plugins are installed
src/connection-editor/nm-connection-list.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 15b5c25..9ae92eb 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -919,6 +919,7 @@ void
nm_connection_list_create (NMConnectionList *self, GType ctype, const char *detail)
{
ConnectionTypeData *types;
+ char *error_msg;
int i;
g_return_if_fail (NM_IS_CONNECTION_LIST (self));
@@ -929,9 +930,13 @@ nm_connection_list_create (NMConnectionList *self, GType ctype, const char *deta
break;
}
if (!types[i].name) {
- nm_connection_editor_error (NULL,
- _("Error creating connection"),
- _("Don't know how to create '%s' connections"), g_type_name
(ctype));
+ if (ctype == NM_TYPE_SETTING_VPN)
+ error_msg = g_strdup (_("No VPN plugins are installed."));
+ else
+ error_msg = g_strdup_printf (_("Don't know how to create '%s' connections"),
g_type_name (ctype));
+
+ nm_connection_editor_error (NULL, _("Error creating connection"), error_msg);
+ g_free (error_msg);
} else {
new_connection_of_type (GTK_WINDOW (self->dialog),
detail,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]