#include "channel_list.h" struct _HRChannelListPrivate { GtkWidget* box1; GtkWidget* label1; GtkWidget* comboboxtext1; GtkWidget* scrolledwindow1; GtkWidget* treeview1; }; G_DEFINE_TYPE_WITH_PRIVATE (HRChannelList, hr_channel_list, GTK_TYPE_BOX); static void hr_channel_list_class_init (HRChannelListClass *k) { GtkWidgetClass* widget_class; widget_class = GTK_WIDGET_CLASS (k); gtk_widget_class_set_template_from_resource (widget_class, "/org/thoughtjacked/homerunner/channel_list.ui"); gtk_widget_class_bind_template_child_private (widget_class, HRChannelList, box1); gtk_widget_class_bind_template_child_private (widget_class, HRChannelList, label1); gtk_widget_class_bind_template_child_private (widget_class, HRChannelList, comboboxtext1); gtk_widget_class_bind_template_child_private (widget_class, HRChannelList, scrolledwindow1); gtk_widget_class_bind_template_child_private (widget_class, HRChannelList, treeview1); } static void hr_channel_list_init (HRChannelList *widget) { widget->priv = G_TYPE_INSTANCE_GET_PRIVATE (widget, HR_TYPE_CHANNEL_LIST, HRChannelListPrivate); gtk_widget_init_template (GTK_WIDGET (widget)); } GtkWidget * hr_channel_list_new () { return g_object_new (HR_TYPE_CHANNEL_LIST, NULL); }