network: Convert class property to a virtual method
This commit is contained in:
parent
413f23ec99
commit
0106a4ab90
10 changed files with 71 additions and 26 deletions
|
@ -91,8 +91,7 @@ ce_page_8021x_security_new (NMConnection *connection,
|
|||
self = CE_PAGE_8021X_SECURITY (ce_page_new (CE_TYPE_PAGE_8021X_SECURITY,
|
||||
connection,
|
||||
client,
|
||||
"/org/gnome/control-center/network/8021x-security-page.ui",
|
||||
_("Security")));
|
||||
"/org/gnome/control-center/network/8021x-security-page.ui"));
|
||||
|
||||
self->box = GTK_BOX (gtk_builder_get_object (CE_PAGE (self)->builder, "box"));
|
||||
self->enable_8021x_switch = GTK_SWITCH (gtk_builder_get_object (CE_PAGE (self)->builder, "enable_8021x_switch"));
|
||||
|
@ -109,6 +108,12 @@ ce_page_8021x_security_new (NMConnection *connection,
|
|||
return CE_PAGE (self);
|
||||
}
|
||||
|
||||
static const gchar *
|
||||
ce_page_8021x_security_get_title (CEPage *page)
|
||||
{
|
||||
return _("Security");
|
||||
}
|
||||
|
||||
static gboolean
|
||||
ce_page_8021x_security_validate (CEPage *cepage, NMConnection *connection, GError **error)
|
||||
{
|
||||
|
@ -176,5 +181,6 @@ ce_page_8021x_security_class_init (CEPage8021xSecurityClass *security_class)
|
|||
/* virtual methods */
|
||||
object_class->dispose = dispose;
|
||||
|
||||
parent_class->get_title = ce_page_8021x_security_get_title;
|
||||
parent_class->validate = ce_page_8021x_security_validate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue