gtk_widget_get_style
- From: James Gregory <james linuxaus com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_widget_get_style
- Date: 15 Jan 2003 13:54:28 -0500
Hi all,
I'm trying to get some info about the theme that gtk is using. For now
I'm trying to grab the background colour of windows. I'm using a little
C program, the two relevant lines are as follows:
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
style = gtk_widget_get_style (window);
then I pull the bg field out of that style struct and look at its
contents. The first element is a colour that looks like this:
red:0.862745 green:0.854902 blue:0.835294
which isn't quite right (I think). I'm using bluecurve, and according to
/usr/share/themes/Bluecurve/gtk-2.0/gtkrc, the background colour of
windows (as far as I can see) is set to:
bg[NORMAL] = { 0.9, 0.9, 0.9 }
(GtkWidget is set to use the bluecurve-default style, which sets that
background) - now I either don't understand how the gtk theme system
works (which is really pretty likely) or I'm getting the wrong numbers
there.
What have I done wrong?
many thanks,
James.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]