2007-01-13 [paul] 2.7.0cvs22
authorPaul Mangan <paul@claws-mail.org>
Sat, 13 Jan 2007 18:23:51 +0000 (18:23 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sat, 13 Jan 2007 18:23:51 +0000 (18:23 +0000)
* src/mainwindow.c
* src/summaryview.c
* src/summaryview.h
add 'Edit/Delete thread'

ChangeLog
PATCHSETS
configure.ac
src/mainwindow.c
src/summaryview.c
src/summaryview.h

index 58cad7d0a50ac57e134376f708865c83e3dd5817..3450f8ead5ed30d36ba7a37c558798e19fd5c48c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-13 [paul]      2.7.0cvs22
+
+       * src/mainwindow.c
+       * src/summaryview.c
+       * src/summaryview.h
+               add 'Edit/Delete thread'
+
 2007-01-13 [colin]     2.7.0cvs21
 
        * src/prefs_account.c
index 6e151804b654af02b59d139af32e8c040d5e3978..fb9c73cfa04a185520e94ffc40c3998951004395 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.4.64 -r 1.1.4.65 src/etpan/imap-thread.c;  ) > 2.7.0cvs19.patchset
 ( cvs diff -u -r 1.3.12.22 -r 1.3.12.23 src/message_search.c;  cvs diff -u -r 1.94.2.117 -r 1.94.2.118 src/messageview.c;  cvs diff -u -r 1.15.2.42 -r 1.15.2.43 src/summary_search.c;  ) > 2.7.0cvs20.patchset
 ( cvs diff -u -r 1.105.2.78 -r 1.105.2.79 src/prefs_account.c;  cvs diff -u -r 1.1.2.15 -r 1.1.2.16 src/prefs_compose_writing.c;  cvs diff -u -r 1.1.2.21 -r 1.1.2.22 src/prefs_message.c;  cvs diff -u -r 1.1.2.28 -r 1.1.2.29 src/prefs_msg_colors.c;  cvs diff -u -r 1.1.2.13 -r 1.1.2.14 src/prefs_other.c;  cvs diff -u -r 1.1.2.14 -r 1.1.2.15 src/prefs_receive.c;  cvs diff -u -r 1.5.2.30 -r 1.5.2.31 src/prefs_spelling.c;  cvs diff -u -r 1.1.2.33 -r 1.1.2.34 src/prefs_summaries.c;  cvs diff -u -r 1.3.2.47 -r 1.3.2.48 src/prefs_themes.c;  cvs diff -u -r 1.5.2.48 -r 1.5.2.49 src/gtk/gtkutils.c;  cvs diff -u -r 1.4.2.29 -r 1.4.2.30 src/gtk/gtkutils.h;  cvs diff -u -r 1.1.2.15 -r 1.1.2.16 src/plugins/pgpcore/prefs_gpg.c;  cvs diff -u -r 1.23.2.33 -r 1.23.2.34 src/plugins/spamassassin/spamassassin_gtk.c;  ) > 2.7.0cvs21.patchset
+( cvs diff -u -r 1.274.2.162 -r 1.274.2.163 src/mainwindow.c;  cvs diff -u -r 1.395.2.274 -r 1.395.2.275 src/summaryview.c;  cvs diff -u -r 1.68.2.31 -r 1.68.2.32 src/summaryview.h;  ) > 2.7.0cvs22.patchset
index c37438d09e1a97b21df7aa6b252595aadf882ea4..e19e63306e9746d1d24d18bb3a31a504bf496630 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=21
+EXTRA_VERSION=22
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 8614aee0b209270850f725f7b31100c9a99fe561..37dca7ab274abd499d3d42191fae96c3bcf0a32e 100644 (file)
@@ -390,6 +390,9 @@ static void allsel_cb                (MainWindow    *mainwin,
 static void select_thread_cb    (MainWindow    *mainwin,
                                  guint          action,
                                  GtkWidget     *widget);
+static void delete_thread_cb    (MainWindow    *mainwin,
+                                 guint          action,
+                                 GtkWidget     *widget);
 
 static void create_filter_cb    (MainWindow    *mainwin,
                                  guint          action,
@@ -520,6 +523,7 @@ static GtkItemFactoryEntry mainwin_entries[] =
        {N_("/_Edit/_Copy"),                    "<control>C", copy_cb, 0, NULL},
        {N_("/_Edit/Select _all"),              "<control>A", allsel_cb, 0, NULL},
        {N_("/_Edit/Select _thread"),           NULL, select_thread_cb, 0, NULL},
+       {N_("/_Edit/_Delete thread"),           NULL, delete_thread_cb, 0, NULL},
        {N_("/_Edit/---"),                      NULL, NULL, 0, "<Separator>"},
        {N_("/_Edit/_Find in current message..."),
                                                "<control>F", search_cb, 0, NULL},
@@ -2230,6 +2234,7 @@ void main_window_set_menu_sensitive(MainWindow *mainwin)
                {"/File/Exit"      , M_UNLOCKED},
 
                {"/Edit/Select thread"             , M_SINGLE_TARGET_EXIST},
+               {"/Edit/Delete thread"             , M_SINGLE_TARGET_EXIST},
                {"/Edit/Find in current message...", M_SINGLE_TARGET_EXIST},
 
                {"/View/Set displayed columns/in Folder list..."
@@ -3791,7 +3796,13 @@ static void allsel_cb(MainWindow *mainwin, guint action, GtkWidget *widget)
 static void select_thread_cb(MainWindow *mainwin, guint action,
                             GtkWidget *widget)
 {
-       summary_select_thread(mainwin->summaryview);
+       summary_select_thread(mainwin->summaryview, FALSE);
+}
+
+static void delete_thread_cb(MainWindow *mainwin, guint action,
+                            GtkWidget *widget)
+{
+       summary_select_thread(mainwin->summaryview, TRUE);
 }
 
 static void create_filter_cb(MainWindow *mainwin, guint action,
index a4a69cd7bb44588be31cd7bb607e0ca206c507b4..822cfb6dcfba953cd78a91b837eacee3e0825fb3 100644 (file)
@@ -4013,7 +4013,7 @@ void summary_unselect_all(SummaryView *summaryview)
        summary_status_show(summaryview);
 }
 
-void summary_select_thread(SummaryView *summaryview)
+void summary_select_thread(SummaryView *summaryview, gboolean delete_thread)
 {
        GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
        GtkCTreeNode *node = summaryview->selected;
@@ -4031,6 +4031,13 @@ void summary_select_thread(SummaryView *summaryview)
 
        gtk_ctree_select_recursive(ctree, node);
 
+       if (delete_thread) {
+               if (FOLDER_TYPE(summaryview->folder_item->folder) == F_NEWS)
+                       summary_delete(summaryview);
+               else
+                       summary_delete_trash(summaryview);
+       }
+
        summary_status_show(summaryview);
 }
 
index 351a7d702d398cac62b6718fc6e2fcb792dd0074..8cde245c90e592d336c4b033337d6f6489642731 100644 (file)
@@ -271,7 +271,8 @@ void summary_unignore_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);
+void summary_select_thread       (SummaryView          *summaryview,
+                                  gboolean              delete_thread);
 
 void summary_set_colorlabel      (SummaryView          *summaryview,
                                   guint                 labelcolor,