[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-19-gcb77e0c90
mones at claws-mail.org
mones at claws-mail.org
Sat Dec 3 19:57:23 CET 2022
The branch, gtk2 has been updated
via cb77e0c9047b982af11e917e7cf85d5a66583730 (commit)
from 146a814572340558048e43a638458f6832fcb02b (commit)
Summary of changes:
src/folderview.c | 2 --
src/summaryview.c | 15 ---------------
src/summaryview.h | 6 ++----
3 files changed, 2 insertions(+), 21 deletions(-)
- Log -----------------------------------------------------------------
commit cb77e0c9047b982af11e917e7cf85d5a66583730
Author: Ricardo Mones <ricardo at mones.org>
Date: Sat Dec 3 14:32:58 2022 +0100
Remove unnecessary definitions and calls
The summaryview_lock function is never called yet its unlock counterpart
is called twice to undo something never done.
diff --git a/src/folderview.c b/src/folderview.c
index 62727a20b..6c94761d8 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -1207,7 +1207,6 @@ gint folderview_check_new(Folder *folder)
item->processing_pending == TRUE)) {
if (folder_item_scan(item) < 0) {
if (folder) {
- summaryview_unlock(folderview->summaryview, item);
if (FOLDER_TYPE(item->folder) == F_NEWS || FOLDER_IS_LOCAL(folder)) {
log_error(LOG_PROTOCOL, _("Couldn't scan folder %s\n"),
item->path ? item->path:item->name);
@@ -1221,7 +1220,6 @@ gint folderview_check_new(Folder *folder)
}
} else if (!item->folder->klass->scan_required) {
if (folder_item_scan(item) < 0) {
- summaryview_unlock(folderview->summaryview, item);
if (folder && !FOLDER_IS_LOCAL(folder)) {
STATUSBAR_POP(folderview->mainwin);
break;
diff --git a/src/summaryview.c b/src/summaryview.c
index bd443f8b4..488632794 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8526,21 +8526,6 @@ gint summaryview_export_mbox_list(SummaryView *summaryview)
return ret;
}
-void summaryview_lock(SummaryView *summaryview, FolderItem *item)
-{
- if (!summaryview || !summaryview->folder_item || !item) {
- return;
- }
-
- if (summaryview->folder_item->folder == item->folder) {
- gtk_widget_set_sensitive(summaryview->ctree, FALSE);
- }
-}
-void summaryview_unlock(SummaryView *summaryview, FolderItem *item)
-{
- gtk_widget_set_sensitive(summaryview->ctree, TRUE);
-}
-
static void summary_reedit_cb(GtkAction *gaction, gpointer data)
{
SummaryView *summaryview = (SummaryView *)data;
diff --git a/src/summaryview.h b/src/summaryview.h
index 24bb92b19..7a7e621a6 100644
--- a/src/summaryview.h
+++ b/src/summaryview.h
@@ -1,6 +1,6 @@
/*
- * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2022 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -329,8 +329,6 @@ void summary_set_prefs_from_folderitem
void summary_save_prefs_to_folderitem
(SummaryView *summaryview, FolderItem *item);
gint summaryview_export_mbox_list (SummaryView *summaryview);
-void summaryview_lock(SummaryView *summaryview, FolderItem *item);
-void summaryview_unlock(SummaryView *summaryview, FolderItem *item);
void summary_reflect_prefs(void);
void summaryview_activate_quicksearch(SummaryView *summaryview, gboolean show);
void summary_set_menu_sensitive (SummaryView *summaryview);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list