| View previous topic :: View next topic |
| Author |
Message |
alex
Joined: 04 Jan 2006 Posts: 1
|
Posted: Wed Jan 04, 2006 7:41 am Post subject: Glade2 with GladeXML ? |
|
|
Hi,
nice to see a working php-gtk2 for win
I`m playing around with a php-gtk1 application and struggle at this point:
| Code: |
$glMain = &new GladeXML(dirname(__FILE__).'test-glade');
|
test.glade is a glade2 file that should work.
I`ve tried before with a file covnerted from glade1 to glade2 with the same result
| Code: |
[04-Jan-2006 06:11:56] PHP Fatal error: Uncaught exception 'PhpGtkConstructException' with message 'could not construct GladeXML object' in C:\Programme\versandDev\test.php:14
|
Any idea what`s wrong/what has changed ?
Thx,
Alex |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Wed Jan 04, 2006 11:23 am Post subject: Re: Glade2 with GladeXML ? |
|
|
| alex wrote: | test.glade is a glade2 file that should work.
I`ve tried before with a file covnerted from glade1 to glade2 with the same result :( |
First, it seems that the glade file is corrupt.
Try to catch the exception and get the full error message, describing what has happened/what was the reason for the crash. The exception object should have some methods and properties which help at this.
And if you work with php-gtk2, you cannot use glade1 files, only glade2 ones. |
|
| Back to top |
|
 |
|