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/Task.pm

    r10574 r10575  
    169169        if (not $event_hooks_initialized) { 
    170170            $event_hooks_initialized = 1; 
    171             my $main = Padre->ide->wx->main; 
     171            my $main = Padre->ide->wx; 
    172172            Wx::Event::EVT_COMMAND( 
    173173                $main, 
     
    425425# The main-thread stdout hook 
    426426sub _on_stdout { 
    427     my ( $main, $event ) = @_; 
     427    my ( $wx, $event ) = @_; 
    428428    @_ = (); # hack to avoid "Scalars leaked" 
     429    my $main = $wx->main; 
    429430    my $out = $main->output(); 
    430431    $main->show_output(1); 
     
    436437# The main-thread stderr hook 
    437438sub _on_stderr { 
    438     my ( $main, $event ) = @_; 
     439    my ( $wx, $event ) = @_; 
    439440    @_ = (); # hack to avoid "Scalars leaked" 
     441    my $main = $wx->main; 
    440442    my $out = $main->output(); 
    441443    $main->show_output(1); 
     
    532534 
    533535    Wx::PostEvent( 
    534         $Padre::TaskManager::_main, 
     536        Padre->ide->wx, 
    535537        Wx::PlThreadEvent->new( -1, $eventid, $data ), 
    536538    ); 
Note: See TracChangeset for help on using the changeset viewer.