[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-890-g6f8ce65f5

paul at claws-mail.org paul at claws-mail.org
Tue Dec 10 10:46:04 CET 2019


The branch, gtk3 has been updated
       via  6f8ce65f565493b38a3d5213f3adf1bc7114240b (commit)
      from  137d4ff97a26a124b762dfea4d7e05014ff55f4d (commit)

Summary of changes:
 src/gtk/quicksearch.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 6f8ce65f565493b38a3d5213f3adf1bc7114240b
Author: paul <paul at claws-mail.org>
Date:   Tue Dec 10 09:45:58 2019 +0000

    fix quicksearch
    
    fix initialising the correct search; fix showing the buttons when switching to Extended search; silence some 'may be unitialised' build warning

diff --git a/src/gtk/quicksearch.c b/src/gtk/quicksearch.c
index 6c51e3268..714b166a0 100644
--- a/src/gtk/quicksearch.c
+++ b/src/gtk/quicksearch.c
@@ -592,7 +592,8 @@ static void quicksearch_error(gpointer data)
 
 static void select_correct_combobox_menuitem(QuickSearch *quicksearch)
 {
-	gint active_menuitem, active_type;
+	gint active_menuitem = 0;
+	gint active_type;
 	GtkWidget *combobox = quicksearch->search_type_combo;
 
 	/* Figure out which menuitem to set as active. QS_MENU_ACTION_ aliases
@@ -649,7 +650,8 @@ static gboolean set_search_type_checkboxes_func(GtkTreeModel *model,
 {
 	gboolean has_checkbox;
 	gint action;
-	gboolean cur_active, active;
+	gboolean cur_active;
+	gboolean active = -1;
 	PrefsCommon *prefs = prefs_common_get_prefs();
 
 	gtk_tree_model_get(model, iter,
@@ -756,7 +758,7 @@ static void search_type_changed_cb(GtkComboBox *combobox,
 			prefs->summary_quicksearch_autorun = !checkbox_active;
 			break;
 	}
-
+	update_extended_buttons(quicksearch);
 	/* If one of the toggleable items has been activated, there's
 	 * work to be done */
 	if (has_checkbox) {
@@ -1043,6 +1045,7 @@ GtkWidget *quicksearch_get_entry(QuickSearch *quicksearch)
 
 void quicksearch_show(QuickSearch *quicksearch)
 {
+	gint active_type;
 	MainWindow *mainwin = mainwindow_get_mainwindow();
 	GtkWidget *ctree = NULL;
 	gtk_widget_show(quicksearch->hbox_search);
@@ -1059,6 +1062,8 @@ void quicksearch_show(QuickSearch *quicksearch)
 		gtk_cmctree_node_moveto(GTK_CMCTREE(ctree), 
 				mainwin->summaryview->selected, 
 				0, 0.5, 0);
+	active_type = prefs_common_get_prefs()->summary_quicksearch_type;
+	quicksearch_set_type(quicksearch, active_type);
 }
 
 void quicksearch_hide(QuickSearch *quicksearch)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list