[passepartout] properly initialize gnomevfs



commit 8c2004656dc0ae2a9be8cc4d3e25c045d5af2438
Author: Sven Herzberg <herzi lanedo com>
Date:   Wed Apr 15 15:48:43 2009 +0200

    properly initialize gnomevfs
    
    * src/pptout/main.cc: initialize gnomevfs properly; otherwise we're going to
      trigger errors when opening the print preview
---
 src/pptout/main.cc |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/pptout/main.cc b/src/pptout/main.cc
index 1672307..8c72da4 100644
--- a/src/pptout/main.cc
+++ b/src/pptout/main.cc
@@ -10,6 +10,10 @@
 #include "widget/errordialog.h"
 #include "defines.h" // VERSION
 
+#ifdef HAVE_GNOME
+#include <libgnomevfs/gnome-vfs.h>
+#endif
+
 #include "window.h"
 #include "config.h"
 #include "icons/icon_48.h"
@@ -38,8 +42,10 @@ int main(int argc, char *argv[]) {
     // initialise gtkmm
     Gtk::Main kit(argc, argv);
 
-    // initialize GnomeCanvas
-    Gnome::Canvas::init();
+    Gnome::Canvas::init ();
+#ifdef HAVE_GNOME
+    gnome_vfs_init ();
+#endif
 
     // register new stock items
     register_stock_items();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]