Adding the gdk-pixbuf canvas object to the canvas



I tried to add the gdk-pixbuf canvas object so that it works
with GtkPerl. Compilation works, but when I try to use it
in the following code:

    my $img = new_from_file Gtk::Gdk::Pixbuf("save.png");
    my $imgitem = $cgroup2->new($cgroup2, "Gnome::CanvasPixbuf",
            'pixbuf' => $line,
            'x' => 50,
            'y' => 50,
            );

I get the error message:
 
    Cannot set argument of type gpointer (fundamental type gpointer)
    at ./canvas-pixbuf.pl line 126.
    
Does someone have any idea of what I forget? 

Regards,
Dov



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