예제 #1
0
/*
 * 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_hbutton_box_init ()
{
    /* Initialise the GTK type */
    volatile GtkType type;
    type = gtk_hbutton_box_get_type ();

    /* Initialize the GbWidget structure */
    gb_widget_init_struct (&gbwidget);

    /* Fill in the pixmap struct & tooltip */
    gbwidget.pixmap_struct = hbuttonbox_xpm;
    gbwidget.tooltip = _("Horizontal Button Box");

    /* Fill in any functions that this GbWidget has */
    gbwidget.gb_widget_new = gb_hbutton_box_new;
    gbwidget.gb_widget_create_properties = gb_hbutton_box_create_properties;
    gbwidget.gb_widget_get_properties = gb_hbutton_box_get_properties;
    gbwidget.gb_widget_set_properties = gb_hbutton_box_set_properties;
    gbwidget.gb_widget_write_source = gb_hbutton_box_write_source;
    gbwidget.gb_widget_write_add_child_source = gb_hbutton_box_write_add_child_source;
    /*
       gbwidget.gb_widget_create_popup_menu = gb_hbutton_box_create_popup_menu;
     */

    return &gbwidget;
}
예제 #2
0
CLIP_DLLEXPORT GtkType
_gtk_type_hbutton_box()
{
   return gtk_hbutton_box_get_type();
}