GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

gtk theme under windows without installation

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
vubun



Joined: 31 Dec 2007
Posts: 2

PostPosted: Mon Dec 31, 2007 4:58 pm    Post subject: gtk theme under windows without installation Reply with quote

Ok, the subject seems very strange...

I want to use a gtk theme in my application (yeaah it's easy), but, to simplify the distribution of my app under windows I put all gtk dll (and dependency) in the app's folder, so there is no real gtk installation.

Before, a solution existed by using module_path in the gtkrc file to specify the path where the application would look for the engine but now the only solution seems to be by using the GTK_PATH.
that's the problem.. no installation, no GTK_PATH defined..
So is there a way to specify the engine folder in the gtkrc file or in my program? else, a way to specify the GTK_PATH ?

I hope I'm clear because I'm french and my english is not always very good.

Thanks in advance!

PS: I'm coding in C++ and obviously, the theme I want to use need an engine to work (else there hadn't any issue)
Back to top
vubun



Joined: 31 Dec 2007
Posts: 2

PostPosted: Wed Jan 02, 2008 2:24 pm    Post subject: Reply with quote

It's okay, i found the solution.
just windows programmation not gtk.

putenv("GTK_PATH=./GTK");

Thanks for nothing ! :D
++


Last edited by vubun on Wed Jan 02, 2008 7:08 pm; edited 1 time in total
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 427
Location: Portland, OR USA

PostPosted: Wed Jan 02, 2008 5:46 pm    Post subject: Reply with quote

Thanks for posting the solution. That will help others who find this.
Back to top
gege2061



Joined: 04 Jan 2007
Posts: 3
Location: France

PostPosted: Thu Jan 03, 2008 10:16 am    Post subject: Reply with quote

vubun wrote:
just windows programmation not gtk.

For gtk+ programming, use g_setenv (or Glib::setenv in C++) :wink:
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP