[passepartout] properly initialize the filter



commit 6fc415ec9910d5343c33e67482b0d67af8acfa41
Author: Sven Herzberg <herzi lanedo com>
Date:   Fri May 1 20:37:56 2009 +0200

    properly initialize the filter
    
    * po/POTFILES.in: added the filter source file
    * src/pptout/filter.cc: set the name and add a filetype extension
    * src/pptout/window.cc: just use the passepartout filter, without any
      configuration
---
 po/POTFILES.in       |    1 +
 src/pptout/filter.cc |    6 ++++++
 src/pptout/window.cc |    3 ---
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5fd9538..8e62a13 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,6 +7,7 @@ src/pptout/document/basicframe.cc
 src/pptout/document/imageframe.cc
 src/pptout/document/rasterframe.cc
 src/pptout/document/textframe.cc
+src/pptout/filter.cc
 src/pptout/imagemeta.cc
 src/pptout/inspiration.cc
 src/pptout/main.cc
diff --git a/src/pptout/filter.cc b/src/pptout/filter.cc
index 7aa5498..c2e5b78 100644
--- a/src/pptout/filter.cc
+++ b/src/pptout/filter.cc
@@ -25,11 +25,17 @@
 
 #include "filter.h"
 
+#include "defines.h"
+
+#include <glib/gi18n.h>
+
 namespace Passepartout
 {
 
 Filter::Filter (void)
 {
+  set_name (_("Passepartout Document files (.pp)"));
+  add_pattern ("*.pp");
 }
 
 }
diff --git a/src/pptout/window.cc b/src/pptout/window.cc
index 1d8f7d5..ba15c7f 100644
--- a/src/pptout/window.cc
+++ b/src/pptout/window.cc
@@ -43,9 +43,6 @@ public:
 
 FrameWindow::Private::Private()
 {
-  pptout.set_name(_("Passepartout Document files (.pp)"));
-  pptout.add_pattern("*.pp");
-
   all.set_name(_("All files"));
   all.add_pattern("*");
 }



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