/** examine.c **/ #include void showit(); int main(int argc,char *argv[]) { int i; GtkStyle *style; GtkWidget *app; gnome_init("examine","1.0",argc,argv); app = gnome_app_new("examine","Examine"); gtk_widget_show(app); style = app->style; printf(" Normal Active Prelight" " Selected Insensitive\n"); printf(" fg:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->fg[i].pixel); printf("\n bg:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->bg[i].pixel); printf("\n light:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->light[i].pixel); printf("\n dark:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->dark[i].pixel); printf("\n mid:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->mid[i].pixel); printf("\n text:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->text[i].pixel); printf("\n base:"); for(i=0; i<5; i++) printf(" 0x%08lX",style->base[i].pixel); printf("\n\n black: 0x%08lX\n", style->black.pixel); printf(" white: 0x%08lX\n", style->white.pixel); printf("\n fg_gc:"); for(i=0; i<5; i++) printf(" %p",style->fg_gc[i]); printf("\n bg_gc:"); for(i=0; i<5; i++) printf(" %p",style->bg_gc[i]); printf("\nlight_gc:"); for(i=0; i<5; i++) printf(" %p",style->light_gc[i]); printf("\n dark_gc:"); for(i=0; i<5; i++) printf(" %p",style->dark_gc[i]); printf("\n mid_gc:"); for(i=0; i<5; i++) printf(" %p",style->mid_gc[i]); printf("\n text_gc:"); for(i=0; i<5; i++) printf(" %p",style->text_gc[i]); printf("\n base_gc:"); for(i=0; i<5; i++) printf(" %p",style->base_gc[i]); printf("\n\nbgpixmap:"); for(i=0; i<5; i++) { if(style->bg_pixmap[i] == NULL) printf(" 0x0000000"); else printf(" %p",style->bg_pixmap[i]); } printf("\n"); exit(0); }