Re: How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
On Mon, 4 Dec 2006 17:18:05 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Mon, 4 Dec 2006 15:13:56 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> how can I get the style which is actually used to draw the > ET> widgets in an application? > > This shoud work correct: > > GtkSty

Re: How to get the used style for a widget

2006-12-04 Thread Eugene Zagidullin
On Mon, 4 Dec 2006 15:13:56 +0100 Enrico Tröger <[EMAIL PROTECTED]> wrote: ET> how can I get the style which is actually used to draw the widgets in ET> an application? This shoud work correct: GtkStyle *rc_style = gtk_rc_get_style (your_widget); -- Best regards, Eugene

How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
Hi, how can I get the style which is actually used to draw the widgets in an application? More preciously, I need to get the foreground colour (resp. the colours for the GtkStateType enum) for a widget. I want to change the foreground colour of this widget(GtkLabel) to red if a file inside my appl