[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-104-g442757e
mones at claws-mail.org
mones at claws-mail.org
Mon Feb 26 10:20:40 CET 2018
The branch, gtk3 has been updated
via 442757e8684b6684932fab4b7804850612575c71 (commit)
from d7fef8966492824c635b98bce6848edb48cb7327 (commit)
Summary of changes:
src/mainwindow.c | 2 +-
src/summaryview.c | 10 ++++++++++
src/summaryview.h | 1 +
3 files changed, 12 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 442757e8684b6684932fab4b7804850612575c71
Author: Ricardo Mones <ricardo at mones.org>
Date: Mon Feb 26 10:18:22 2018 +0100
Revert "fix bug 3973, ''select all' in summaryview does not automatically focus the summaryview'"
This reverts commit b423102b353f8cb97fd748c4d155022c29d64842, sorry for
the noise ;-)
Details on:
http://lists.claws-mail.org/pipermail/devel/2018-February/002061.html
diff --git a/src/mainwindow.c b/src/mainwindow.c
index fb0dd71..fc7b2f9 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -4985,7 +4985,7 @@ static void allsel_cb(GtkAction *action, gpointer data)
(gtk_widget_has_focus(msgview->mimeview->textview->text)))
messageview_select_all(mainwin->messageview);
else
- gtk_cmclist_select_all(GTK_CMCLIST(mainwin->summaryview->ctree));
+ summary_select_all(mainwin->summaryview);
}
static void select_thread_cb(GtkAction *action, gpointer data)
diff --git a/src/summaryview.c b/src/summaryview.c
index 257e850..60938ef 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -4817,6 +4817,16 @@ void summary_add_address(SummaryView *summaryview)
avatars_avatarrender_free(avatarr);
}
+void summary_select_all(SummaryView *summaryview)
+{
+ if (!summaryview->folder_item) return;
+
+ summary_lock(summaryview);
+ gtk_cmclist_select_all(GTK_CMCLIST(summaryview->ctree));
+ summary_unlock(summaryview);
+ summary_status_show(summaryview);
+}
+
void summary_unselect_all(SummaryView *summaryview)
{
summary_lock(summaryview);
diff --git a/src/summaryview.h b/src/summaryview.h
index 9d1d943..77ac05b 100644
--- a/src/summaryview.h
+++ b/src/summaryview.h
@@ -287,6 +287,7 @@ void summary_watch_thread (SummaryView *summaryview);
void summary_unwatch_thread (SummaryView *summaryview);
void summary_add_address (SummaryView *summaryview);
+void summary_select_all (SummaryView *summaryview);
void summary_unselect_all (SummaryView *summaryview);
void summary_select_thread (SummaryView *summaryview,
gboolean delete_thread,
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list