Changeset 12403


Ignore:
Timestamp:
08/30/10 07:37:49 (18 months ago)
Author:
zenogantner
Message:

wider KeyBindings? dialog s.t. German translation is displayed nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Dialog/KeyBindings.pm

    r12396 r12403  
    3333 
    3434    # Minimum dialog size 
    35     $self->SetMinSize( [ 717, 550 ] ); 
     35    $self->SetMinSize( [ 770, 550 ] ); 
    3636 
    3737    # Create sizer that will host all controls 
     
    7070        Wx::wxLC_REPORT | Wx::wxLC_SINGLE_SEL, 
    7171    ); 
    72     $self->{list}->InsertColumn( 0, Wx::gettext('Action') ); 
    73     $self->{list}->InsertColumn( 1, Wx::gettext('Description') ); 
    74     $self->{list}->InsertColumn( 2, Wx::gettext('Shortcut') ); 
     72    my @titles = qw(Action Description Shortcut); 
     73    foreach my $i ( 0 .. 2 ) { 
     74        $self->{list}->InsertColumn( $i, Wx::gettext( $titles[$i] ) ); 
     75        $self->{list}->SetColumnWidth( $i, Wx::wxLIST_AUTOSIZE ); 
     76    } 
    7577 
    7678    # TODO add tooltip with the comments 
     
    107109    $self->{key}->SetSelection(0); 
    108110 
     111    # TODO tooltips for all buttons 
     112 
    109113    # Set key binding button 
    110114    $self->{button_set} = Wx::Button->new( 
     
    148152    # Value setter sizer 
    149153    my $value_sizer = Wx::BoxSizer->new(Wx::wxHORIZONTAL); 
    150     $value_sizer->Add( $shortcut_label,, 0, Wx::wxALIGN_CENTER_VERTICAL, 5 ); 
     154    $value_sizer->Add( $shortcut_label, 0, Wx::wxALIGN_CENTER_VERTICAL, 5 ); 
    151155    $value_sizer->AddStretchSpacer; 
    152156    $value_sizer->Add( $modifier_sizer, 0, Wx::wxALIGN_CENTER_VERTICAL, 5 ); 
Note: See TracChangeset for help on using the changeset viewer.