[passepartout] dropped the text_frame_dialog variable



commit 8a503432d724f9d916f4b7ee72e0ed05f12d6d62
Author: Sven Herzberg <herzi lanedo com>
Date:   Sat May 2 10:28:46 2009 +0200

    dropped the text_frame_dialog variable
    
    * src/pptout/window.cc,
    * src/pptout/window.h: create the dialog when we need it
---
 src/pptout/window.cc |    4 ++--
 src/pptout/window.h  |    1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/pptout/window.cc b/src/pptout/window.cc
index 85ba94e..f002ce5 100644
--- a/src/pptout/window.cc
+++ b/src/pptout/window.cc
@@ -104,8 +104,6 @@ FrameWindow::constructor_common (void)
 {
   p = new Private ();
 
-  text_frame_dialog.reset(new TextFrameDialog(*this, document_view));
-
   pagesel = manage(new Pagesel(document_view));
 
   // create menus and toolbar
@@ -277,6 +275,8 @@ FrameWindow::insert_image (void)
 void
 FrameWindow::insert_text (void)
 {
+  std::auto_ptr<TextFrameDialog> text_frame_dialog (new TextFrameDialog(*this, document_view));
+
   text_frame_dialog->show_raise ();
 }
 
diff --git a/src/pptout/window.h b/src/pptout/window.h
index 01a7b03..fbc2fee 100644
--- a/src/pptout/window.h
+++ b/src/pptout/window.h
@@ -41,7 +41,6 @@ private:
   Gtk::Statusbar *cafe_opera;
   Zoomer zoom_factor;
   DocumentView document_view;
-  std::auto_ptr<TextFrameDialog> text_frame_dialog;
   Pagesel *pagesel;
   Glib::RefPtr<Gtk::UIManager> uimanager;
   Glib::RefPtr<Gtk::ActionGroup> main_group, doc_group, page_group,



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