Show
Ignore:
Timestamp:
04/12/06 16:17:43 (3 years ago)
Author:
jordi
Message:

Added support for native language and added the Spanish and Catalan translations.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/MainView.cxx

    r44 r45  
    3131// Constants. 
    3232static gint CURRENT_PAGE_POS = 5; 
     33static gint PAGE_VIEW_PADDING = 12; 
     34static gint SCROLLBARS_SIZE = 20; 
    3335 
    3436// Forward delarations. 
     
    370372    g_assert (NULL != width && "Tried to save the width to a NULL pointer."); 
    371373    g_assert (NULL != height && "Tried to save the height to a NULL pointer."); 
    372      
    373     *width = m_PageView->allocation.width - 12; 
    374     *height = m_PageViewScroll->allocation.height - 12; 
     374    
     375    gint scrollSize = SCROLLBARS_SIZE + PAGE_VIEW_PADDING * 2; 
     376    *width = m_PageViewScroll->allocation.width - scrollSize; 
     377    *height = m_PageViewScroll->allocation.height - scrollSize; 
    375378} 
    376379 
     
    420423                                    GTK_POLICY_AUTOMATIC); 
    421424    m_PageView = gtk_image_new  (); 
     425    gtk_misc_set_padding (GTK_MISC (m_PageView),  
     426                          PAGE_VIEW_PADDING, PAGE_VIEW_PADDING); 
    422427    gtk_scrolled_window_add_with_viewport ( 
    423428            GTK_SCROLLED_WINDOW (m_PageViewScroll), m_PageView); 
     
    431436{         
    432437    GtkActionGroup *actionGroup = gtk_action_group_new ("ePDFView"); 
     438    // Set the translation domain for labels and tooltips. 
     439    gtk_action_group_set_translation_domain (actionGroup, PACKAGE); 
    433440    // The data passed to all actions is the presenter 
    434441    gtk_action_group_add_actions (actionGroup, g_NormalEntries,