Re: Gtk2::ImageMenuItem with a custom icon
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: gtk-perl list <gtk-perl-list gnome org>
- Subject: Re: Gtk2::ImageMenuItem with a custom icon
- Date: Thu, 14 Jul 2005 09:53:24 +0200
* 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]