Changeset 284

Show
Ignore:
Timestamp:
09/18/07 09:11:53 (12 months ago)
Author:
jordi
Message:

Applied patch by Alex Dedul which sets focus to the page view on load so the keyboards shortcuts works correctly without having to set manually (i.e., by using the mouse) the focus on it.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/THANKS

    r282 r284  
    22contributions: 
    33 
     4    - Alex Dedul <rotmer@gmail.com>, for his patch. 
    45    - Enrico Tröger <enrico.troeger@uvena.de>, for his full screen patch. 
    56    - Daniel Nylander <po@danielnylander.se>, for his Swedish translation. 
  • trunk/src/gtk/MainView.cxx

    r279 r284  
    249249    gtk_box_pack_start (GTK_BOX (m_MainBox), pageViewPaned, TRUE, TRUE, 0); 
    250250    gtk_widget_show (pageViewPaned); 
     251    // By default set focus to page view so user can navigate pdf document with 
     252    // keyboard right away without need to click to page view first 
     253    gtk_widget_grab_focus (m_PageView->getTopWidget ()); 
    251254    // Add the find bar. 
    252255    m_FindView = new FindView ();