From 7f3440fc9e5c9fb604fbfe39f0376b5b6fd68902 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 8 Feb 2010 11:20:55 -0500 Subject: =?UTF-8?q?Bug=C2=A0609304=20-=20Search=20scope=20forgotten=20if?= =?UTF-8?q?=20search=20is=20not=20performed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/e-shell-searchbar.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index 2b8ae33bda..13ff2ad2b7 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -974,10 +974,14 @@ shell_searchbar_init (EShellSearchbar *searchbar) searchbar->priv->scope_combo_box = widget; gtk_widget_show (widget); - g_signal_connect_swapped ( + /* Use G_CONNECT_AFTER here so the EActionComboBox has a + * chance to update its radio actions before we go sifting + * through the radio group for the current action. */ + g_signal_connect_data ( widget, "changed", - G_CALLBACK (e_shell_searchbar_set_state_dirty), - searchbar); + G_CALLBACK (shell_searchbar_save_search_scope), + searchbar, (GClosureNotify) NULL, + G_CONNECT_AFTER | G_CONNECT_SWAPPED); } GType -- cgit v1.2.3