# HG changeset patch # User Peter Gervai # Date 1224163790 -7200 # Node ID 89516833532f38c8d8f6385db5ca151fd8f42485 # Parent e1efc7395f84262e534f3222e7d414d4732424c9 test1: remov unused stuff, implode long unnecessary thingz diff -r e1efc7395f84 -r 89516833532f test1.pl --- a/test1.pl Thu Oct 16 15:29:16 2008 +0200 +++ b/test1.pl Thu Oct 16 15:29:50 2008 +0200 @@ -43,29 +43,14 @@ print "Alpha is: ", $alpha, "\n"; # 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); $eventbox->modify_bg( 'normal', $color); #$glade->get_widget('frame1')->modify_bg( 'normal', $color); - - $window_about->modify_bg( 'prelight', $color); } -sub on_main_about_button_clicked { - $window_about->show(); - return 1; -} - -sub on_aboutdialog1_response { - $window_about->hide(); - return 1; -} +sub on_main_about_button_clicked { $window_about->show(); } +sub on_aboutdialog1_response { $window_about->hide(); } sub on_entry_key_release_event { my $widget = shift;