ewx: (geek)
[personal profile] ewx

I posted this to gtk-app-devel-list but nobody replied, not even with the wrong answer.

Subject: rc file only works outside gnome

My GTK+ application uses colors in its user interface for various purposes, and calls gtk_rc_parse_string() at startup to set some defaults.

This works fine on my Mac and under KDE, but if I run it in a Gnome session (under Debian etch), none of the colors appear. I infer that they have been overridden by Gnome's theme even though it doesn't know anything about my application.

How do I get around this, preferably still leaving my users the ability to reconfigure the application's choice of color?

(The part of the source code that uses GTK+ can be found in:
http://www.greenend.org.uk/rjk/bzr/disorder/mainline/disobedience/


Update: for the benefit of anyone coming across this in the future, I concluded that this part of GTK+ is fundamentally broken and worked around it by setting explicit colors on all my widgets and keeping a separate configuration file to control them.

(no subject)

Date: 2007-10-26 08:40 am (UTC)
From: [identity profile] sidheag.livejournal.com
I asked the person close to me most likely to know, and he googled and found an assertion that this is a Known Bad Thing about Gnome - that you just can't. But that's now third-hand to you and the source (at least) is unreliable (and I didn't get a URL, since it didn't seem worth the electrons it would have been written on).

(no subject)

Date: 2007-10-26 09:14 am (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
I'd somewhat reached that conclusion from the documentation, but wanted external confirmation.

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags