[network-manager-applet: 1/3] 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: 1/3] editor: consider G_TYPE_NONE as 'all devices' in _get_device_list()
- Date: Thu, 1 Dec 2016 13:24:35 +0000 (UTC)
commit 1483f0107f1cbb2e07dd9ce1e581ac5a57ce0188
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]