ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/gde/GCE/PickWindow.pm
(Generate patch)

Comparing deliantra/gde/GCE/PickWindow.pm (file contents):
Revision 1.27 by root, Thu Dec 27 22:28:01 2007 UTC vs.
Revision 1.28 by root, Tue Nov 3 13:52:06 2009 UTC

23use GCE::DragHelper; 23use GCE::DragHelper;
24 24
25use Glib::Object::Subclass 25use Glib::Object::Subclass
26 Gtk2::Window; 26 Gtk2::Window;
27 27
28use strict; 28use common::sense;
29 29
30sub INIT_INSTANCE { 30sub INIT_INSTANCE {
31 my ($self) = @_; 31 my ($self) = @_;
32 32
33 $self->{earchs} = editor_archs (); 33 $self->{earchs} = editor_archs;
34 34
35 for (keys %{$self->{earchs}}) { 35 while (my ($k, $v) = each %{ $self->{earchs} }) {
36 my @a = split /\//; 36 $k =~ /^([^\/]+)/ or next;
37 push @{$self->{toplevel_archs}->{$a[0]}}, @{$self->{earchs}->{$_}}; 37 push @{$self->{toplevel_archs}->{$1}}, @$v;
38 } 38 }
39 39
40 $self->set_title ("gce - picker"); 40 $self->set_title ("gce - picker");
41 41
42 $self->add (my $hb = Gtk2::VBox->new); 42 $self->add (my $hb = Gtk2::VBox->new);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines