RE: [PHP-GTK] phpgtk2 background image
| From: | thomas favennec | Date: | Fri, 11 Aug 2006 12:31:44 +0000 |
| Subject: | RE: [PHP-GTK] phpgtk2 background image | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7084@lists.php.net to get a copy of this message | ||
Sorry, i've found :
$pixbuf=GdkPixbuf::new_from_file(trim($b));
list($pixmap,$mask)=$pixbuf->render_pixmap_and_mask(255);
Tx.
Thomas.
----- Original Message ----- From: "thomas favennec" <webmaster@redsofa.net>
To: <php-gtk-general@lists.php.net>
Sent: Friday, August 11, 2006 2:23 PM
Subject: Re: [PHP-GTK] phpgtk2 background image
Hi, I would like to do that : $s=$widget->get_style(); $s=$s->copy(); $s->bg_pixmap[Gtk::STATE_NORMAL]=$pixmap; $widget->set_style($s); But pixmap is depracated !!! and " Warning: Can only assign a GdkPixmap object or null " ! Do you kow other way to insert image background ? Thanks. Thomas.