# HG changeset patch # User Peter Gervai # Date 1224153509 -7200 # Node ID 689bf4b363c3b9e7cf0d8104cfcb5216d01b1005 # Parent 46f2fcdca04f1e9fe4d26e87b86bcf8df189a194 test1: and coloring works too * using an eventbox. * coloring frame works too diff -r 46f2fcdca04f -r 689bf4b363c3 test1.glade --- a/test1.glade Thu Oct 16 12:27:55 2008 +0200 +++ b/test1.glade Thu Oct 16 12:38:29 2008 +0200 @@ -1,6 +1,6 @@ - + True @@ -178,25 +178,56 @@ True 0 - + True - + True - + True - gtk-dialog-info - 6 + + + True + gtk-dialog-info + 6 + + + + + True + True + Az üdvozlő szöveg + Enter your name and +bear the consequences. + + + 1 + + - + True - True - Az üdvozlő szöveg - Enter your name and -bear the consequences. + + + True + Thy name: + + + + + True + True + True + Yourname here + + + + 1 + + 1 @@ -204,32 +235,6 @@ - - - True - - - True - Thy name: - - - - - True - True - True - Yourname here - - - - 1 - - - - - 1 - - 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); }