network: Split the proxy parts from the .c and .ui file
A source file with 4k lines of code is not understandable, and the glade file was becoming quite a challenge for glade. To add more features we need to split things up just to keep them maintainable. This is the first patch that just splits out the proxy bits. Other device types will follow in the next few days.
This commit is contained in:
parent
298489ee16
commit
c26e14518e
10 changed files with 974 additions and 715 deletions
|
@ -110,6 +110,26 @@ net_object_set_title (NetObject *object, const gchar *title)
|
|||
object->priv->title = g_strdup (title);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
net_object_add_to_notebook (NetObject *object,
|
||||
GtkNotebook *notebook,
|
||||
GtkSizeGroup *heading_size_group)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
NetObjectClass *klass = NET_OBJECT_GET_CLASS (object);
|
||||
if (klass->add_to_notebook != NULL) {
|
||||
widget = klass->add_to_notebook (object,
|
||||
notebook,
|
||||
heading_size_group);
|
||||
g_object_set_data_full (G_OBJECT (widget),
|
||||
"NetObject::id",
|
||||
g_strdup (object->priv->id),
|
||||
g_free);
|
||||
return widget;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* net_object_get_property:
|
||||
**/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue