talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 35e83190ca97487475911c40718796e665ff4c8a
parent efd66a9312197b05e4255e09c9f1957d7f9feeca
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sat,  3 Dec 2022 14:32:58 +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.

Diffstat:
Msrc/folderview.c | 2--
Msrc/summaryview.c | 15---------------
Msrc/summaryview.h | 4+---
3 files changed, 1 insertion(+), 20 deletions(-)

diff --git 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 @@ -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 @@ -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);