diff -r 46f2fcdca04f -r 689bf4b363c3 test1.pl --- a/test1.pl Thu Oct 16 12:27:55 2008 +0200 +++ b/test1.pl Thu Oct 16 12:38:29 2008 +0200 @@ -14,6 +14,7 @@ my $glade; my $label; my $field; +my $eventbox; my $window_about; # load UI @@ -25,6 +26,7 @@ $label = $glade->get_widget('main_text1'); $field = $glade->get_widget('entry'); +$eventbox = $glade->get_widget('eventbox1'); $window_about = $glade->get_widget('aboutdialog1'); print "firing up\n"; @@ -40,13 +42,18 @@ print "Color is: ", $color->to_string(), "\n"; print "Alpha is: ", $alpha, "\n"; - # Gtk2::StateType?! + # Gtk2::StateType?! (man gtk2::widget) # FATAL: invalid enum GtkStateType value what, expecting: normal / GTK_STATE_NORMAL, # active / GTK_STATE_ACTIVE, prelight / GTK_STATE_PRELIGHT, selected / GTK_STATE_SELECTED, # insensitive / GTK_STATE_INSENSITIVE - $label->modify_bg( 'prelight', $color); - $label->modify_fg( 'active', $color); - $label->modify_text( 'normal', $color); + #$label->modify_bg( 'prelight', $color); + #$label->modify_fg( 'active', $color); + #$label->modify_text( 'normal', $color); + + $eventbox->modify_bg( 'normal', $color); + #$glade->get_widget('frame1')->modify_bg( 'normal', $color); + + $window_about->modify_bg( 'prelight', $color); }