From 1ef3cdf1fdbc62e8a6ca491681d282ad9af63f4d Mon Sep 17 00:00:00 2001 From: Paul Mangan Date: Fri, 1 Feb 2002 15:19:21 +0000 Subject: [PATCH] fix 'Hide read messages' sensitivity --- ChangeLog.claws | 6 ++++++ configure.in | 2 +- src/mainwindow.c | 11 ++++++++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index fa827db98..ec48820ee 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index ef3358805..00a63972a 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/mainwindow.c b/src/mainwindow.c index a0991420d..ed955176a 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -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}, -- 2.25.1