[gnome-calendar] app: use new search ECalDataModel
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] app: use new search ECalDataModel
- Date: Thu, 4 Dec 2014 22:45:06 +0000 (UTC)
commit f3bd29ba9c0b2c269b442c3215796f29b060b636
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed Nov 26 13:52:52 2014 -0500
app: use new search ECalDataModel
src/gcal-search-view.c | 29 +++++------------------------
src/gcal-window.c | 2 --
2 files changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index d764f9c..de15a8d 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -145,6 +145,11 @@ gcal_search_view_constructed (GObject *object)
priv->desc_size_group =
gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+
+ gcal_manager_set_search_subscriber (
+ priv->manager,
+ E_CAL_DATA_MODEL_SUBSCRIBER (object),
+ 0, 0);
}
static void
@@ -162,34 +167,10 @@ gcal_search_view_set_property (GObject *object,
{
case PROP_DATE:
{
- time_t range_start, range_end;
- icaltimetype *date;
- icaltimezone* default_zone;
-
if (priv->date != NULL)
g_free (priv->date);
priv->date = g_value_dup_boxed (value);
-
- default_zone =
- gcal_manager_get_system_timezone (priv->manager);
-
- /* FIXME: using fixed interval */
- date = gcal_dup_icaltime (priv->date);
- icaltime_adjust (date, -25, 0, 0, 0);
- range_start = icaltime_as_timet_with_zone (*date,
- default_zone);
- g_free (date);
- date = gcal_dup_icaltime (priv->date);
- icaltime_adjust (date, 25, 0, 0, 0);
- range_end = icaltime_as_timet_with_zone (*date,
- default_zone);
- g_free (date);
-
- gcal_manager_set_subscriber (priv->manager,
- E_CAL_DATA_MODEL_SUBSCRIBER (object),
- range_start,
- range_end);
break;
}
case PROP_MANAGER:
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 22e10e8..8149b94 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -489,8 +489,6 @@ stack_transition_running (GObject *object,
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->header_bar),
priv->views_switcher);
- /* Reset manager filter */
- gcal_manager_set_query (priv->manager, NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]