Ejemplo n.º 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_radio_tool_button_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_radio_tool_button_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = radiotoolbutton_xpm;
  gbwidget.tooltip = _("Toolbar Radio Button");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_radio_tool_button_new;
  gbwidget.gb_widget_create_properties	= gb_radio_tool_button_create_properties;
  gbwidget.gb_widget_get_properties	= gb_radio_tool_button_get_properties;
  gbwidget.gb_widget_set_properties	= gb_radio_tool_button_set_properties;
  gbwidget.gb_widget_write_source	= gb_radio_tool_button_write_source;
  gbwidget.gb_widget_destroy		= gb_tool_button_destroy;
/*
  gbwidget.gb_widget_create_popup_menu	= gb_radio_tool_button_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 2
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_font_selection_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_font_selection_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = fontsel_xpm;
  gbwidget.tooltip = _("Font Selection");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_font_selection_new;
  gbwidget.gb_widget_create_properties	= gb_font_selection_create_properties;
  gbwidget.gb_widget_get_properties	= gb_font_selection_get_properties;
  gbwidget.gb_widget_set_properties	= gb_font_selection_set_properties;
/*
  gbwidget.gb_widget_create_popup_menu	= gb_font_selection_create_popup_menu;
*/
  gbwidget.gb_widget_write_source	= gb_font_selection_write_source;

  return &gbwidget;
}
Ejemplo n.º 3
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_menu_item_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_menu_item_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = menuitem_xpm;
  gbwidget.tooltip = _("Menu Item");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_menu_item_new;
  gbwidget.gb_widget_add_child = gb_menu_item_add_child;
  gbwidget.gb_widget_create_properties = gb_menu_item_create_properties;
  gbwidget.gb_widget_get_properties = gb_menu_item_get_properties;
  gbwidget.gb_widget_set_properties = gb_menu_item_set_properties;
  gbwidget.gb_widget_create_popup_menu = gb_menu_item_create_popup_menu;
  gbwidget.gb_widget_write_source = gb_menu_item_write_source;
  gbwidget.gb_widget_write_add_child_source = gb_menu_item_write_add_child_source;
  gbwidget.gb_widget_destroy = gb_menu_item_destroy;

  return &gbwidget;
}
Ejemplo n.º 4
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_gnome_icon_entry_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gnome_icon_entry_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_iconentry_xpm;
  gbwidget.tooltip = _("Gnome Icon Entry");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_icon_entry_new;
  gbwidget.gb_widget_create_properties	= gb_gnome_icon_entry_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_icon_entry_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_icon_entry_set_properties;
  gbwidget.gb_widget_write_source	= gb_gnome_icon_entry_write_source;
/*
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_icon_entry_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 5
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_gnome_message_box_init ()
{
  /* Initialise the GTK type */
  gnome_message_box_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_messagebox_xpm;
  gbwidget.tooltip = _("Gnome Message Box");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_message_box_new;
  gbwidget.gb_widget_create_properties	= gb_gnome_message_box_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_message_box_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_message_box_set_properties;
  gbwidget.gb_widget_get_child		= gb_gnome_message_box_get_child;
  gbwidget.gb_widget_write_source	= gb_gnome_message_box_write_source;
