Example #1
0
void
theme_init(GtkThemeEngine * engine)
{
  GtkRangeClass *rangeclass;
  GtkCheckButtonClass *checkbuttonclass;
  GtkCheckButtonClass *radiobuttonclass;

  /*
  g_print("theme_init\n");
  */
  engine->parse_rc_style = theme_parse_rc_style;
  engine->merge_rc_style = theme_merge_rc_style;
  engine->rc_style_to_style = theme_rc_style_to_style;
  engine->duplicate_style = theme_duplicate_style;
  engine->realize_style = theme_realize_style;
  engine->unrealize_style = theme_unrealize_style;
  engine->destroy_rc_style = theme_destroy_rc_style;
  engine->destroy_style = theme_destroy_style;
  engine->set_background = theme_set_background;

  rangeclass = (GtkRangeClass *)gtk_type_class(gtk_range_get_type());
  rangeclass->slider_width = 11;
  rangeclass->stepper_size = 11;
  rangeclass->min_slider_size = 15;

  radiobuttonclass = (GtkCheckButtonClass*)gtk_type_class (gtk_radio_button_get_type ());
  radiobuttonclass->indicator_size = 12;
  
  checkbuttonclass = (GtkCheckButtonClass*)gtk_type_class (gtk_check_button_get_type ());
  checkbuttonclass->indicator_size = 10;
}
Example #2
0
File: testrc.c Project: BYC/gtk
static void
load_types (void)
{
  volatile GType type;

  type = gtk_radio_button_get_type ();
  type = gtk_label_get_type ();
}
Example #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_radio_button_init ()
{
  /* Initialise the GTK type */
  gtk_radio_button_get_type ();

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

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

  /* Fill in any functions that this GbWidget has */
  gbwidget.gb_widget_new = gb_radio_button_new;
  gbwidget.gb_widget_create_properties = gb_radio_button_create_properties;
  gbwidget.gb_widget_get_properties = gb_radio_button_get_properties;
  gbwidget.gb_widget_set_properties = gb_radio_button_set_properties;
  gbwidget.gb_widget_create_popup_menu = gb_radio_button_create_popup_menu;
  gbwidget.gb_widget_write_source = gb_radio_button_write_source;
  gbwidget.gb_widget_destroy = gb_radio_button_destroy;

  return &gbwidget;
}