fix 'Hide read messages' sensitivity
authorPaul Mangan <paul@claws-mail.org>
Fri, 1 Feb 2002 15:19:21 +0000 (15:19 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 1 Feb 2002 15:19:21 +0000 (15:19 +0000)
ChangeLog.claws
configure.in
src/mainwindow.c

index fa827db98f807ae7452a0927cc4bc11828f4a40d..ec48820ee1d146fb355f5e28e9fd15bd92d93ee4 100644 (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
 2002-02-01 [paul]      0.7.0claws43
 
        * src/main.c
index ef335880588eda0063d9e2a15ed6ce871ebad811..00a63972ac6d8cc476354f6d6edbf6e71c1c9e6b 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
 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
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index a0991420ddc772ee7ed84561211aadbfc473f717..ed955176ac748d2eecd5739a34557596cc5b8acc 100644 (file)
@@ -1364,7 +1364,8 @@ typedef enum
        M_THREADED            = 1 << 7,
        M_UNTHREADED          = 1 << 8,
        M_NEWS                = 1 << 9,
        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)
 } 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
                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)
        }               
        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/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},
                {"/View/Go to"                     , M_MSG_EXIST},
                {"/View/Go to/Prev message"        , M_MSG_EXIST},
                {"/View/Go to/Next message"        , M_MSG_EXIST},