[network-manager-applet] libnm-gtk: fix device description for virtual devices



commit d4c6527cfb8aaf559d3801430c7efd15adb53916
Author: Dan Williams <dcbw redhat com>
Date:   Mon Jun 10 16:42:18 2013 -0500

    libnm-gtk: fix device description for virtual devices
    
    Virtual devices don't have udev tags since they have no hardware, thus
    we'll get NULL vendor and models for them.  But they won't have an
    IP interface name either when they aren't being used, so we need to
    use the actual interface name instead.

 src/libnm-gtk/nm-ui-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libnm-gtk/nm-ui-utils.c b/src/libnm-gtk/nm-ui-utils.c
index e03ba85..4d28bae 100644
--- a/src/libnm-gtk/nm-ui-utils.c
+++ b/src/libnm-gtk/nm-ui-utils.c
@@ -151,7 +151,7 @@ get_description (NMDevice *device)
        if (!dev_product || !dev_vendor) {
                g_object_set_data (G_OBJECT (device),
                                   DESCRIPTION_TAG,
-                                  (char *) nm_device_get_ip_iface (device));
+                                  (char *) nm_device_get_iface (device));
                return;
        }
 


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