network: Replace GObject boilerplate with modern macros

This commit is contained in:
Robert Ancell 2019-11-06 14:00:07 +13:00
parent 0106a4ab90
commit d327e20a10
18 changed files with 240 additions and 422 deletions

View file

@ -34,6 +34,18 @@
#include "ws-wpa-eap.h"
#include "ws-wpa-psk.h"
struct _CEPageSecurity
{
CEPage parent;
GtkBox *box;
GtkComboBox *security_combo;
GtkLabel *security_label;
GtkSizeGroup *group;
gboolean adhoc;
};
G_DEFINE_TYPE (CEPageSecurity, ce_page_security, CE_TYPE_PAGE)
enum {
@ -441,7 +453,7 @@ ce_page_security_new (NMConnection *connection,
NMUtilsSecurityType default_type = NMU_SEC_NONE;
NMSettingWirelessSecurity *sws;
self = CE_PAGE_SECURITY (ce_page_new (CE_TYPE_PAGE_SECURITY,
self = CE_PAGE_SECURITY (ce_page_new (ce_page_security_get_type (),
connection,
client,
"/org/gnome/control-center/network/security-page.ui"));