Re: Setting widget styles
- From: Stefan Kost <ensonic hora-obscura de>
- To: Tony Houghton <h realh co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Setting widget styles
- Date: Sun, 10 Aug 2008 14:50:01 +0300
Tony Houghton schrieb:
I want to change the cursor/caret aspect ratio for a widget on the fly.
The docs say you should "first call gtk_widget_get_modifier_style(),
make your modifications to the returned style, then call
gtk_widget_modify_style() with that style." The trouble is I can't find
any way to modify a style. I must be missing something, otherwise
there's no point in having GtkRcStyle in the API at all.
As the docs refer to "style properties" I've tried calling
g_object_set_property(..., "cursor-aspect-ratio", ...) on the GtkRcStyle
but I got an error that the property name doesn't exist or something
like that.
style-properties are not g-object properties :/ And usually they are read-only.
It sucks because I fails to see why most apps ever would want to read them, if
they can't modify them ...
Stefan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]