[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Gnome::CanvasItem.affine_absolute

FireAphis@gmail.com

7/30/2007 7:17:00 AM

Hello

I'm trying to assign an affine transformation to CanvasItem in my Ruby/
Gnome2 application. Apparently there is a method called
'affine_absolute' that I should use. The problem is that my ruby
doesn't recognize it. When I type 'Gnome::CanvasItem.methods' it isn't
in the list either. On the other hand when I google it I see this
method used by others. I checked the source code of the library
(http://sourceforge.krugle.com/files/cvs/cvs.sourceforge...
gnome2/ruby-gnome2/gnomecanvas/src/rbgnome-canvas-item.c) and the
method *is* defined there. I'm using the latest (0.16) release of the
library. Does anybody know what's wrong? Am I missing something?

Thanks

FireAphis

1 Answer

FireAphis@gmail.com

7/30/2007 1:47:00 PM

0

On Jul 30, 10:16 am, FireAphis <FireAp...@gmail.com> wrote:
> Hello
>
> I'm trying to assign an affine transformation to CanvasItem in my Ruby/
> Gnome2 application. Apparently there is a method called
> 'affine_absolute' that I should use. The problem is that my ruby
> doesn't recognize it. When I type 'Gnome::CanvasItem.methods' it isn't
> in the list either. On the other hand when I google it I see this
> method used by others. I checked the source code of the library
> (http://sourceforge.krugle.com/files/cvs/cvs.sourceforge...
> gnome2/ruby-gnome2/gnomecanvas/src/rbgnome-canvas-item.c) and the
> method *is* defined there. I'm using the latest (0.16) release of the
> library. Does anybody know what's wrong? Am I missing something?
>
> Thanks
>
> FireAphis

As I suspected it was totally my mistake. I tried to see the method in
irb and used 'Gnome::CanvasItem.methods' for that. But
'affine_absolute' can be called only on instance so I should have used
'Gnome::CanvasItem.instance_methods'. For the same reason I had to
create an instance first and not to call
'Gnome::CanvasItem.affine_absolute'.

Silly me :)

FireAphis