diff options
author | damien <damien@mandriva.com> | 2001-03-04 03:56:10 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-03-04 03:56:10 +0000 |
commit | de473fdd37b4cc9816b037036addc659a6c41a8b (patch) | |
tree | 7934c4b4a1373e87ccd820b07561ea76c846bdf6 | |
parent | 542788a2df526475488ba81582c90969d14fa368 (diff) | |
download | control-center-de473fdd37b4cc9816b037036addc659a6c41a8b.tar control-center-de473fdd37b4cc9816b037036addc659a6c41a8b.tar.gz control-center-de473fdd37b4cc9816b037036addc659a6c41a8b.tar.bz2 control-center-de473fdd37b4cc9816b037036addc659a6c41a8b.tar.xz control-center-de473fdd37b4cc9816b037036addc659a6c41a8b.zip |
updated
-rwxr-xr-x | clock.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -111,10 +111,8 @@ $button_reset->signal_connect ( clicked => sub { $button_reset->set_sensitive(0); }); $bbox->add($button_reset); -$button_reset->set_sensitive(0); $window->show_all; -$timer=Gtk->timeout_add(120, sub { time_to_rad(localtime(time)); Repaint($drawing_area) }); Gtk->main_iteration while Gtk->events_pending; $calendar->realize; @@ -123,9 +121,12 @@ $old_year += 1900; $calendar->select_month($old_month, $old_year); $calendar->select_day($old_day); $::isEmbedded and kill USR2, $::CCPID; +$button_reset->set_sensitive(0); +$timer=Gtk->timeout_add(120, sub { time_to_rad(localtime(time)); Repaint($drawing_area) }); Gtk->main; sub cal_changed { + $timer and Gtk->timeout_remove($timer); $button_reset->set_sensitive(1); } |