X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window.h;h=3084d2bce34febd3a7e67ebeca6e01d07e8c9233;hb=8951c81ffcab3127897391ddf312a2f990a12c12;hp=03acc1c0c600eb39eb045a127a3bed74c1ddd2d9;hpb=655cee5590a575cd9c2818ae49031c5d7f0be193;p=modest diff --git a/src/widgets/modest-window.h b/src/widgets/modest-window.h index 03acc1c..3084d2b 100644 --- a/src/widgets/modest-window.h +++ b/src/widgets/modest-window.h @@ -45,26 +45,33 @@ G_BEGIN_DECLS * admittedly, the ifdefs for gtk and maemo are rather ugly; still * this way is probably the easiest to maintain */ -#ifdef MODEST_PLATFORM_GNOME +#ifdef MODEST_TOOLKIT_GTK #include typedef GtkWindow ModestWindowParent; typedef GtkWindowClass ModestWindowParentClass; -#endif /* MODEST_PLATFORM_GNOME */ - -#ifdef MODEST_PLATFORM_MAEMO -#ifdef MODEST_HAVE_HILDON0_WIDGETS +#else +#if MODEST_HILDON_API == 0 #include #else +#ifdef MODEST_TOOLKIT_HILDON2 +#include +#else #include -#endif /*MODEST_HAVE_HILDON0_WIDGETS*/ +#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 "" #endif /*GTK_STOCK_FULLSCREEN*/ -#endif /*MODEST_PLATFORM_MAEMO */ +#endif /*!MODEST_TOOLKIT_GTK */ /* Dimmed state variables */ typedef struct _DimmedState { @@ -144,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)