2007-05-07 Murray Cumming <murrayc@murrayc.com>
[modest] / src / widgets / modest-window.h
index 90b617a..edc9b34 100644 (file)
@@ -39,6 +39,8 @@ G_BEGIN_DECLS
 #include <config.h>
 #endif /*HAVE_CONFIG_H*/
 
+#include <gtk/gtk.h>
+
 /* 
  * admittedly, the ifdefs for gtk and maemo are rather ugly; still
  * this way is probably the easiest to maintain
@@ -50,7 +52,11 @@ typedef GtkWindowClass ModestWindowParentClass;
 #endif /* MODEST_PLATFORM_GNOME */
 
 #ifdef MODEST_PLATFORM_MAEMO
+#ifdef MODEST_HILDON_VERSION_0
 #include <hildon-widgets/hildon-window.h>
+#else
+#include <hildon/hildon-window.h>
+#endif /*MODEST_HILDON_VERSION_0*/
 typedef HildonWindow      ModestWindowParent;
 typedef HildonWindowClass ModestWindowParentClass;
 
@@ -84,6 +90,8 @@ struct _ModestWindowClass {
        gboolean (*zoom_plus_func) (ModestWindow *self);
        gboolean (*zoom_minus_func) (ModestWindow *self);
        void (*show_toolbar_func) (ModestWindow *self, gboolean show_toolbar);
+       
+       void (*save_state_func) (ModestWindow *self);
 };
 
 /**
@@ -168,6 +176,16 @@ gboolean modest_window_zoom_minus (ModestWindow *window);
  **/
 void     modest_window_show_toolbar (ModestWindow *window, 
                                     gboolean show_toolbar);
+                                    
+/**
+ * modest_window_save_state:
+ * @window: 
+ * 
+ * Ask the window to save its settings for loading again later.
+ * This actually invokes the save_setting_func vfunc, which 
+ * derived windows should implement.
+ **/
+void     modest_window_save_state (ModestWindow *window);
 
 G_END_DECLS