diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-14 14:30:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-11-14 14:30:42 +0000 |
commit | 5d007314c18cbff6bc060ac2480afceb20e351c4 (patch) | |
tree | ba4c00cdcda1e4610c3a278a729b1979b34eac9d /clock.pl | |
parent | a91fbcd6d8fc1c77fda2a73e4bdfb7662be51ea3 (diff) | |
download | control-center-5d007314c18cbff6bc060ac2480afceb20e351c4.tar control-center-5d007314c18cbff6bc060ac2480afceb20e351c4.tar.gz control-center-5d007314c18cbff6bc060ac2480afceb20e351c4.tar.bz2 control-center-5d007314c18cbff6bc060ac2480afceb20e351c4.tar.xz control-center-5d007314c18cbff6bc060ac2480afceb20e351c4.zip |
- don't use POSIX when uneeded
- use my_gtk to exit and transparently manage embedding
- no need to run twice the main gtk loop
Diffstat (limited to 'clock.pl')
-rwxr-xr-x | clock.pl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -155,10 +155,10 @@ $is24 = $h_old>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; +my_gtk->exit(0); sub cal_changed { !$its_reset and $timer and Gtk->timeout_remove($timer); |