fix 'Hide read messages' sensitivity

This commit is contained in:
Paul Mangan 2002-02-01 15:19:21 +00:00
parent 521f232afa
commit 1ef3cdf1fd
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2002-02-01 [paul] 0.7.0claws44
* src/mainwindow.c
fix '/View/Hide read messages' sensitivity when all
messages in a folder are hidden
2002-02-01 [paul] 0.7.0claws43
* src/main.c

View file

@ -8,7 +8,7 @@ MINOR_VERSION=7
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=claws43
EXTRA_VERSION=claws44
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target

View file

@ -1364,7 +1364,8 @@ typedef enum
M_THREADED = 1 << 7,
M_UNTHREADED = 1 << 8,
M_NEWS = 1 << 9,
M_HAVE_NEWS_ACCOUNT = 1 << 10
M_HAVE_NEWS_ACCOUNT = 1 << 10,
M_HIDE_READ_MSG = 1 << 11
} SensitiveCond;
static SensitiveCond main_window_get_current_state(MainWindow *mainwin)
@ -1384,7 +1385,11 @@ static SensitiveCond main_window_get_current_state(MainWindow *mainwin)
if (item->threaded)
state |= M_THREADED;
else
state |= M_UNTHREADED;
state |= M_UNTHREADED;
if (selection == SUMMARY_NONE && item->hide_read_msgs
|| selection != SUMMARY_NONE)
state |= M_HIDE_READ_MSG;
}
if (selection == SUMMARY_SELECTED_SINGLE ||
selection == SUMMARY_SELECTED_MULTIPLE)
@ -1478,7 +1483,7 @@ void main_window_set_menu_sensitive(MainWindow *mainwin)
{"/View/Sort" , M_MSG_EXIST},
{"/View/Thread view" , M_UNTHREADED},
{"/View/Unthread view" , M_THREADED},
{"/View/Hide read messages" , M_MSG_EXIST},
{"/View/Hide read messages" , M_HIDE_READ_MSG},
{"/View/Go to" , M_MSG_EXIST},
{"/View/Go to/Prev message" , M_MSG_EXIST},
{"/View/Go to/Next message" , M_MSG_EXIST},