|
|
@ -77,6 +77,8 @@ sub init |
|
|
|
|
|
|
|
|
|
|
|
$self->{who} = $who; |
|
|
|
$self->{who} = $who; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$self->withdraw; |
|
|
|
|
|
|
|
|
|
|
|
my $on_time = time - hook("protocol_on_since", -who => $who); |
|
|
|
my $on_time = time - hook("protocol_on_since", -who => $who); |
|
|
|
(undef, $mins, $hrs, $days, undef, undef, undef) = gmtime($on_time); |
|
|
|
(undef, $mins, $hrs, $days, undef, undef, undef) = gmtime($on_time); |
|
|
|
$days--; |
|
|
|
$days--; |
|
|
@ -117,6 +119,7 @@ sub init |
|
|
|
hook("tk_bindwheel", -window => $self->{text}); |
|
|
|
hook("tk_bindwheel", -window => $self->{text}); |
|
|
|
|
|
|
|
|
|
|
|
$self->geometry("650x430") if $^O =~ /Win32/; |
|
|
|
$self->geometry("650x430") if $^O =~ /Win32/; |
|
|
|
|
|
|
|
$self->deiconify; |
|
|
|
|
|
|
|
|
|
|
|
$self->OnDestroy([\&on_destroy, $self]); |
|
|
|
$self->OnDestroy([\&on_destroy, $self]); |
|
|
|
$self->bind("<Escape>", [$self, "destroy"]); |
|
|
|
$self->bind("<Escape>", [$self, "destroy"]); |
|
|
|