Re: Re: Beta: Call for testing

From: Date: Sat, 16 Jun 2007 18:53:37 +0000
Subject: Re: Re: Beta: Call for testing
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3884@lists.php.net to get a copy of this message
On 15 Jun 2007 at 8:30, Elizabeth Smith wrote: > André Jansen wrote: > > Running the 2.10.12 on Win2kSP4, alongside a customized Gnope install. > If you're running alongside gnope you'll have a gtk runtime in your PATH > which may mess things up Actually there were *2* gtk runtimes in my path: I also have the Gimp installed, which uses gtk 2.4... Just to make sure, I temporarily removed both from my %PATH%. > > After the usual minor tweaks to php-cli.ini, I can see the new widgets in > > DevInspector, and I can instantiate most of them. A handful of simple > > apps run OK. > > > > Some of the GtkExtra widgets (e.g. GtkFontCombo) use xpm type icons, when > > I try to instantiate these I get complaints along the lines of: > > > > GdkPixbuf-WARNING **: Error loading XPM image loader: Image type 'xpm' is > > not supported > > > haven't a clue on that on, I don't use xpm a lot - have you tried just a > normal xpm image on your own? it may be a gtkextra bug I tried loading a moz icon from nvu into a GdkPixbuf, and setting a GtkImage with that. This shouldn't touch GtkExtra... $px = GdkPixbuf::new_from_file('default.xpm'); $win->add($img = new GtkImage()); $img->set_from_pixbuf($px); Running the test script through the gnope install rendered the icon OK. The beta install turned up the following error instead: Fatal error: Uncaught exception 'PhpGtkGErrorException' with message 'Failed to load image 'default.xpm': Invalid XBM file' Note the error message says 'Invalid XBM file', which is correct because the icon is an *XPM* file. :-) I wonder if GdkPixbuf is mistakenly trying to load the XPM image with the XBM loader? > > Some widgets just bomb, e.g. trying to instantiate GtkHTML does not > > return any error message but php.exe exits with a non zero return value > > (a large negative integer). May well be I'm doing something wrong > > however. > > > > > Please read the whole thread - I quote > There's a trick to gtkhtml - Missed that one... :-( > GtkHtml requires GConf to be running in order to work right. > > You should see a file named gconfd-2.exe - That needs to be running in > order for gtkhtml to work. There are two ways to accomplish this. You > can call php.exe using the following syntax > > gconfd-2 | php myscript.php > > or you can use exec or popen or proc_open in your script, before you > call new GtkHtml, to start gconfd-2.exe > > Kind of annoying, but it's a gnome thing. Tried the following: exec("start D:\\phpgtk2b\\gconfd-2.exe"); $win->add($foo = new GtkHTML()); ...and several variants including popen(). No Luck: GConf Error: Failed to launch configuration server: Failed to execute helper program (No such file or directory) (php.exe:1268): Gdk-WARNING **: gdkselection-win32.c:1068: OpenClipboard failed: Invalid window handle. gconfd does run, sits there for a while then exits. Immediately after, I get a Windoze error dialog, on dismissal php exits with return value 3. I put the path to the install dir in my %PATH% just in case, but still no luck. Cheers, -- André =========================================================== Black Holes were created when God divided by zero.

« previous php.gtk.dev (#3884) next »