/*
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_message_box_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 6
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_custom_init ()
{
    /* Initialise the GTK type. We don't need this. */
    /* gtk_custom_get_type(); */

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

    /* Fill in the pixmap struct & tooltip */
    gbwidget.pixmap_struct = custom_xpm;
    gbwidget.tooltip = _("Custom Widget");

    /* Fill in any functions that this GbWidget has */
    gbwidget.gb_widget_new		= gb_custom_new;
    gbwidget.gb_widget_create_properties	= gb_custom_create_properties;
    gbwidget.gb_widget_get_properties	= gb_custom_get_properties;
    gbwidget.gb_widget_set_properties	= gb_custom_set_properties;
    gbwidget.gb_widget_write_source	= gb_custom_write_source;
    gbwidget.gb_widget_destroy		= gb_custom_destroy;
    /*
      gbwidget.gb_widget_create_popup_menu	= gb_custom_create_popup_menu;
    */

    return &gbwidget;
}
Ejemplo n.º 7
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_tclist_init ()
{
  /* Initialise the GTK type */
  tclist_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = tclist_xpm;
  gbwidget.tooltip = _("Columned Tree (C++)");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_tclist_new;
  gbwidget.gb_widget_create_properties = gb_tclist_create_properties;
  gbwidget.gb_widget_get_properties = gb_tclist_get_properties;
  gbwidget.gb_widget_set_properties = gb_tclist_set_properties;
  gbwidget.gb_widget_write_source = gb_tclist_write_source;
/*
   gbwidget.gb_widget_create_popup_menu = gb_tclist_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 8
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_combo_init ()
{
  /* Initialise the GTK type */
  gtk_combo_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = combo_xpm;
  gbwidget.tooltip = _("Combo Box");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new               = gb_combo_new;
  gbwidget.gb_widget_create_properties = gb_combo_create_properties;
  gbwidget.gb_widget_get_properties = gb_combo_get_properties;
  gbwidget.gb_widget_set_properties = gb_combo_set_properties;
  gbwidget.gb_widget_get_child = gb_combo_get_child;
  gbwidget.gb_widget_write_source = gb_combo_write_source;
/*
   gbwidget.gb_widget_create_popup_menu = gb_combo_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 9
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_tool_item_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_tool_item_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = toolitem_xpm;
  gbwidget.tooltip = _("Toolbar Item");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_create_properties	= gb_tool_item_create_properties;
  gbwidget.gb_widget_get_properties	= gb_tool_item_get_properties;
  gbwidget.gb_widget_set_properties	= gb_tool_item_set_properties;
  gbwidget.gb_widget_write_source	= gb_tool_item_write_source;
/*
  gbwidget.gb_widget_new		= gb_tool_item_new;
  gbwidget.gb_widget_create_popup_menu	= gb_tool_item_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 10
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_scrolled_window_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_scrolled_window_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = scrolledwindow_xpm;
  gbwidget.tooltip = _("Scrolled Window");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_scrolled_window_new;
  gbwidget.gb_widget_create_properties = gb_scrolled_window_create_properties;
  gbwidget.gb_widget_get_properties = gb_scrolled_window_get_properties;
  gbwidget.gb_widget_set_properties = gb_scrolled_window_set_properties;
  gbwidget.gb_widget_write_source = gb_scrolled_window_write_source;
/*
   gbwidget.gb_widget_create_popup_menu = gb_scrolled_window_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 11
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_gnome_db_data_source_selector_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gnome_db_data_source_selector_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_db_sourcesel_xpm;
  gbwidget.tooltip = _("Data Source Selector");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_write_source	= gb_gnome_db_data_source_selector_write_source;
/*
  gbwidget.gb_widget_new		= gb_gnome_db_data_source_selector_new;
  gbwidget.gb_widget_create_properties	= gb_gnome_db_data_source_selector_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_db_data_source_selector_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_db_data_source_selector_set_properties;
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_db_data_source_selector_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 12
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_option_menu_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_option_menu_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = optionmenu_xpm;
  gbwidget.tooltip = _("Option Menu");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_option_menu_new;
  gbwidget.gb_widget_create_properties = gb_option_menu_create_properties;
  gbwidget.gb_widget_get_properties = gb_option_menu_get_properties;
  gbwidget.gb_widget_set_properties = gb_option_menu_set_properties;
  gbwidget.gb_widget_add_child = gb_option_menu_add_child;
  gbwidget.gb_widget_write_source = gb_option_menu_write_source;
  gbwidget.gb_widget_write_add_child_source = gb_option_menu_write_add_child_source;
/*
   gbwidget.gb_widget_create_popup_menu = gb_option_menu_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 13
0
static GbWidget *
control_get_gb_widget (const char *obj_id)
{
  GbWidget *gbwidget;

  /* Check if this GbWidget is already registered. */
  gbwidget = gb_widget_lookup_class (obj_id);

  /* If it isn't registered, create it and register it. */
  if (!gbwidget)
    {
      gbwidget = g_new (GbWidget, 1);

      gb_widget_init_struct (gbwidget);

      /* Fill in the pixmap struct & tooltip */
      gbwidget->pixmap_struct = gnome_control_xpm;
      gbwidget->tooltip       = NULL;
	
      /* Fill in any functions that this Gbwidget has */
      gbwidget->gb_widget_new = NULL;
      gbwidget->gb_widget_create_properties = gb_bonobo_control_create_properties;
      gbwidget->gb_widget_get_properties = gb_bonobo_control_get_properties;
      gbwidget->gb_widget_set_properties = gb_bonobo_control_set_properties;
      gbwidget->gb_widget_write_source	 = gb_bonobo_control_write_source;

#if 0
      g_print ("Registering Bonobo control GbWidget: %s\n", obj_id);
#endif
      gb_widget_register_gbwidget (obj_id, gbwidget);
    }
	
  return gbwidget;
}
Ejemplo n.º 14
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_gnome_app_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gnome_app_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_app_xpm;
  gbwidget.tooltip = _("Gnome Application Window");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_app_new;
  gbwidget.gb_widget_add_child		= gb_gnome_app_add_child;
  gbwidget.gb_widget_get_child		= gb_gnome_app_get_child;
  gbwidget.gb_widget_create_properties	= gb_gnome_app_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_app_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_app_set_properties;
  gbwidget.gb_widget_write_source	= gb_gnome_app_write_source;
  gbwidget.gb_widget_write_add_child_source = gb_gnome_app_write_add_child_source;
  gbwidget.gb_widget_destroy = gb_window_destroy;
