weeda
Joined: 12 Jun 2006 Posts: 10
|
Posted: Mon Dec 11, 2006 12:45 pm Post subject: Problem placing background image in GtkWindow |
|
|
I am using the following code:
$pixbuf=GdkPixbuf::new_from_file("backgd.jpg");
list($pixmap,$mask)=$pixbuf-> render_pixmap_and_mask(255);
$style = $window->get_style();
$style=$style->copy();
$style->bg_pixmap[Gtk::STATE_NORMAL]=$pixmap;
$window->set_style($style);
The backgd.jpg is in the same directory with my .php code. I get the following error message:
"Failed to open file XXX: No such file or directory".
Can somebody tell me what could be the problem?
Thanks |
|