/* to compile 
 * cc -o testgtkstyle testgtkstyle.c `pkg-config --cflags --libs gtk+-2.0`
 */
#include <gtk/gtk.h>
#include <gdk/gdk.h>

int main (int argc, char **argv)
{

	GtkStyle *style;
	GdkColor color;

	gtk_init(&argc, &argv);

	gtk_rc_parse_string(
                        "pixmap_path \"/\" "
			"style \"foo\" { "
			" color[\"mycolor\"] = \"#00FF00\" "
                        " stock[\"myicon\"] = { { \"tmp/gtk-add.png\" } } "
			" GtkTreeView::odd_row_color  = @mycolor "
			" engine \"clearlooks\" {} "
			" } \n"
			" style \"bar\" = \"foo\" { "
			" bg[NORMAL]=@mycolor "
			" } \n" 
			"class \"GtkWidget\" style \"foo\" \n"
			"class \"GtkButton\" style \"bar\"");

	style = gtk_rc_get_style(gtk_button_new());

	g_print("mycolor : %d\n",gtk_style_lookup_color(style, "mycolor", &color));
#	g_print("myicon : %p\n",gtk_style_lookup_icon_set(style, "myicon"));

}
