PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:gui doesn't look so native sometimes (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:gui doesn't look so native sometimes


#5498
emrag (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
gui doesn't look so native sometimes 2 Years, 1 Month ago Karma: 1  
when i run php-gtk applications the gui sometimes looks so native but sometimes looks really weird. i don't get it what cause that. i hope i can find an answer here. here is the screenshot to see difference:



(tested on windows xp and windows 7)
 
  The administrator has disabled public write access.

#5500
emrag (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:gui doesn't look so native sometimes 2 Years, 1 Month ago Karma: 1  
i set a theme with rc_parse and it seems everything is okey now. always same look.

Gtk::rc_parse($filename);
 
  The administrator has disabled public write access.

#5501
kksou (Admin)
Admin
Posts: 1722
graph
User Online Now Click here to see the profile of this user
Re:gui doesn't look so native sometimes 2 Years, 1 Month ago Karma: 27  
Hi,

Glad it worked now, and thanks for sharing with the rest the solution.

Regards,
/kksou
 
  The administrator has disabled public write access.
#5506
kielsoft (User)
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Re:gui doesn't look so native sometimes 2 Years, 1 Month ago Karma: 1  
what file did you parse, theme file I guess? Can you share it with other to see how to create that file too?
 
  The administrator has disabled public write access.
#5509
emrag (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:gui doesn't look so native sometimes 2 Years ago Karma: 1  
it's "gtkrc" theme file. you can downloaded theme files from: http://gtk-win.sourceforge.net

there're over 100 themes in that package. if you want to create your own themes you can check gnome site: https://live.gnome.org/GnomeArt/Tutorials/GtkThemes

usage: call rc_parse before before main loop:

Gtk::rc_parse('fullpathtoyourthemefolder/themename/gtk-2.0/gtkrc');
Gtk::main();
 
  The administrator has disabled public write access.
#5584
VeraKeisey (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:gui doesn't look so native sometimes 1 Year, 11 Months ago Karma: 0  
Thanks for sharing this.
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2012. kksou.com. All Rights Reserved