Re: GtkImage
| From: | Breizh Micro Services | Date: | Fri, 10 Feb 2006 09:55:57 +0000 |
| Subject: | Re: GtkImage | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6699@lists.php.net to get a copy of this message | ||
Ok Thanks,
I try this but I have an error on a win32 system (not yet try on *nix system)
$window =& new GtkWindow();
$window->set_title('PHP Test');
$window->show();
$window->connect("destroy" , "OnDestroy");
$image = new GtkImage();
$widget = $image->new_from_file("test.jpg");
$widget->show();
$window->add($widget);
$window->show_all();
Gtk::main();
It seems to work but when I close the window I have this message in a new window:
the instruction at "0x7847d45a" use memory adress "0x019636c0". Memory can't be "read"
Click Ok to terminate program.
(It is a translation of a french text...)
What's wrong ?
Thanks.
Christian Weiske a écrit :
Breizh,I want to use GtlkImage on a Win32 System, but I read it is not possible with Gtk1. Is-it possible with Gtk2 ?GtkImage wasn't implemented in PHP-Gtk1. PHP-Gtk2 however has it, and is able to load different file types via GdkPixbuf (jpg, png, gif, ...). This wasn't possible in PHP-Gtk1, too