projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afe0203
)
fix some menu sensitivity issues
author
Paul
<paul@claws-mail.org>
Wed, 16 Nov 2016 08:47:03 +0000
(08:47 +0000)
committer
Paul
<paul@claws-mail.org>
Wed, 16 Nov 2016 08:47:03 +0000
(08:47 +0000)
src/mainwindow.c
patch
|
blob
|
history
diff --git
a/src/mainwindow.c
b/src/mainwindow.c
index e8e759e6dee504a7f2f01dc128346535ccb84c45..e03c55e2a10b73e56558f5c21df41a7d3e8be532 100644
(file)
--- a/
src/mainwindow.c
+++ b/
src/mainwindow.c
@@
-2977,7
+2977,7
@@
SensitiveCondMask main_window_get_current_state(MainWindow *mainwin)
if (mainwin->lock_count == 0 && !claws_is_starting())
UPDATE_STATE(M_UNLOCKED);
if (mainwin->lock_count == 0 && !claws_is_starting())
UPDATE_STATE(M_UNLOCKED);
- if (selection != SUMMARY_NONE)
+ if (selection != SUMMARY_NONE
&& selection != SUMMARY_SELECTED_NONE
)
UPDATE_STATE(M_MSG_EXIST);
if (item && item->path && folder_item_parent(item) && !item->no_select) {
UPDATE_STATE(M_EXEC);
UPDATE_STATE(M_MSG_EXIST);
if (item && item->path && folder_item_parent(item) && !item->no_select) {
UPDATE_STATE(M_EXEC);
@@
-3151,7
+3151,7
@@
void main_window_set_menu_sensitive(MainWindow *mainwin)
gint i;
gboolean mimepart_selected = FALSE;
gint i;
gboolean mimepart_selected = FALSE;
-#define N_ENTRIES 8
5
+#define N_ENTRIES 8
8
static struct {
const gchar *entry;
SensitiveCondMask cond;
static struct {
const gchar *entry;
SensitiveCondMask cond;
@@
-3185,8
+3185,11
@@
do { \
FILL_TABLE("Menu/View/Goto/Prev", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/Next", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevUnread", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/Prev", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/Next", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevUnread", M_MSG_EXIST);
+ FILL_TABLE("Menu/View/Goto/NextUnread", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevNew", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevNew", M_MSG_EXIST);
+ FILL_TABLE("Menu/View/Goto/NextNew", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevMarked", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevMarked", M_MSG_EXIST);
+ FILL_TABLE("Menu/View/Goto/NextMarked", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/PrevLabeled", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/NextLabeled", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/ParentMessage", M_SINGLE_TARGET_EXIST);
FILL_TABLE("Menu/View/Goto/PrevLabeled", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/NextLabeled", M_MSG_EXIST);
FILL_TABLE("Menu/View/Goto/ParentMessage", M_SINGLE_TARGET_EXIST);