[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
background color
- From: "Scott." <scottf scs unr edu>
- To: gtk-app-devel-list redhat com
- Subject: background color
- Date: Fri, 6 Nov 1998 15:37:57 -0800 (PST)
in a toggle button, i have the background switch to red when clicked
through the following statement:
GtkWidget *gbutton;
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)...
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..
is this a bug? or is there a fix? or, (most likely) am i screwing up here?
:( ... thanx
-=Scott
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]