summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-16 21:29:19 -0400
committerTingPing <tingping@tingping.se>2013-09-16 21:31:05 -0400
commit1a67e245acb0da1b6f2c41cbf90def4a36c27580 (patch)
tree360441be96b466f84c998df69d7d26fb0f35ca51 /src/fe-gtk/maingui.c
parent648de4410ceeafdea63b37df43bb7e6d219a5b96 (diff)
Fix searchbar loading highlight all pref on start
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index fd0ee6f1..2e828cfd 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -2986,7 +2986,7 @@ mg_create_search(session *sess, GtkWidget *box)
 	g_signal_connect(G_OBJECT(next), "clicked", G_CALLBACK(mg_search_handle_next), sess);
 
 	highlight = gtk_check_button_new_with_mnemonic (_("Highlight _all"));
-	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(highlight), prefs.hex_text_search_case_match);
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(highlight), prefs.hex_text_search_highlight_all);
 	gtk_widget_set_can_focus (highlight, FALSE);
 	g_signal_connect (G_OBJECT (highlight), "toggled", G_CALLBACK (search_set_option), &prefs.hex_text_search_highlight_all);
 	g_signal_connect (G_OBJECT (highlight), "toggled", G_CALLBACK (search_handle_refresh), sess);