gnope php gtk gui gnope.org  

Problem placing background image in GtkWindow

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
weeda



Joined: 12 Jun 2006
Posts: 10

PostPosted: Mon Dec 11, 2006 12:45 pm    Post subject: Problem placing background image in GtkWindow Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.