[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: background color
- From: Tero Pulkkinen <terop students cc tut fi>
- To: gtk-app-devel-list redhat com
- Subject: Re: background color
- Date: 07 Nov 1998 20:27:29 +0200
"Scott." <scottf@scs.unr.edu> writes:
> gbutton = gtk_toggle_button_new();
> gbutton->style->bg[GTK_STATE_ACTIVE].green=0;
> gbutton->style->bg[GTK_STATE_ACTIVE].blue=0;
> gtk_widget_show(gbutton);
>
> i've also used the gtk_widget_set_style() successfully to do the same
> thing... (the above approach limits code length, but is ugly)
>
> now, that works great, BUT, after selecting one of the toggle buttons, a
> new page (scrolled_window) is appended to a notebook in the app, but the
> weird thing is, the vscrollbar and hscrollbar have red backgrounds as
> well.. (the window itself has the default background)...
style structures are shared between different widgets :) if you get style
the button uses and then change it, many things will change its style. :)
> i have tried explicitly using the set_style to tell the scrollbars to be
> the regular color, as well as gtk_widget_restore_default_style() to get
> the scrollbars to not look like they came straight outta hell..
better use set_style() for the buttons.
--
-- Tero Pulkkinen -- terop@modeemi.cs.tut.fi --
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]