/*
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_app_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 15
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_vbutton_box_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_vbutton_box_get_type ();

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

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

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_vbutton_box_new;
  gbwidget.gb_widget_create_properties = gb_vbutton_box_create_properties;
  gbwidget.gb_widget_get_properties = gb_vbutton_box_get_properties;
  gbwidget.gb_widget_set_properties = gb_vbutton_box_set_properties;
  gbwidget.gb_widget_write_source = gb_vbutton_box_write_source;
/*
   gbwidget.gb_widget_create_popup_menu = gb_vbutton_box_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 16
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_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;
}
Ejemplo n.º 17
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_hpaned_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_hpaned_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = hpaned_xpm;
  gbwidget.tooltip = _("Horizontal Panes");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_hpaned_new;
  gbwidget.gb_widget_create_properties = gb_hpaned_create_properties;
  gbwidget.gb_widget_get_properties = gb_hpaned_get_properties;
  gbwidget.gb_widget_set_properties = gb_hpaned_set_properties;
  gbwidget.gb_widget_create_child_properties = gb_paned_create_child_properties;
  gbwidget.gb_widget_get_child_properties = gb_paned_get_child_properties;
  gbwidget.gb_widget_set_child_properties = gb_paned_set_child_properties;
/*
   gbwidget.gb_widget_create_popup_menu = gb_hpaned_create_popup_menu;
 */
  gbwidget.gb_widget_write_source = gb_hpaned_write_source;
  gbwidget.gb_widget_write_add_child_source = gb_paned_write_add_child_source;

  return &gbwidget;
}
Ejemplo n.º 18
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_gnome_db_export_init ()
{
  /* Initialise the GTK type */
  gnome_db_export_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_db_export_xpm;
  gbwidget.tooltip = _("Database export");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_db_export_new;
  gbwidget.gb_widget_write_source	= gb_gnome_db_export_write_source;
/*
  gbwidget.gb_widget_create_properties	= gb_gnome_db_export_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_db_export_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_db_export_set_properties;
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_db_export
	_create_popup_menu;
*/

  return &gbwidget;
}
Ejemplo n.º 19
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_drawing_area_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_drawing_area_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = drawingarea_xpm;
  gbwidget.tooltip = _("Drawing Area");

  /* Fill in any functions that this GbWidget has */
