Re: look and feel problem
| From: | Benjamin Smith | Date: | Thu, 30 Sep 2004 16:12:45 +0000 |
| Subject: | Re: look and feel problem | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5119@lists.php.net to get a copy of this message | ||
One of the biggest problems I've had with PHP-GTK is with styles. Supposedly
stable, I've not seen *any* documentation *anywhere* that made styles even
remotely clear to me despite numerous attempts.
Otherwise, I'm very happy with the stability and development performance of
PHP-GTK. I primarily use PHP-GTK on Windows.
The best I've done is to specify a gtk.rc file (stolen from a Linux boxen
after loading Gnome to get a reasonable set of default styles, and tweaked a
bit to result in larger fonts) with gtk::rc_parse().
It's a crummy way to go, but at least by being explicit in this manner I've
minimized the complaints about screwy fonts and styles. I've attached it for
your benefit.
It seems that styles are sorta like HTML in that if something goes wrong,
there's nothing to tell you what went wrong or why. I would *love* to have a
gtk::rc_parse_report() function that would tell me what it did and why!
-Ben
On Monday 27 September 2004 23:00, Tony Leake wrote:
> I have written an app using glade which contains lots of clists.
>
> One one machine, the background of the clist is dark and each row has an
> thin line underneath. On another machine the background of the clist is
> white with no lines. I am using php 4.3.8 on both machines, php-gtk 1.01
> on bothe (and have even copied the binaries over) and both are running
> the same version of kde.
>
> Firstly I don't understand how this happens and secondly,how can I get
> the ruled line effect on the other machine.
>
> I have not used any styles in the app.
>
> Thanks
> Tony
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
"I kept looking around for somebody to solve the problem.
Then I realized I am somebody"
-Anonymous
# Copyright 2003 by Charterworks, LLC All rights reserved. style "default" { bg[NORMAL] = { 0.863, 0.863, 0.863 } bg[SELECTED] = { 0.039, 0.373, 0.537 } bg[INSENSITIVE] = { 0.863, 0.863, 0.863 } bg[ACTIVE] = { 0.718, 0.718, 0.718 } bg[PRELIGHT] = { 0.8630, 0.863, 1.000 } base[NORMAL] = { 1.000, 1.000, 1.000 } base[SELECTED] = { 0.039, 0.373, 0.537 } base[INSENSITIVE] = { 0.863, 0.863, 0.863 } base[ACTIVE] = { 1.000, 1.000, 1.000 } base[PRELIGHT] = { 1.000, 1.000, 1.000 } text[NORMAL] = { 0.000, 0.000, 0.000 } text[SELECTED] = { 1.000, 1.000, 1.000 } text[INSENSITIVE] = { 0.718, 0.718, 0.718 } text[ACTIVE] = { 0.000, 0.000, 0.000 } text[PRELIGHT] = { 0.000, 0.000, 0.000 } fg[NORMAL] = { 0.000, 0.000, 0.000 } fg[SELECTED] = { 1.000, 1.000, 1.000 } fg[INSENSITIVE] = { 0.718, 0.718, 0.718 } fg[ACTIVE] = { 0.000, 0.000, 0.000 } fg[PRELIGHT] = { 0.000, 0.000, 0.000 } font = "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*,*" } class "*" style "default"
# Copyright 2003 by Charterworks, LLC All rights reserved. style "default" { bg[NORMAL] = { 0.863, 0.863, 0.863 } bg[SELECTED] = { 0.039, 0.373, 0.537 } bg[INSENSITIVE] = { 0.863, 0.863, 0.863 } bg[ACTIVE] = { 0.718, 0.718, 0.718 } bg[PRELIGHT] = { 0.8630, 0.863, 1.000 } base[NORMAL] = { 1.000, 1.000, 1.000 } base[SELECTED] = { 0.039, 0.373, 0.537 } base[INSENSITIVE] = { 0.863, 0.863, 0.863 } base[ACTIVE] = { 1.000, 1.000, 1.000 } base[PRELIGHT] = { 1.000, 1.000, 1.000 } text[NORMAL] = { 0.000, 0.000, 0.000 } text[SELECTED] = { 1.000, 1.000, 1.000 } text[INSENSITIVE] = { 0.718, 0.718, 0.718 } text[ACTIVE] = { 0.000, 0.000, 0.000 } text[PRELIGHT] = { 0.000, 0.000, 0.000 } fg[NORMAL] = { 0.000, 0.000, 0.000 } fg[SELECTED] = { 1.000, 1.000, 1.000 } fg[INSENSITIVE] = { 0.718, 0.718, 0.718 } fg[ACTIVE] = { 0.000, 0.000, 0.000 } fg[PRELIGHT] = { 0.000, 0.000, 0.000 } font = "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*,*" } class "*" style "default"