Ignore:
Timestamp:
May 27, 2009, 10:25:22 PM (15 years ago)
Author:
ronosman
Message:

Feature 1012 and 1013 : improved Getting started and Preview panel.

File:
1 edited

Legend:

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

    r2597 r3357  
    2828  my $this = $class->SUPER::new( @_ );
    2929
    30   if( -e '../res/intro.html' ){
    31       $this->LoadPage(
    32           '../res/intro.html'
    33       );
    34   }
     30  return $this;
     31}
    3532
    36   return $this;
     33sub InitHrefCallbacks {
     34    my ( $self, $callbacks ) = @_;
     35   
     36    $callbacks ||={};
     37    $self->{HrefCallbacks} = $callbacks ;       
    3738}
    3839
     
    4041  my( $this, $link ) = @_;
    4142
    42   Wx::LogMessage( 'Link clicked: href="%s"', $link->GetHref() );
    43   $this->SUPER::OnLinkClicked( $link );
     43  my $href = $link->GetHref();
     44
     45  $this->{HrefCallbacks}->{$href}->() if exists $this->{HrefCallbacks}->{$href};
     46
    4447}
    4548
Note: See TracChangeset for help on using the changeset viewer.