/*
   gbwidget.gb_widget_new               = gb_drawing_area_new;
   gbwidget.gb_widget_create_properties = gb_drawing_area_create_properties;
   gbwidget.gb_widget_get_properties    = gb_drawing_area_get_properties;
   gbwidget.gb_widget_set_properties    = gb_drawing_area_set_properties;
   gbwidget.gb_widget_create_popup_menu = gb_drawing_area_create_popup_menu;
 */
  gbwidget.gb_widget_write_source = gb_drawing_area_write_source;

  return &gbwidget;
}
Ejemplo n.º 20
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_gnome_druid_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gnome_druid_get_type();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = gnome_druid_xpm;
  gbwidget.tooltip = _("Druid");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_druid_new;
  gbwidget.gb_widget_add_child          = gb_gnome_druid_add_child;
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_druid_create_popup_menu;
  gbwidget.gb_widget_write_source	= gb_gnome_druid_write_source;
  gbwidget.gb_widget_write_add_child_source = gb_gnome_druid_write_add_child_source;
  gbwidget.gb_widget_create_properties	= gb_gnome_druid_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_druid_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_druid_set_properties;

  return &gbwidget;
}
Ejemplo n.º 21
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_accel_label_init ()
{
    /* Initialise the GTK type */
    volatile GtkType type;
    type = gtk_accel_label_get_type();

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

    /* Fill in the pixmap struct & tooltip */
    gbwidget.pixmap_struct = accellabel_xpm;
    gbwidget.tooltip = _("Label with Accelerator");

    /* Fill in any functions that this GbWidget has */
    gbwidget.gb_widget_new		= gb_accel_label_new;
    gbwidget.gb_widget_create_properties	= gb_accel_label_create_properties;
    gbwidget.gb_widget_get_properties	= gb_accel_label_get_properties;
    gbwidget.gb_widget_set_properties	= gb_accel_label_set_properties;
    gbwidget.gb_widget_write_source	= gb_accel_label_write_source;
    /*
      gbwidget.gb_widget_create_popup_menu	= gb_accel_label_create_popup_menu;
    */

    return &gbwidget;
}
Ejemplo n.º 22
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_image_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gtk_image_get_type ();

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

  /* Fill in the pixmap struct & tooltip */
  gbwidget.pixmap_struct = image_xpm;
  gbwidget.tooltip = _("Image");

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_image_new;
  gbwidget.gb_widget_create_properties = gb_image_create_properties;
  gbwidget.gb_widget_get_properties = gb_image_get_properties;
  gbwidget.gb_widget_set_properties = gb_image_set_properties;
  gbwidget.gb_widget_write_source = gb_image_write_source;
  gbwidget.gb_widget_destroy = gb_image_destroy;
/*
   gbwidget.gb_widget_create_popup_menu = gb_image_create_popup_menu;
 */

  return &gbwidget;
}
Ejemplo n.º 23
0
/*
 * Initializes the GbWidget structure.
 */
GbWidget *
gb_bonobo_control_init ()
{
	/* Initialise the GTK type */
	volatile GtkType type;
	type = BONOBO_TYPE_WIDGET;
	
	gb_widget_init_struct (&gbwidget);

	gbwidget.pixmap_struct = gnome_control_xpm;
	gbwidget.tooltip       = _("Bonobo Control");

	gbwidget.gb_widget_new               = gb_bonobo_control_new;

	return &gbwidget;
}
Ejemplo n.º 24
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_gnome_db_table_editor_init ()
{
  /* Initialise the GTK type */
  volatile GtkType type;
  type = gnome_db_table_editor_get_type();

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

  /* Fill in the pixmap struct & tooltip */
   gbwidget.pixmap_struct =gnome_db_table_editor_xpm; 
  gbwidget.tooltip = _("Table Editor "); /* Please FIXME*/

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new		= gb_gnome_db_table_editor_new;
  gbwidget.gb_widget_write_source	= gb_gnome_db_table_editor_write_source;
  gbwidget.gb_widget_create_properties	= gb_gnome_db_table_editor_create_properties;
  gbwidget.gb_widget_get_properties	= gb_gnome_db_table_editor_get_properties;
  gbwidget.gb_widget_set_properties	= gb_gnome_db_table_editor_set_properties;
  gbwidget.gb_widget_create_popup_menu	= gb_gnome_db_table_editor_create_popup_menu;

  return &gbwidget;
}