>From 89e21415733788ff446ee69663b0266870c176f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Wed, 4 Sep 2013 13:34:05 +0200 Subject: [PATCH 2/3] libnm-gtk: recognize Team as a valid virtual device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jiří Klimeš --- src/libnm-gtk/nm-ui-utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libnm-gtk/nm-ui-utils.c b/src/libnm-gtk/nm-ui-utils.c index 4d28bae..69ede41 100644 --- a/src/libnm-gtk/nm-ui-utils.c +++ b/src/libnm-gtk/nm-ui-utils.c @@ -335,6 +335,8 @@ nma_utils_get_device_type_name (NMDevice *device) return _("InfiniBand"); case NM_DEVICE_TYPE_BOND: return _("Bond"); + case NM_DEVICE_TYPE_TEAM: + return _("Team"); case NM_DEVICE_TYPE_BRIDGE: return _("Bridge"); case NM_DEVICE_TYPE_VLAN: @@ -353,6 +355,7 @@ get_device_type_name_with_iface (NMDevice *device) switch (nm_device_get_device_type (device)) { case NM_DEVICE_TYPE_BOND: + case NM_DEVICE_TYPE_TEAM: case NM_DEVICE_TYPE_BRIDGE: case NM_DEVICE_TYPE_VLAN: return g_strdup_printf ("%s (%s)", type_name, nm_device_get_iface (device)); @@ -557,6 +560,8 @@ nma_utils_get_connection_device_name (NMConnection *connection) if (!strcmp (type, NM_SETTING_BOND_SETTING_NAME)) display_type = _("Bond"); + else if (!strcmp (type, NM_SETTING_TEAM_SETTING_NAME)) + display_type = _("Team"); else if (!strcmp (type, NM_SETTING_BRIDGE_SETTING_NAME)) display_type = _("Bridge"); else if (!strcmp (type, NM_SETTING_VLAN_SETTING_NAME)) -- 1.7.11.7