[gnome-control-center/wip/benzea/wifi-panel: 7/9] wifi: Add set_checked function to connection row



commit 360da633f3719594d46f38a7d3da620783bcfd4a
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 ba54fa98b8..68d49850aa 100644
--- a/panels/network/cc-wifi-connection-row.c
+++ b/panels/network/cc-wifi-connection-row.c
@@ -514,6 +514,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 fa0c2ce74b..4be2305235 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]