]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cairo.cpp
Initial work on virtual file system support for the WebKitGTK+ backend. It now suppor...
[wxWidgets.git] / src / common / cairo.cpp
index fbee7a236c172acd754703650960cc707efdbce4..ad2ae52e1af5a252ff4eaeaada97e650cbfed371 100644 (file)
@@ -3,7 +3,7 @@
 // Purpose:     Cairo library
 // Author:      Anthony Betaudeau
 // Created:     2007-08-25
-// RCS-ID:      $Id: cairo.cpp 44625 2007-08-25 11:35:04Z VZ $
+// RCS-ID:      $Id$
 // Copyright:   (c) Anthony Bretaudeau
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -41,6 +41,7 @@ wxCairoLibrary::wxCairoLibrary()
     if ( !m_ok )
         return;
 
+#if wxUSE_PANGO
     m_libPangoCairo.Load("libpangocairo-1.0.so.0");
     m_ok = m_libPangoCairo.IsLoaded();
     if ( !m_ok )
@@ -48,6 +49,7 @@ wxCairoLibrary::wxCairoLibrary()
         m_libCairo.Unload();
         return;
     }
+#endif
 
     m_ok = InitializeMethods();
 }
@@ -129,8 +131,10 @@ bool wxCairoLibrary::InitializeMethods()
     wxDL_METHOD_LOAD(m_libCairo, cairo_surface_destroy);
     wxDL_METHOD_LOAD(m_libCairo, cairo_translate);
 
+#if wxUSE_PANGO
     wxDL_METHOD_LOAD(m_libPangoCairo, pango_cairo_update_layout);
     wxDL_METHOD_LOAD(m_libPangoCairo, pango_cairo_show_layout);
+#endif
 
     return true;
 }