diff options
author | Milan Crha <mcrha@redhat.com> | 2009-10-15 03:17:36 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-10-15 03:17:36 +0800 |
commit | 7b220adafee34b86ef82d6130c7bc03c1bfd7adf (patch) | |
tree | 9860cc1ce9900bf15bb5fe837cdafc94669e52fb /calendar | |
parent | 51f9daed7077c6b7f616c92ee86459a02f63bc16 (diff) | |
download | gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.gz gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.bz2 gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.lz gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.xz gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.tar.zst gsoc2013-evolution-7b220adafee34b86ef82d6130c7bc03c1bfd7adf.zip |
Bug #593753 - Calendar search in list view doesn't work properly
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/gui/e-cal-model.c | 2 | ||||
-rw-r--r-- | calendar/gui/gnome-cal.c | 21 |
2 files changed, 10 insertions, 13 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index d4d2f020f9..ccf2edff82 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -2407,6 +2407,8 @@ e_cal_model_set_search_query_with_time_range (ECalModel *model, const gchar *sex priv->start = start; priv->end = end; do_query = TRUE; + + g_signal_emit (G_OBJECT (model), signals[TIME_RANGE_CHANGED], 0, start, end); } if (do_query) diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 4a8c5c4f68..90cf8ce47a 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1126,7 +1126,7 @@ gnome_calendar_set_search_query (GnomeCalendar *gcal, g_free (priv->sexp); priv->sexp = g_strdup (sexp); - priv->lview_select_daten_range = range_search; + priv->lview_select_daten_range = !range_search; start = start_range; end = end_range; @@ -1137,20 +1137,15 @@ gnome_calendar_set_search_query (GnomeCalendar *gcal, i = priv->current_view_type; /* Set the query on the views */ - if (i == GNOME_CAL_LIST_VIEW) { - if (!priv->lview_select_daten_range) { - e_cal_model_set_search_query_with_time_range ( - model, sexp, start, end); - } else { - start = priv->base_view_time; - get_times_for_views (gcal, GNOME_CAL_LIST_VIEW, &start, &end, NULL); + if (i == GNOME_CAL_LIST_VIEW && !priv->lview_select_daten_range) { + start = priv->base_view_time; + get_times_for_views (gcal, GNOME_CAL_LIST_VIEW, &start, &end, NULL); - e_cal_model_set_search_query_with_time_range ( - model, sexp, start, end); + e_cal_model_set_search_query_with_time_range ( + model, sexp, start, end); - if (priv->current_view_type == GNOME_CAL_LIST_VIEW) - gnome_calendar_update_date_navigator (gcal); - } + if (priv->current_view_type == GNOME_CAL_LIST_VIEW) + gnome_calendar_update_date_navigator (gcal); } else e_cal_model_set_search_query (model, sexp); |