Use the constant name (TNY_HEADER_FLAG_NORMAL_PRIORITY) and
authorAlberto Garcia <agarcia@igalia.com>
Wed, 24 Oct 2007 15:21:27 +0000 (15:21 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 24 Oct 2007 15:21:27 +0000 (15:21 +0000)
not its value (0) to check the priority of a message.

pmo-trunk-r3573

src/widgets/modest-mail-header-view.c

index 58bad84..a91d79d 100644 (file)
@@ -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;