[network-manager-applet/bg/ip-tunnel-bgo774272: 1/2] editor: consider G_TYPE_NONE as 'all devices' in _get_device_list()
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/bg/ip-tunnel-bgo774272: 1/2] editor: consider G_TYPE_NONE as 'all devices' in _get_device_list()
- Date: Thu, 1 Dec 2016 09:29:33 +0000 (UTC)
commit 798d18009e5e0ef4d394c8571aaa35b89ee12ab2
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]