Re: focus-line-width



On Tue, Oct 17, 2006 at 05:38:22PM +0530, krithika sivakumar wipro com wrote:

I'm unable to use the style property focus-line-width or
focus-line-pattern.

While running the application it states 

"GLib-GObject-WARNING **: g_object_set_valist: object class `GtkButton'
has no property named `focus-line-pattern'

Style properties are not properties, they cannot be set with
g_object_set().  They are defined by Gtk+ theme and all
rendering code only reads and follows them.

If you for whatever reason want different focus lines, set
the parameters in your ~/.gtkrc-2.0.  You can also modify
it programatically in an app for example by giving
gtk_rc_parse_string() the same code you put to gtkrc, though
this should be done with deliberation -- and ideally not at
all.  Another thing to take into accout is that theme
engines generally can draw things the way they like it
ignoring certain style settings.

Yeti


--
Whatever.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]