From: Guillaume C. <gco...@gm...> - 2005-08-18 19:57:14
|
Hi, > I'm off to vacations on saturday but might have some time tonight and > tomorrow night. Since ruby-gtk2 has been so great for me, I'd like to > help even a little bit if possible. I'll be looking at who is working > on what, and try to fill some gaps. While looking at source to begin working on 2.8, I've noticed the following in rbgtkimage.c: -=3D-=3D---=3D-=3D---=3D-=3D---=3D-=3D-- if (TYPE(arg1) =3D=3D T_STRING){ gtk_image_set_from_file(_SELF(self), RVAL2CSTR(arg1)); } else if (TYPE(arg1) =3D=3D T_SYMBOL){ gtk_image_set_from_stock(_SELF(self), rb_id2name(SYM2ID(arg1)),=20 RVAL2GENUM(arg2, GTK_TYPE_ICON_SIZE)); #if GTK_CHECK_VERSION(2,6,0) } else if (TYPE(arg1) =3D=3D T_STRING){ gtk_image_set_from_icon_name(_SELF(self), RVAL2CSTR(arg1), RVAL2GENUM(arg2, GTK_TYPE_ICON_SIZE)); #endif -=3D-=3D---=3D-=3D---=3D-=3D---=3D-=3D-- Unless I'm missing something, the condition in the check version for 2.6 can never be true, isn't it? --=20 Guillaume Cottenceau - http://zarb.org/~gc/ |