Ticket #3651: 3651-AppStartListFix.patch

File 3651-AppStartListFix.patch, 1.2 KB (added by dsizzle, 5 years ago)

Patch to make app scroll to top of char list, and select first unicode block on app start

  • src/apps/charactermap/CharacterView.cpp

    From e8ea596b115223e837178e93f908eec15faab472 Mon Sep 17 00:00:00 2001
    From: dsizzle <dcieslak@yahoo.com>
    Date: Wed, 26 Nov 2014 18:59:02 +0000
    Subject: [PATCH] 3651: When app starts, ensure list is scrolled to top and
     unicode block list selects first item
    
    ---
     src/apps/charactermap/CharacterView.cpp   | 1 +
     src/apps/charactermap/CharacterWindow.cpp | 2 ++
     2 files changed, 3 insertions(+)
    
    diff --git a/src/apps/charactermap/CharacterView.cpp b/src/apps/charactermap/CharacterView.cpp
    index 529e2a9..aa13eae 100644
    a b CharacterView::CharacterView(const char* name)  
    3838    fCharacterFont.SetSize(fCharacterFont.Size() * 1.5f);
    3939
    4040    _UpdateFontSize();
     41    DoLayout();
    4142}
    4243
    4344
  • src/apps/charactermap/CharacterWindow.cpp

    diff --git a/src/apps/charactermap/CharacterWindow.cpp b/src/apps/charactermap/CharacterWindow.cpp
    index 2fd183b..77964c0 100644
    a b CharacterWindow::CharacterWindow()  
    275275    fUnicodeBlockView->SetTarget(this);
    276276
    277277    fFilterControl->MakeFocus();
     278   
     279    fUnicodeBlockView->SelectBlockForCharacter(0);
    278280}
    279281
    280282