Re: ignore gtk theme
- From: Erik Simonsen <erik pinksheets com>
- To: TORRI Vincent <Vincent Torri math u-bordeaux fr>
- Cc: Andreas Volz <andreas brachttal net>, "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: ignore gtk theme
- Date: 18 Feb 2003 08:57:43 -0500
Creating a separate rc file and parsing wit with gtk_rc_parse() will not
ignore the current theme. It will add to the theme, overwriting any
shared attributes. The old rc file will "show through" for any
attributes that weren't defined in the new rc file. For example, if
both your new rc file and the old one define graphical radio buttons,
all your radio buttons will look like the the new rc file, since it was
parsed after the first. However, if the second rc file didn't define a
[PRELIGHT] pixbuf, but the system default rc file did, the button will
change appearance and look like the default radio button. You have to
be completely thourough and overwrite every property that could be
defined in the system default rc. It ends up being very messy.
On Sun, 2003-02-16 at 04:41, TORRI Vincent wrote:
On Sun, 16 Feb 2003, Andreas Volz wrote:
Hi,
I wish to create a window with some gtk-widgets that ignores the current
gtk theme. I like to define my own theme for only this application.
Is there any possibility in gtk or gtk2 to do this?
Hello,
I have not tested that way, but you can create your own RC file (your
theme) and parse it with
void gtk_rc_parse (const gchar *filename);
there is more doc at:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html
You can use this function with both gtk and gtk2
You may also change the style of some of (or all) your widgets (look at
http://developer.gnome.org/doc/API/2.0/gtk/GtkStyle.html), but i think
that you will prefer the first solution ;)
regards
Vincent TORRI
regards
Andreas
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
TORRI Vincent
Mathematiques Appliquees Bordeaux
Institut de Mathematiques
Universite Bordeaux 1
351 cours de la liberation
33 405 Talence cedex - France
Tel : 33 (0)5 57 96 21 42
Fax : 33 (0)5 56 84 26 26
--
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]