[gnome-control-center/wip/benzea/wifi-panel: 21/24] wifi: Add set_checked function to connection row
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/benzea/wifi-panel: 21/24] wifi: Add set_checked function to connection row
- Date: Mon, 7 Jan 2019 14:31:18 +0000 (UTC)
commit eec784102712a1ae72026637cb6fe17b6b475796
Author: Benjamin Berg <bberg redhat com>
Date: Sat Dec 15 17:50:24 2018 +0100
wifi: Add set_checked function to connection row
panels/network/cc-wifi-connection-row.c | 10 ++++++++++
panels/network/cc-wifi-connection-row.h | 3 +++
2 files changed, 13 insertions(+)
---
diff --git a/panels/network/cc-wifi-connection-row.c b/panels/network/cc-wifi-connection-row.c
index 3d2b3f614..3feec0d6e 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -527,6 +527,16 @@ cc_wifi_connection_row_get_connection (CcWifiConnectionRow *row)
return row->connection;
}
+void
+cc_wifi_connection_row_set_checked (CcWifiConnectionRow *row,
+ gboolean value)
+{
+ g_return_if_fail (CC_WIFI_CONNECTION_ROW (row));
+
+ row->checked = value;
+ g_object_notify_by_pspec (G_OBJECT (row), props[PROP_CHECKED]);
+}
+
NMAccessPoint*
cc_wifi_connection_row_best_access_point (CcWifiConnectionRow *row)
{
diff --git a/panels/network/cc-wifi-connection-row.h b/panels/network/cc-wifi-connection-row.h
index fa0c2ce74..4be230523 100644
--- a/panels/network/cc-wifi-connection-row.h
+++ b/panels/network/cc-wifi-connection-row.h
@@ -38,6 +38,9 @@ NMDeviceWifi *cc_wifi_connection_row_get_device (CcWifiConnectio
const GPtrArray *cc_wifi_connection_row_get_access_points (CcWifiConnectionRow *row);
NMConnection *cc_wifi_connection_row_get_connection (CcWifiConnectionRow *row);
+void cc_wifi_connection_row_set_checked (CcWifiConnectionRow *row,
+ gboolean value);
+
NMAccessPoint *cc_wifi_connection_row_best_access_point (CcWifiConnectionRow *row);
void cc_wifi_connection_row_add_access_point (CcWifiConnectionRow *row,
NMAccessPoint *ap);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]