Re: Gtk2::ImageMenuItem with a custom icon



* Daniel Kasak <dkasak nusconsulting com au> [2005-07-14 06:50]:
$menu_item->set_image($pixbuf);

But the last line complains that $pixbuf is not of type Gtk2::Widget.

    $menu_item->set_image( Gtk2::Image->new_from_pixbuf( $pixbuf) );

?

Regards,
-- 
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



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