[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-748-g5d2ffc6
ticho at claws-mail.org
ticho at claws-mail.org
Tue May 14 23:20:56 CEST 2019
The branch, gtk3 has been updated
via 5d2ffc64277bf095330a0c6459b0289b5aef5c2f (commit)
from bc6d725103886268f168bbdb343dcdfae40470da (commit)
Summary of changes:
src/summaryview.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
- Log -----------------------------------------------------------------
commit 5d2ffc64277bf095330a0c6459b0289b5aef5c2f
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Tue May 14 23:20:08 2019 +0200
Return summaryview cursor to selected mail when popup menu is done
Fixes bug #3838: Canceled right-click on message
list leaves UI in inconsistent state
diff --git a/src/summaryview.c b/src/summaryview.c
index d9d1afe..cea8805 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -527,6 +527,19 @@ GtkWidget *summary_get_main_widget(SummaryView *summaryview)
summary_update_msg, (gpointer) summaryview); \
}
+static void popup_menu_selection_done(GtkMenuShell *shell, gpointer user_data)
+{
+ SummaryView *summaryview = (SummaryView *)user_data;
+
+ cm_return_if_fail(summaryview != NULL);
+
+ /* If a message is displayed, place cursor back on the message. */
+ if (summaryview->displayed != NULL &&
+ summaryview->displayed != summaryview->selected) {
+ gtk_sctree_select(GTK_SCTREE(summaryview->ctree), summaryview->displayed);
+ }
+}
+
SummaryView *summary_create(MainWindow *mainwin)
{
SummaryView *summaryview;
@@ -2758,6 +2771,8 @@ static void summary_status_show(SummaryView *summaryview)
n_new, n_unread, n_total,
to_human_readable((goffset)n_size));
+ g_signal_connect(G_OBJECT(summaryview->popupmenu), "selection-done",
+ G_CALLBACK(popup_menu_selection_done), summaryview);
gtk_label_set_text(GTK_LABEL(summaryview->statlabel_msgs), str);
g_free(str);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list