gnope php gtk gui gnope.org  

gtktreeview rules_hint

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



Joined: 01 Apr 2006
Posts: 14

PostPosted: Thu May 18, 2006 3:27 pm    Post subject: gtktreeview rules_hint Reply with quote

does somebody know if rules_hint works in the gtktreeview? because its not working for me and i dont know its just because is not programmend or because im doing something wrong.

thx
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu May 18, 2006 4:02 pm    Post subject: Reply with quote

How do you know it doesn't work? Is your setting returned by get_rules_hint()?
If yes, please remember the following:
Quote:
Some themes will draw tree rows in alternating colors even when rules are turned off, and users who prefer that appearance all the time can choose those themes.

So it also can be that *no* different background colors are drawn at all, if the theme doesn't do it.

The setting works for me here.
Back to top
ragnar



Joined: 01 Apr 2006
Posts: 14

PostPosted: Sat May 20, 2006 1:36 am    Post subject: Reply with quote

yes, the setting also works fine for me, that is why i ask it, because although its activated its doesnt look like working... my theme is the default theme of windows xp, but its true that i dont know if windows support this behavior.

another solution that i tried to do was to put the border of the cells, but it wasnt good because the borders of the cells are not, they are just the color of background of the treeview, and i dont want to change the hole treeview background.

any other hint?
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sat May 20, 2006 5:40 pm    Post subject: Reply with quote

You could disable the Gtk-Wimp theme that is installed by Gnope as default theme. Look for the file .gtkrc-2.0 in the \etc\ folder (somewhere around there, don't know exactly) and rename or delete it. The default (but ugly) Gtk2 theme will be used and you should be able to see the background colors. You could also try to use a different theme, or write the developers of gtk-wimp and ask if they could add support for this.

http://gtk-wimp.sourceforge.net/
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.