From: Alberto Garcia Date: Wed, 24 Oct 2007 15:21:27 +0000 (+0000) Subject: Use the constant name (TNY_HEADER_FLAG_NORMAL_PRIORITY) and X-Git-Tag: git_migration_finished~2218 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c75ddb2ee5d517982b628597e11701985e3f2f26 Use the constant name (TNY_HEADER_FLAG_NORMAL_PRIORITY) and not its value (0) to check the priority of a message. pmo-trunk-r3573 --- diff --git a/src/widgets/modest-mail-header-view.c b/src/widgets/modest-mail-header-view.c index 58bad84..a91d79d 100644 --- a/src/widgets/modest-mail-header-view.c +++ b/src/widgets/modest-mail-header-view.c @@ -585,7 +585,7 @@ modest_mail_header_view_set_priority (ModestMailHeaderView *headers_view, priv->priority_flags = flags & (TNY_HEADER_FLAG_PRIORITY); - if (priv->priority_flags == 0) { + if (priv->priority_flags == TNY_HEADER_FLAG_NORMAL_PRIORITY) { if (priv->priority_icon != NULL) { gtk_widget_destroy (priv->priority_icon); priv->priority_icon = NULL;