aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2009-06-03 22:13:06 +0800
committerSrinivasa Ragavan <sragavan@novell.com>2009-06-03 22:16:53 +0800
commit5b1e05dbf5448251ea0dffc727233e52a2c2e518 (patch)
treec72419e981a21c0bdf5a1e0f74ada3f16f0c2ae7 /widgets
parent7703ffcdd4e2f5343a80f5f0e082fe5d050b7328 (diff)
downloadgsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar.gz
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar.bz2
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar.lz
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar.xz
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.tar.zst
gsoc2013-evolution-5b1e05dbf5448251ea0dffc727233e52a2c2e518.zip
Anjal stuff's for Evo.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-search-bar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 041e46a1f3..acd52ece6f 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -1451,7 +1451,9 @@ e_search_bar_set_search_scope (ESearchBar *search_bar, gint id)
gint row;
g_return_if_fail (E_IS_SEARCH_BAR (search_bar));
-
+
+ if (!search_bar->scopeoption_menu)
+ return;
row = find_id (search_bar->scopeoption_menu, id, "EsbItemId", NULL);
if (row == -1)
return;
@@ -1505,6 +1507,9 @@ e_search_bar_get_search_scope (ESearchBar *search_bar)
g_return_val_if_fail (search_bar != NULL, -1);
g_return_val_if_fail (E_IS_SEARCH_BAR (search_bar), -1);
+ if (!search_bar->scopeoption_menu)
+ return -7 /*Current folder hack */;
+
menu_item = gtk_menu_get_active (GTK_MENU (search_bar->scopeoption_menu));
scopeitem_id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (menu_item), "EsbItemId"));