[Commits] [SCM] claws branch, master, updated. 4.1.1-22-g35e83190c
mones at claws-mail.org
mones at claws-mail.org
Sat Dec 3 19:57:24 UTC 2022
The branch, master has been updated
via 35e83190ca97487475911c40718796e665ff4c8a (commit)
from efd66a9312197b05e4255e09c9f1957d7f9feeca (commit)
Summary of changes:
src/folderview.c | 2 --
src/summaryview.c | 15 ---------------
src/summaryview.h | 4 +---
3 files changed, 1 insertion(+), 20 deletions(-)
- Log -----------------------------------------------------------------
commit 35e83190ca97487475911c40718796e665ff4c8a
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 c48aefc13..8c9cb63d7 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 bbd8d7f1d..2ea4d741b 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -8503,21 +8503,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 6a6d68d19..ce3db3a94 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
+ * 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