Branch: Tag:

2006-02-02

2006-02-02 15:18:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed compilation error.
Added FIXME about use of an uninitialized variable!

Rev: src/post_modules/GTK2/source/gtkbutton.pre:1.7

54:    int i;       get_all_args("create",args,"%T",&t); +  if (t) {    if (t->size_shift==0)    t=gtk_stock_lookup(CGSTR0(t),&item); -  +  +  /* FIXME: i hasn't been initialized yet!!!!!!!!!!!! */    if (i)    gb=gtk_button_new_from_stock(CGSTR0(t));    else {
64:       gb=gtk_button_new_with_label(CGSTR0(Pike_sp[-1].u.string));    pop_stack(); +  }    } else    gb=gtk_button_new();    THIS->obj=G_OBJECT(gb);