+
+#ifdef MODEST_TOOLKIT_HILDON2
+ gboolean show_priority = FALSE;
+ TnyHeaderFlags priority_flags;
+
+ priority_flags = flags & TNY_HEADER_FLAG_PRIORITY_MASK;
+ if (priority_flags == TNY_HEADER_FLAG_HIGH_PRIORITY) {
+ show_priority = TRUE;
+ gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon), MODEST_HEADER_ICON_HIGH, GTK_ICON_SIZE_MENU);
+ } else if (priority_flags == TNY_HEADER_FLAG_LOW_PRIORITY) {
+ show_priority = TRUE;
+ gtk_image_set_from_icon_name (GTK_IMAGE (priv->priority_icon), MODEST_HEADER_ICON_LOW, GTK_ICON_SIZE_MENU);
+ }
+
+ if (show_priority && MODEST_IS_COMPACT_MAIL_HEADER_VIEW (priv->mail_header_view)) {
+ gtk_widget_show_all (priv->priority_box);
+ } else {
+ gtk_widget_hide_all (priv->priority_box);
+ }
+#endif
+