Re: Re: GtkRc file don't loaded...

From: Date: Sun, 12 Feb 2006 23:10:07 +0000
Subject: Re: Re: GtkRc file don't loaded...
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6727@lists.php.net to get a copy of this message
this can look stupid but just to be sure, can you verify which path is used when you call this line. try this: echo getcwd()."\n"; There's chance that when you use the link the current directory wasn't the one of you main.php file so you perhaps will have to set the path with chdir(); or to load your file like this: Gtk::rc::parse(dirname(__file__. '/gtkrc'); Hope this can be of help, nathan 2006/2/12, kioto <kiotoster@gmail.com>: > > > 2006/2/12, Malk0 <malk0.phpgtk@gmail.com>: > > Hi, > > > > can you explain how do you load your gtkrc file? > > With Gtk::rc::parse('gtkrc') after the that i have loaded the php_gtk > extension with dl() > I specify that if i use the dos shell and to run my application with > php_win or php.exe > the application work with the thinice engine with no problem. > The application don't use the style only when i run it from link of the > start menu. > Thanks for your reply. > > > > 2006/2/12, kioto <kiotoster@gmail.com >: > > > 2006/2/12, kioto <kiotoster@gmail.com>: > > > > > > > > Hi all, i have a strange problem pertain to GtkRc file when i use it > with > > > > Inno setup. > > > > I have created a simple installer for windows, this create a new group > and > > > > a link into the menu start. > > > > This link call the php_win executable and the main.php file to be > executed > > > > that run without problem > > > > but don't load the rc style (Windows Xp Themes thinice engine) that i > have > > > > placed into the folder of my application. > > > > Thus to try to understand this problem i have used the dos shell and > from > > > > the folder of my app i have > > > > executed the "C:\Programmi\MyApp\php_win main.php" and in this way the > > > > gtkrc is loaded. > > > > The question not pertain the php-gtk but i have ask you because there > are > > > > developers that have > > > > a good amount of experience on desktop and windows. > > > > Thanks to all in advance. > > > > > > > > P.S: I work on php-gtk1 with php.4.4.1 > > > > > > > > > > Hi all, i have try to create a link to my desktop (on Windows Xp) and i > have > > > see that work with the style thinice that i have parsed with gtkrc parse > at > > > run-time. > > > There are any person that can try with me to understand what is the > problem > > > because > > > now the question is why when i run the app from the start menu don't use > > > theme ? > > > I use Inno Setup tool to create the installer maybe any persons can give > me > > > an advice. > > > Sorry for reply but the default look is very bad to see. > > > Thanks again. > > > > > > > > > > >

« previous php.gtk.general (#6727) next »