Fix the 'close' menu entry and close button when viewing multiple canvases of the...
[synfig.git] / synfig-studio / trunk / src / gtkmm / canvasview.h
index 1ba3dcf..17cedda 100644 (file)
@@ -6,6 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2007 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -504,8 +505,11 @@ public:
        //! Updates the title of the window
        void update_title();
 
+       //! Closes this document
+       bool close_instance();
+
        //! Closes this canvas view
-       bool close();
+       bool close_view();
 
        //!     Stops the currently executing action
        /*! \see get_cancel_status(), reset_cancel_status(), IsWorking */
@@ -589,6 +593,8 @@ public:
 
        void present();
 
+       bool is_playing() { return is_playing_; }
+
        /*
  -- ** -- S I G N A L   T E R M I N A L S -------------------------------------
        */
@@ -675,6 +681,7 @@ private:
        bool on_audio_scrub();
 
 protected:
+       bool close_instance_when_safe();
        bool on_delete_event(GdkEventAny* event);
 
        /*