Ignore:
Timestamp:
02/07/10 03:31:29 (2 years ago)
Author:
tsee
Message:

submersible_toaster: I think this might resolve the issue with catching events from main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/TaskManager.pm

    r10573 r10575  
    132132    } 
    133133 
    134     my $main = Padre->ide->wx->main; 
     134    my $main = Padre->ide->wx; 
    135135    _init_events($main); 
    136136 
     
    556556 
    557557sub on_task_start_event { 
    558     my ( $main, $event ) = @_; @_ = (); # hack to avoid "Scalars leaked" 
     558    my ( $wx, $event ) = @_; @_ = (); # hack to avoid "Scalars leaked" 
    559559                                        # TO DO/FIXME: 
    560560                                        # This should somehow get at the specific TaskManager object 
    561561                                        # instead of going through the Padre globals! 
     562    my $main = $wx->main; 
    562563    my $manager           = Padre->ide->task_manager; 
    563564    my $tid_and_task_type = $event->GetData(); 
Note: See TracChangeset for help on using the changeset viewer.