[network-manager-applet/nma-0-9-8] 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/nma-0-9-8] editor: show a more helpful error message if no VPN plugins are installed
- Date: Tue, 4 Jun 2013 17:35:15 +0000 (UTC)
commit 06569719c88902dc9184d4d24b4e5f0769ececa5
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 f445edf..156e34a 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -928,6 +928,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));
@@ -938,9 +939,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]