#include <string.h>
#include <gtk/gtk.h>
+#include <modest-defs.h>
#include <modest-text-utils.h>
#include <modest-expander-mail-header-view.h>
#include <modest-tny-folder.h>
GtkSizeGroup *labels_size_group;
gboolean is_outgoing;
gboolean is_draft;
+ gboolean is_loading;
TnyHeader *header;
TnyHeaderFlags priority_flags;
ModestDatetimeFormatter *datetime_formatter;
static void modest_expander_mail_header_view_set_priority (ModestMailHeaderView *self, TnyHeaderFlags flags);
static void modest_expander_mail_header_view_set_priority_default (ModestMailHeaderView *headers_view,
TnyHeaderFlags flags);
+static gboolean modest_expander_mail_header_view_get_loading (ModestMailHeaderView *headers_view);
+static gboolean modest_expander_mail_header_view_get_loading_default (ModestMailHeaderView *headers_view);
+static void modest_expander_mail_header_view_set_branding (ModestMailHeaderView *headers_view, const gchar *brand_name, const GdkPixbuf *brand_icon);
+static void modest_expander_mail_header_view_set_branding_default (ModestMailHeaderView *headers_view, const gchar *brand_name, const GdkPixbuf *brand_icon);
+static void modest_expander_mail_header_view_set_loading (ModestMailHeaderView *headers_view, gboolean is_loading);
+static void modest_expander_mail_header_view_set_loading_default (ModestMailHeaderView *headers_view, gboolean is_loading);
static const GtkWidget *modest_expander_mail_header_view_add_custom_header (ModestMailHeaderView *self,
const gchar *label,
GtkWidget *custom_widget,
priv->is_outgoing = FALSE;
priv->is_draft = FALSE;
+ priv->is_loading = FALSE;
+
return;
}
klass->get_priority = modest_expander_mail_header_view_get_priority;
klass->set_priority = modest_expander_mail_header_view_set_priority;
+ klass->get_loading = modest_expander_mail_header_view_get_loading;
+ klass->set_loading = modest_expander_mail_header_view_set_loading;
+ klass->set_branding = modest_expander_mail_header_view_set_branding;
klass->add_custom_header = modest_expander_mail_header_view_add_custom_header;
return;
klass->clear_func = modest_expander_mail_header_view_clear_default;
klass->set_priority_func = modest_expander_mail_header_view_set_priority_default;
klass->get_priority_func = modest_expander_mail_header_view_get_priority_default;
+ klass->set_loading_func = modest_expander_mail_header_view_set_loading_default;
+ klass->get_loading_func = modest_expander_mail_header_view_get_loading_default;
+ klass->set_branding_func = modest_expander_mail_header_view_set_branding_default;
klass->add_custom_header_func = modest_expander_mail_header_view_add_custom_header_default;
object_class->finalize = modest_expander_mail_header_view_finalize;
gtk_widget_show (priv->priority_icon);
}
}
+
+static gboolean
+modest_expander_mail_header_view_get_loading (ModestMailHeaderView *headers_view)
+{
+ return MODEST_EXPANDER_MAIL_HEADER_VIEW_GET_CLASS (headers_view)->get_loading_func (headers_view);
+}
+
+static gboolean
+modest_expander_mail_header_view_get_loading_default (ModestMailHeaderView *headers_view)
+{
+ ModestExpanderMailHeaderViewPriv *priv;
+
+ g_return_val_if_fail (MODEST_IS_EXPANDER_MAIL_HEADER_VIEW (headers_view), FALSE);
+ priv = MODEST_EXPANDER_MAIL_HEADER_VIEW_GET_PRIVATE (headers_view);
+
+ return priv->is_loading;
+}
+
+static void
+modest_expander_mail_header_view_set_loading (ModestMailHeaderView *headers_view, gboolean is_loading)
+{
+ MODEST_EXPANDER_MAIL_HEADER_VIEW_GET_CLASS (headers_view)->set_loading_func (headers_view, is_loading);
+}
+
+static void
+modest_expander_mail_header_view_set_loading_default (ModestMailHeaderView *headers_view, gboolean is_loading)
+{
+ ModestExpanderMailHeaderViewPriv *priv;
+
+ g_return_if_fail (MODEST_IS_EXPANDER_MAIL_HEADER_VIEW (headers_view));
+ priv = MODEST_EXPANDER_MAIL_HEADER_VIEW_GET_PRIVATE (headers_view);
+
+ priv->is_loading = is_loading;
+}
+
+static void
+modest_expander_mail_header_view_set_branding (ModestMailHeaderView *headers_view, const gchar *brand_name, const GdkPixbuf *brand_icon)
+{
+ MODEST_EXPANDER_MAIL_HEADER_VIEW_GET_CLASS (headers_view)->set_branding_func (headers_view, brand_name, brand_icon);
+}
+
+static void
+modest_expander_mail_header_view_set_branding_default (ModestMailHeaderView *headers_view, const gchar *brand_name, const GdkPixbuf *brand_icon)
+{
+ g_return_if_fail (MODEST_IS_EXPANDER_MAIL_HEADER_VIEW (headers_view));
+
+ /* Empty implementation */
+ return;
+}