Fixes NB#125952, modality issue when trying to open a new editor after the "lose...
[modest] / src / widgets / modest-window.h
index cd159d4..3084d2b 100644 (file)
@@ -53,10 +53,19 @@ typedef GtkWindowClass ModestWindowParentClass;
 #if MODEST_HILDON_API == 0
 #include <hildon-widgets/hildon-window.h>
 #else
+#ifdef MODEST_TOOLKIT_HILDON2
+#include <hildon/hildon-stackable-window.h>
+#else
 #include <hildon/hildon-window.h>
+#endif
 #endif /*MODEST_HILDON_API == 0*/
+#ifdef MODEST_TOOLKIT_HILDON2
+typedef HildonStackableWindow      ModestWindowParent;
+typedef HildonStackableWindowClass ModestWindowParentClass;
+#else
 typedef HildonWindow      ModestWindowParent;
 typedef HildonWindowClass ModestWindowParentClass;
+#endif
 
 #ifndef GTK_STOCK_FULLSCREEN
 #define GTK_STOCK_FULLSCREEN ""
@@ -142,6 +151,28 @@ const gchar* modest_window_get_active_account (ModestWindow *self);
 void modest_window_set_active_account (ModestWindow *self, const gchar *active_account);
 
 /**
+ * modest_window_get_active_mailbox:
+ * @self: a modest window instance
+ * 
+ * get the name of the active mailbox
+ * 
+ * Returns: the active mailbox as a constant string
+ */    
+const gchar* modest_window_get_active_mailbox (ModestWindow *self);
+
+
+
+/**
+ * modest_window_set_active_account:
+ * @self: a modest window instance
+ * @active_mailbox: a new active mailbox name for this window
+ * 
+ * set the active mailbox for this window.
+ * 
+ */    
+void modest_window_set_active_mailbox (ModestWindow *self, const gchar *active_mailbox);
+
+/**
  * modest_window_set_zoom:
  * @window: a #ModestWindow instance
  * @zoom: the zoom level (1.0 is no zoom)