network: Get connection editor root widget from a virtual method

This commit is contained in:
Robert Ancell 2019-11-06 14:55:12 +13:00
parent f5949160c3
commit eb4e124b04
19 changed files with 134 additions and 64 deletions

View file

@ -345,7 +345,7 @@ update_sensitivity (NetConnectionEditor *self)
}
for (l = self->pages; l; l = l->next) {
widget = ce_page_get_page (CE_PAGE (l->data));
widget = ce_page_get_widget (CE_PAGE (l->data));
gtk_widget_set_sensitive (widget, sensitive);
}
}
@ -417,7 +417,7 @@ page_initialized (NetConnectionEditor *self, GError *error, CEPage *page)
GList *children, *l;
gint i;
widget = ce_page_get_page (page);
widget = ce_page_get_widget (page);
position = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (page), "position"));
g_object_set_data (G_OBJECT (widget), "position", GINT_TO_POINTER (position));
children = gtk_container_get_children (GTK_CONTAINER (self->notebook));