gnope php gtk gui gnope.org  

Glade2 with GladeXML ?

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



Joined: 04 Jan 2006
Posts: 1

PostPosted: Wed Jan 04, 2006 7:41 am    Post subject: Glade2 with GladeXML ? Reply with quote

Hi,

nice to see a working php-gtk2 for win Smile


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 Sad

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

PostPosted: Wed Jan 04, 2006 11:23 am    Post subject: Re: Glade2 with GladeXML ? Reply with quote

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
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.