Re: [gtk-list] Re: Question about GtkTypeInfo



I am trying to set the button's shadow of the combo widget to
GTK_SHADOW_NONE, but I think the only place one can do that is in
'gtk_combo_init':(



------------------------------------------
static void
gtk_combo_init (GtkCombo * combo)
{
  GtkWidget *arrow;
  GtkWidget *frame;
  GtkWidget *event_box;
  GdkCursor *cursor;

  combo->case_sensitive = 0;
  combo->value_in_list = 0;
  combo->ok_if_empty = 1;
  combo->use_arrows = 1;
  combo->use_arrows_always = 0;
  combo->entry = gtk_entry_new ();
  combo->button = gtk_button_new ();
  combo->current_button = 0;
  arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);

  /*            here       */
  gtk_button_set_relief (GTK_BUTTON(combo->button), GTK_RELIEF_NONE);
 .....
 .....



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]