[network-manager-applet/bg/ip-tunnel-bgo774272: 1/2] editor: consider G_TYPE_NONE as 'all devices' in _get_device_list()



commit af773cb6e91b1a7f1fc89c3321ea4232e1e66273
Author: Beniamino Galvani <bgalvani redhat com>
Date:   Fri Nov 11 15:18:43 2016 +0100

    editor: consider G_TYPE_NONE as 'all devices' in _get_device_list()

 src/connection-editor/ce-page.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/connection-editor/ce-page.c b/src/connection-editor/ce-page.c
index 947e80c..6a5b21b 100644
--- a/src/connection-editor/ce-page.c
+++ b/src/connection-editor/ce-page.c
@@ -360,7 +360,8 @@ _get_device_list (CEPage *self,
                char *mac = NULL;
                char *item;
 
-               if (!G_TYPE_CHECK_INSTANCE_TYPE (dev, device_type))
+               if (   device_type != G_TYPE_NONE
+                   && !G_TYPE_CHECK_INSTANCE_TYPE (dev, device_type))
                        continue;
 
                if (device_type == NM_TYPE_DEVICE_BT)


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