ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.159 by root, Mon Apr 24 03:19:42 2006 UTC vs.
Revision 1.160 by root, Mon Apr 24 03:33:51 2006 UTC

14our $BUTTON_STATE; 14our $BUTTON_STATE;
15 15
16sub check_tooltip { 16sub check_tooltip {
17 if (!$GRAB) { 17 if (!$GRAB) {
18 for (my $widget = $HOVER; $widget; $widget = $widget->{parent}) { 18 for (my $widget = $HOVER; $widget; $widget = $widget->{parent}) {
19 if (exists $widget->{tooltip}) { 19 if (length $widget->{tooltip}) {
20 20
21 if ($TOOLTIP->{owner} != $widget) { 21 if ($TOOLTIP->{owner} != $widget) {
22 $TOOLTIP->{owner} = $widget; 22 $TOOLTIP->{owner} = $widget;
23 23
24 my $tip = $widget->{tooltip}; 24 my $tip = $widget->{tooltip};
2192} 2192}
2193 2193
2194sub size_request { 2194sub size_request {
2195 my ($self) = @_; 2195 my ($self) = @_;
2196 2196
2197 $self->child->set_max_size ($::WIDTH * 0.2); 2197 $self->child->set_max_size ($::WIDTH * 0.3);
2198 2198
2199 my ($w, $h) = @{$self->child}{qw(req_w req_h)}; 2199 my ($w, $h) = @{$self->child}{qw(req_w req_h)};
2200 2200
2201 ($w + 4, $h + 4) 2201 ($w + 4, $h + 4)
2202} 2202}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines