X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-window.h;h=0c8b874813b03c00a4d0cc20572b18df5e0def17;hb=e81ca9261d24e4ad5997329a8bef54d10347fba7;hp=63bd1bd978dae930ebbc0183dbad980d88c295e3;hpb=fd3801d4e2aa9fcdf8baa83a4fee2e7da4b7bb1b;p=modest diff --git a/src/widgets/modest-window.h b/src/widgets/modest-window.h index 63bd1bd..0c8b874 100644 --- a/src/widgets/modest-window.h +++ b/src/widgets/modest-window.h @@ -45,31 +45,38 @@ 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 { guint n_selected; - gboolean already_opened_msg; + guint already_opened_msg; gboolean any_marked_as_deleted; gboolean all_marked_as_deleted; gboolean any_marked_as_seen; @@ -79,6 +86,7 @@ typedef struct _DimmedState { gboolean any_has_attachments; gboolean all_has_attachments; gboolean sent_in_progress; + gboolean all_selected; } DimmedState; /* convenience macros */ @@ -136,7 +144,8 @@ const gchar* modest_window_get_active_account (ModestWindow *self); * @self: a modest window instance * @active_account: a new active account name for this window * - * set the active account for this window + * set the active account for this window. + * NOTE: this must be a valid, non-pseudo account. * */ void modest_window_set_active_account (ModestWindow *self, const gchar *active_account); @@ -273,6 +282,26 @@ void modest_window_check_dimming_rules_group (ModestWindow *self, const gchar *group_name); +/** + * modest_window_enable_dimming: + * @self: a #ModestWindow instance object + * + * Enables UI dimming rules checking. + * + **/ +void modest_window_enable_dimming (ModestWindow *self); + + +/** + * modest_window_disable_dimming: + * @self: a #ModestWindow instance object + * + * Disables UI dimming rules checking. + * + **/ +void modest_window_disable_dimming (ModestWindow *self); + + void modest_window_disconnect_signals (ModestWindow *self);