Changeset 4772


Ignore:
Timestamp:
Jan 27, 2010, 10:33:12 PM (11 years ago)
Author:
ronosman
Message:

Fix Drag and drop regression : category tree's parent window is splitterwindow, not frame. Use wxTheApp to access frame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/Frame.pm

    r4765 r4772  
    20482048              wxDragCopy
    20492049              wxDragMove
     2050              wxTheApp
    20502051         /;
    20512052
     
    20532054    qw/
    20542055          tree
    2055           frame
    20562056      /
    20572057);
     
    20622062
    20632063  $self->tree($tree);
    2064   $self->frame($tree->GetParent);
     2064#  $self->frame($tree->GetParent);
     2065
    20652066  return $self;
    20662067}
     
    20702071sub OnDropText {
    20712072  my( $self, $x, $y, $textdata ) = @_;
     2073print $textdata;
    20722074
    20732075  # must be $VAR1 because $textdata is the result of Data::Dumper
     
    20882090             @items = grep { $self->tree->GetPlData( $_ ) != -1 } @items;
    20892091             
    2090            $self->frame->imagelist->categories(
     2092           wxTheApp->frame->imagelist->categories(
    20912093               [
    20922094                   map {
     
    20972099           );
    20982100           
    2099              $self->frame->imagelist->image_selection($VAR1);
    2100              $self->frame->ProcessImageSelection ;
     2101             wxTheApp->frame->imagelist->image_selection($VAR1);
     2102             wxTheApp->frame->ProcessImageSelection ;
    21012103      }   
    21022104  };
Note: See TracChangeset for help on using the changeset viewer.