Re: Theme-related request for GTK 2.0
- From: Owen Taylor <otaylor redhat com>
- To: johan tiq com
- Cc: gtk-list gnome org
- Subject: Re: Theme-related request for GTK 2.0
- Date: 22 Dec 2001 11:40:31 -0500
Johan Hanson <misagon mail bahnhof se> writes:
> The new default look is implemented not only in class GtkStyle but also
> in some widgets. Most of the differences can be reset via style
> properties, but existing themes for Gtk 1.2 need to be modified to look
> the same under Gtk 2.0.
>
> I have written a theme engine for Gtk 1.2 which I am now porting to
> Gtk 2.0, and I would like my theme engine to reset the default values
> for certain style properties as to get some defaults of Gtk 1.2.
>
> I suggest that there would be a method:
> void gtk_rc_style_set_style_property_default (const gchar *, const GValue *);
>
> .. that could be called from GtkRcStyle::init() and GtkRcStyle::parse()
> to set default style properties for the rc-style.
> Each such property entry should be marked as "weak" and as such should
> not be able to override any explicitly defined style properties.
>
> It would also be convenient to be able to read style properties from
> GtkStyle::realize() so that it would be possible to e.g. resize the
> checkmark image to GtkCheckButton::indicator_size.
I'm a little confused with what you want to do. A theme is a
combination of theme engine and RC file. Style properties are
meant to be set from the RC file, not the theme engine.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]