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

Comparing deliantra/Deliantra-Client/DC/UI/Dockbar.pm (file contents):
Revision 1.2 by elmex, Sun Jan 6 17:40:45 2008 UTC vs.
Revision 1.3 by root, Sun Jan 13 08:47:00 2008 UTC

1package DC::UI::Dockbar; 1package DC::UI::Dockbar;
2
2use DC::UI::Dockable; 3use DC::UI::Dockable;
3 4
4use strict; 5use strict;
5use utf8; 6use utf8;
6 7
174sub is_docked { 175sub is_docked {
175 my ($self, $dockable) = @_; 176 my ($self, $dockable) = @_;
176 return not exists $self->{dock_windows}->{"$dockable"}; 177 return not exists $self->{dock_windows}->{"$dockable"};
177} 178}
178 179
179# switiching to a page 180# switching to a page
180sub user_switch_to_page { 181sub user_switch_to_page {
181 my ($self, $page) = @_; 182 my ($self, $page) = @_;
182 $page = $page eq '0' ? 10 : $page; 183 $page = $page eq '0' ? 10 : $page;
183 184
184 my @tabs = $self->{notebook}->pages; 185 my @tabs = $self->{notebook}->pages;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines