diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-07-28 03:53:35 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-07-28 03:53:35 +0800 |
commit | 2cd65ea07f54971a789b0058ace767a77170f3a5 (patch) | |
tree | f7d228067e9a4b50614ae4a24469b54ad4d9ab8a /calendar/gui/gnome-cal.c | |
parent | 55dc4bd9020002d8abc210957120802fc5757fcf (diff) | |
download | gsoc2013-evolution-2cd65ea07f54971a789b0058ace767a77170f3a5.tar.gz gsoc2013-evolution-2cd65ea07f54971a789b0058ace767a77170f3a5.tar.zst gsoc2013-evolution-2cd65ea07f54971a789b0058ace767a77170f3a5.zip |
Constify and set the query sexp on the task pad's model as well.
2001-07-27 Federico Mena Quintero <federico@ximian.com>
* gui/gnome-cal.c (gnome_calendar_set_query): Constify and set the
query sexp on the task pad's model as well.
svn path=/trunk/; revision=11457
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 9aaaefb396..7a50df5389 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -208,9 +208,10 @@ gnome_calendar_class_init (GnomeCalendarClass *class) * Sets the query sexp for all the views in a calendar. **/ void -gnome_calendar_set_query (GnomeCalendar *gcal, char *sexp) +gnome_calendar_set_query (GnomeCalendar *gcal, const char *sexp) { GnomeCalendarPrivate *priv; + CalendarModel *model; g_return_if_fail (gcal != NULL); g_return_if_fail (GNOME_IS_CALENDAR (gcal)); @@ -218,6 +219,8 @@ gnome_calendar_set_query (GnomeCalendar *gcal, char *sexp) priv = gcal->priv; + /* Set the query on the main view */ + switch (priv->current_view_type) { case GNOME_CAL_DAY_VIEW: e_day_view_set_query (E_DAY_VIEW (priv->day_view), sexp); @@ -239,6 +242,11 @@ gnome_calendar_set_query (GnomeCalendar *gcal, char *sexp) g_warning ("A penguin bit my hand!"); g_assert_not_reached (); } + + /* Set the query on the task pad */ + + model = e_calendar_table_get_model (E_CALENDAR_TABLE (priv->todo)); + calendar_model_set_query (model, sexp); } /* Returns the current time, for the ECalendarItem. */ |