Show
Ignore:
Timestamp:
06/10/06 14:14:55 (2 years ago)
Author:
jordi
Message:

configure script now sets a Makefile condition about printing support. A new empty print dialog has been added.

Files:
1 modified

Legend:

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

    r212 r213  
    2626#include "PageView.h" 
    2727#include "PreferencesView.h" 
     28#if defined (HAVE_CUPS) 
     29#include "PrintView.h" 
     30#endif // HAVE_CUPS 
    2831#include "MainView.h" 
    2932 
     
    543546} 
    544547 
    545 void  
     548void 
    546549MainView::sensitiveZoomWidth (gboolean sensitive) 
    547550{ 
    548     GtkAction *zoomWidth =  
     551    GtkAction *zoomWidth = 
    549552        gtk_ui_manager_get_action (m_UIManager, "/MenuBar/ViewMenu/ZoomWidth"); 
    550553    gtk_action_set_sensitive (zoomWidth, sensitive); 
    551554} 
    552555 
    553 void  
     556void 
    554557MainView::show (void) 
    555 {     
     558{ 
    556559    Config &config = Config::getConfig (); 
    557560    gtk_window_set_default_size (GTK_WINDOW (m_MainWindow), 
     
    563566} 
    564567 
    565 void  
     568void 
    566569MainView::showErrorMessage (const gchar *title, const gchar *body) 
    567570{ 
     
    681684    return new PreferencesView (GTK_WINDOW (m_MainWindow)); 
    682685} 
     686 
     687#if defined (HAVE_CUPS) 
     688IPrintView * 
     689MainView::getPrintView () 
     690{ 
     691    return new PrintView (GTK_WINDOW (m_MainWindow)); 
     692} 
     693#endif // HAVE_CUPS 
    683694 
    684695void 
     
    11971208 
    11981209    MainPter *pter = (MainPter *)data; 
     1210    pter->printActivated (); 
    11991211} 
    12001212#endif // HAVE_CUPS