[recipes] Avoid a crash when navigating away from search
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Avoid a crash when navigating away from search
- Date: Wed, 18 Jan 2017 17:48:35 +0000 (UTC)
commit 8ae1b6845ad76a3e8fef354d4999e162bd15eaae
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 18 12:47:47 2017 -0500
Avoid a crash when navigating away from search
src/gr-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index ef07965..eb7b85e 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -508,8 +508,9 @@ gr_window_show_recipe (GrWindow *window,
gr_details_page_set_recipe (GR_DETAILS_PAGE (window->details_page), recipe);
update_cooking_button (window, gr_details_page_is_cooking (GR_DETAILS_PAGE (window->details_page)));
-
+ g_signal_handlers_block_by_func (window->search_bar, search_mode_changed, window);
gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (window->search_bar), FALSE);
+ g_signal_handlers_unblock_by_func (window->search_bar, search_mode_changed, window);
gtk_header_bar_set_title (GTK_HEADER_BAR (window->header), gr_recipe_get_translated_name (recipe));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]