2006-08-26 [wwp] 2.4.0cvs93
authorTristan Chabredier <wwp@claws-mail.org>
Sat, 26 Aug 2006 10:12:20 +0000 (10:12 +0000)
committerTristan Chabredier <wwp@claws-mail.org>
Sat, 26 Aug 2006 10:12:20 +0000 (10:12 +0000)
* src/summary_search.c
disable find buttons while summary search is running.

ChangeLog
PATCHSETS
configure.ac
src/summary_search.c

index 3021297..99c25c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-26 [wwp]       2.4.0cvs93
+
+       * src/summary_search.c
+               disable find buttons while summary search is running.
+
 2006-08-25 [colin]     2.4.0cvs92
 
        * src/folder.c
index d3461c5..5293e72 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.155.2.40 -r 1.155.2.41 src/Makefile.am;  cvs diff -u -r 1.25.2.26 -r 1.25.2.27 src/stock_pixmap.c;  cvs diff -u -r 1.18.2.17 -r 1.18.2.18 src/stock_pixmap.h;  cvs diff -u -r 1.395.2.232 -r 1.395.2.233 src/summaryview.c;  cvs diff -u -r 1.1.2.8 -r 1.1.2.9 src/gtk/icon_legend.c;  diff -u /dev/null src/pixmaps/copied.xpm;  diff -u /dev/null src/pixmaps/moved.xpm;  ) > 2.4.0cvs90.patchset
 ( cvs diff -u -r 1.395.2.233 -r 1.395.2.234 src/summaryview.c;  ) > 2.4.0cvs91.patchset
 ( cvs diff -u -r 1.213.2.108 -r 1.213.2.109 src/folder.c;  cvs diff -u -r 1.3.2.11 -r 1.3.2.12 src/folderutils.c;  cvs diff -u -r 1.79.2.38 -r 1.79.2.39 src/mh.c;  cvs diff -u -r 1.16.2.36 -r 1.16.2.37 src/msgcache.c;  cvs diff -u -r 1.60.2.32 -r 1.60.2.33 src/procmsg.h;  cvs diff -u -r 1.395.2.234 -r 1.395.2.235 src/summaryview.c;  ) > 2.4.0cvs92.patchset
+( cvs diff -u -r 1.15.2.30 -r 1.15.2.31 src/summary_search.c;  ) > 2.4.0cvs93.patchset
index af67985..5cd7f74 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=4
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=92
+EXTRA_VERSION=93
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index c4e3034..fb8b10f 100644 (file)
@@ -133,6 +133,24 @@ void summary_search(SummaryView *summaryview)
        gtk_widget_show(search_window.window);
 }
 
+static void summary_show_stop_button(void)
+{
+       gtk_widget_hide(search_window.close_btn);
+       gtk_widget_show(search_window.stop_btn);
+       gtk_widget_set_sensitive(search_window.all_btn, FALSE);
+       gtk_widget_set_sensitive(search_window.prev_btn, FALSE);
+       gtk_widget_set_sensitive(search_window.next_btn, FALSE);
+}
+
+static void summary_hide_stop_button(void)
+{
+       gtk_widget_hide(search_window.stop_btn);
+       gtk_widget_show(search_window.close_btn);
+       gtk_widget_set_sensitive(search_window.all_btn, TRUE);
+       gtk_widget_set_sensitive(search_window.prev_btn, TRUE);
+       gtk_widget_set_sensitive(search_window.next_btn, TRUE);
+}
+
 static void summary_search_create(void)
 {
        GtkWidget *window;
@@ -459,8 +477,7 @@ static void summary_search_execute(gboolean backward, gboolean search_all)
 
        search_window.is_searching = TRUE;
        main_window_cursor_wait(summaryview->mainwin);
-       gtk_widget_hide(search_window.close_btn);
-       gtk_widget_show(search_window.stop_btn);
+       summary_show_stop_button();
 
        if (search_all) {
                gtk_clist_freeze(GTK_CLIST(ctree));
@@ -476,8 +493,7 @@ static void summary_search_execute(gboolean backward, gboolean search_all)
 
                if (!node) {
                        search_window.is_searching = FALSE;
-                       gtk_widget_hide(search_window.stop_btn);
-                       gtk_widget_show(search_window.close_btn);
+                       summary_hide_stop_button();
                        main_window_cursor_normal(summaryview->mainwin);
                        summary_unlock(summaryview);
                        return;
@@ -628,8 +644,7 @@ static void summary_search_execute(gboolean backward, gboolean search_all)
        }
 
        search_window.is_searching = FALSE;
-       gtk_widget_hide(search_window.stop_btn);
-       gtk_widget_show(search_window.close_btn);
+       summary_hide_stop_button();
        main_window_cursor_normal(summaryview->mainwin);
        if (search_all) {
                gtk_clist_thaw(GTK_CLIST(ctree));