Re: GtkImage
| From: | Breizh Micro Services | Date: | Fri, 10 Feb 2006 10:12:14 +0000 |
| Subject: | Re: GtkImage | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6702@lists.php.net to get a copy of this message | ||
My new program :
$window = new GtkWindow();
$window->set_title('PHP Test');
$window->connect("destroy" , "OnDestroy");
$widget = GtkImage::new_from_file("test.jpg");
$window->add($widget);
$window->show_all();
Gtk::main();
I Have the same bug...Any Idea ?
Christian Weiske a écrit :
$window =& new GtkWindow();No, no, no! No ampersand in php5!$image = new GtkImage(); $widget = $image->new_from_file("test.jpg");That's wrong. new_from_file is a static method, thus it has to be $widget = GtkImage::new_from_file("test.jpg");the instruction at "0x7847d45a" use memory adress "0x019636c0". Memory can't be "read"Maybe the correction up there fixes that.