base property of GtkStyle

From: Date: Thu, 15 Mar 2007 12:17:37 +0000
Subject: base property of GtkStyle
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7748@lists.php.net to get a copy of this message
Hi folks! I am using a GtkTextView widget in my application, which by default has a white background. Now I want it to show up like a GtkLabel, with the usual "gray" background color. I can set a new GdkColor using the modify_base method, however I can not figure out how to access the default background (or base) color. I tried fetching the "base" property of another widget's GtkStyle object, but that only gives me a StyleHelper object. I have no clue how to use that and didn't find anything in the documentation. Accessing the "black" or "white" properties of GtkStyle gives me a valid GdkColor object, shouldn't that work with the other properties, too? Looking at the source code in ext/gtk+/gen_gtk.c, it seems that the declarations for the black and white properties differ from the others. Would it be possible to copy that code? The GTK+ reference documentation says that the base, bg, fg, dark, mid, text, etc. properties are also of type GdkColor *. If you know a better way to make the textview widget blend in with the background (even when using themes), please tell me about it... Thanks in advance! Regards, Andre -- Greetings... From: Andre Colomb <acolomb@schickhardt.org>

« previous php.gtk.general (#7748) next »