/* * Initializes the GbWidget structure. * I've placed this at the end of the file so we don't have to include * declarations of all the functions. */ GbWidget * gb_vbox_init () { /* Initialise the GTK type */ gtk_vbox_get_type (); /* Initialize the GbWidget structure */ gb_widget_init_struct (&gbwidget); /* Fill in the pixmap struct & tooltip */ gbwidget.pixmap_struct = vbox_xpm; gbwidget.tooltip = _("Vertical Box"); /* Fill in any functions that this GbWidget has */ gbwidget.gb_widget_new = gb_vbox_new; gbwidget.gb_widget_create_properties = gb_vbox_create_properties; gbwidget.gb_widget_get_properties = gb_vbox_get_properties; gbwidget.gb_widget_set_properties = gb_vbox_set_properties; gbwidget.gb_widget_write_source = gb_vbox_write_source; gbwidget.gb_widget_create_child_properties = gb_box_create_child_properties; gbwidget.gb_widget_get_child_properties = gb_box_get_child_properties; gbwidget.gb_widget_set_child_properties = gb_box_set_child_properties; gbwidget.gb_widget_create_popup_menu = gb_box_create_popup_menu; gbwidget.gb_widget_write_add_child_source = gb_box_write_add_child_source; return &gbwidget; }
GType gb_view_get_type (void) { static GType view_type = 0; if (!view_type) { static GTypeInfo view_info = { sizeof (gbViewClass), NULL, NULL, (GClassInitFunc) gb_view_class_init, NULL, NULL, sizeof (gbView), 0, (GInstanceInitFunc) gb_view_init, }; view_type = g_type_register_static (gtk_vbox_get_type (), "gbView", &view_info, 0); } return view_type; }
static void gtk_vbox_add_layoutable_interface () { static const GInterfaceInfo layoutable_info = { (GInterfaceInitFunc) gtk_vbox_layoutable_init, NULL, NULL }; g_type_add_interface_static (gtk_vbox_get_type (), GTK_TYPE_LAYOUTABLE, &layoutable_info); }
guint envelope_box_get_type() { static guint envelope_box_type = 0; if (!envelope_box_type) { GtkTypeInfo envelope_box_info = { "EnvelopeBox", sizeof(EnvelopeBox), sizeof(EnvelopeBoxClass), (GtkClassInitFunc) envelope_box_class_init, (GtkObjectInitFunc) envelope_box_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL, }; envelope_box_type = gtk_type_unique(gtk_vbox_get_type (), &envelope_box_info); } return envelope_box_type; }
GtkType vdt_get_type () { static guint vdt_type = 0; if(!vdt_type) { GtkTypeInfo vdt_info = { "Vdt", sizeof (Vdt), sizeof (VdtClass), (GtkClassInitFunc) vdt_class_init, (GtkObjectInitFunc) vdt_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; vdt_type = gtk_type_unique (gtk_vbox_get_type (), &vdt_info); } return vdt_type; }
int TPCCTableProps_get_type (void) { static guint tld_type = 0; if (!tld_type) { GtkTypeInfo tld_info = { "TPCCTableProps", sizeof (TPCCTableProps), sizeof (TPCCTablePropsClass), (GtkClassInitFunc) TPCCTableProps_class_init, (GtkObjectInitFunc) TPCCTableProps_init, NULL, NULL }; tld_type = gtk_type_unique (gtk_vbox_get_type (), &tld_info); } return tld_type; }
GtkType foo_get_type () { static guint foo_type = 0; if(!foo_type) { GtkTypeInfo foo_info = { "Foo", sizeof (Foo), sizeof (FooClass), (GtkClassInitFunc) foo_class_init, (GtkObjectInitFunc) foo_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; foo_type = gtk_type_unique (gtk_vbox_get_type (), &foo_info); } return foo_type; }
GtkType triage_get_type () { static guint triage_type = 0; if(!triage_type) { GtkTypeInfo triage_info = { "Triage", sizeof (Triage), sizeof (TriageClass), (GtkClassInitFunc) triage_class_init, (GtkObjectInitFunc) triage_init, (GtkArgSetFunc) NULL, (GtkArgGetFunc) NULL }; triage_type = gtk_type_unique (gtk_vbox_get_type (), &triage_info); } return triage_type; }
int ArrayParams_get_type (void) { static guint tld_type = 0; if (!tld_type) { GtkTypeInfo tld_info = { "ArrayParams", sizeof (ArrayParams), sizeof (ArrayParamsClass), (GtkClassInitFunc) ArrayParams_class_init, (GtkObjectInitFunc) ArrayParams_init, NULL, NULL }; tld_type = gtk_type_unique (gtk_vbox_get_type (), &tld_info); } return tld_type; }
vdt_type = gtk_type_unique (gtk_vbox_get_type (), &vdt_info); } return vdt_type; } static void vdt_class_init (VdtClass *class) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; object_class = (GtkObjectClass*) class; widget_class = (GtkWidgetClass*) class; parent_class = gtk_type_class (gtk_vbox_get_type ()); object_class->destroy = vdt_destroy; } GtkWidget* vdt_new (Web100Obj *web100obj, char *varname) { Vdt *vdt = gtk_type_new (vdt_get_type ()); vdt_construct (vdt, web100obj, varname); return GTK_WIDGET (vdt); } static void vdt_construct (Vdt *vdt, Web100Obj *web100obj, char *varname) {