aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/gnome-cal.c10
-rw-r--r--calendar/gui/gnome-cal.h2
2 files changed, 10 insertions, 2 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. */
diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h
index 4b0dca84e3..492d6bcfd1 100644
--- a/calendar/gui/gnome-cal.h
+++ b/calendar/gui/gnome-cal.h
@@ -78,7 +78,7 @@ CalClient *gnome_calendar_get_task_pad_cal_client(GnomeCalendar *gcal);
gboolean gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri);
-void gnome_calendar_set_query (GnomeCalendar *gcal, char *sexp);
+void gnome_calendar_set_query (GnomeCalendar *gcal, const char *sexp);
void gnome_calendar_next (GnomeCalendar *gcal);
void gnome_calendar_previous (GnomeCalendar *gcal);
r> * Update to 0.32.knu2002-10-284-17/+46 * Add missed RUN_DEPENDS.sobomax2002-10-262-0/+2 * Remove gnomedb2.marcus2002-10-251-1/+0 * Nuke gnomedb2 in favor of mergeant.marcus2002-10-258-215/+0 * Update to 0.8.199.marcus2002-10-2512-14/+44 * Update to 0.18.petef2002-10-252-4/+2 * Update Ruby/DBI and DBD modules to 0.0.18.knu2002-10-242-2/+2 * - Make this port a subport of databases/postgresql7, since the development ofwjv2002-10-239-77/+74 * Update Dominik Rothert's (MAINTAINER) email address.fenner2002-10-231-1/+1 * upgrade to 0.4ijliao2002-10-237-76/+23 * Unbreak on -current.sobomax2002-10-215-0/+50 * Unbreak on current. This should unlock another 6 packages that depend on db2.sobomax2002-10-211-0/+1 * Upgrade to 3.23.52.dirk2002-10-2127-216/+225 * Fix build on -current (remove dependencies on obsolete system headers).kris2002-10-211-6/+5 * Update port to version 1.01.olgeni2002-10-202-2/+2 * Add missing USE_XLIB=yeskris2002-10-201-0/+1 * Update to 1.0.40.demon2002-10-184-10/+4 * add tinycdb 0.72ijliao2002-10-186-0/+36 * Add checksums for Python-2.2.2.perky2002-10-171-1/+1 * MASTER_SITE is moved.perky2002-10-161-1/+1 * Update to 0.7.0.knu2002-10-166-10/+8 * Reset maintainership to ports, due to the original author'smi2002-10-159-66/+76 * Update to version 0.6.5.naddy2002-10-156-60/+81 * add tdb 1.0.6ijliao2002-10-126-0/+43 * Update WWW.knu2002-10-111-1/+1 * Set DIST_SUBDIR=ruby like other ruby module ports.knu2002-10-112-1/+2 * - Enable --with-pthreads option.ijliao2002-10-102-16/+25 * Remove p5-MyObject due the prolonged disappearance of it's homepagejedgar2002-10-096-46/+0 * Remove http://www.ruby-lang.org/~knu/backup/ from MASTER_SITES, nowknu2002-10-081-2/+1 * Upgrade to DBD-Sybase-0.94.sheldonh2002-10-083-6/+5 * Use in-place editing to replace <malloc.h> with <stdlib.h>.sheldonh2002-10-082-2/+6 * Use RUBY_MOD*.knu2002-10-0737-348/+350 * Reflect *_RD renaming.knu2002-10-071-5/+3 * Update to 7.2.3 and maintainer's email address. All advised to updatepat2002-10-0639-182/+104 * Respect LOCALBASE and remove py-mx-base as a build dependency.pat2002-10-061-3/+2 * BROKEN: Does not compilekris2002-10-061-0/+2 * Update Ruby/DBI and DBD modules to 0.0.17.knu2002-10-055-7/+3 * Updated to 7.3b2. Many improvements and bug fixes over previous beta.seanc2002-09-293-33/+12 * Add dependency on gettext, since there appears to no longer be ankris2002-09-292-4/+13 * Hopefully unbreak this port:glewis2002-09-285-1/+352 * Send this to the Attic (when it was marked FORBIDDEN, Mir was stilltrevor2002-09-277-255/+0 * Hook postgresql-devel up to the buildseanc2002-09-241-0/+1 * Adding a development port for PostgreSQL. postgresql-devel will have itsseanc2002-09-2414-463/+205 * Correct a *_DEPENDS entry. SQL/Statement.pm installed byknu2002-09-232-2/+2 * Make this fetchable.marcus2002-09-232-2/+2 * Fix braino: add USE_REINPLACE.will2002-09-211-0/+1 * Update to 1.3.12, which works on KDE3.will2002-09-213-15/+10 * KDE2 only. Too far gone, no kde3, won't even configure.alane2002-09-219-115/+0 * GNOME has just changed the layout of their FTP site. This resulted inmarcus2002-09-218-8/+8 * Unbreak by updating the sqlite dependeny, now that sqlite has beenknu2002-09-202-3/+4 * Renumber the shlib major 2 instead of 0, which was unwantedknu2002-09-206-14/+38 * upgrade to 0.60ijliao2002-09-2014-146/+50 * Update to 0.3.5. (adapted for db 4.1.24)knu2002-09-202-2/+2 * Fix include path for xforms.dirk2002-09-192-4/+4 * BROKEN: Incorrect pkg-plistkris2002-09-191-0/+2 * Add missing dependency on scrollkeeper.marcus2002-09-192-0/+4 * remove bogus dependence to bash1ijliao2002-09-181-2/+1 * Update to 2.01.tobez2002-09-182-2/+2 * upgrade to 1.004ijliao2002-09-182-2/+2 * 1) upgrade to 1.002ijliao2002-09-183-11/+14 * - update port to pyPgSQL 2.2ijliao2002-09-162-8/+6 * Add missing manpagekris2002-09-161-0/+2 * Fix some plist issues I missed. Bump PORTREVISION.marcus2002-09-153-3/+17 * Add mergeant, a libgnomedb frontend that merges portions of gnome-db andmarcus2002-09-1511-0/+142 * Update to 0.8.193.marcus2002-09-156-6/+50 * Update to 0.8.193.marcus2002-09-143-3/+5 * Chase the libnmz shlib version bump.knu2002-09-132-2/+4 * Update to 2.0.12 + German translation.knu2002-09-133-4/+12 * Remove a dead .jp mirror and add the official .jp mirror instead.knu2002-09-1314-14/+14 * Hand the maintainership over to the submitter of the PR.knu2002-09-131-1/+1 * Minor change (%ll -> %q)skv2002-09-121-11/+30 * Updated to 0.40 (many bugfixes)skv2002-09-105-439/+73 * Update to 0.9.2.sobomax2002-09-106-40/+50 * Add gauche-gdbm, a GDBM interface for Gauche.knu2002-09-105-0/+50 * Fix build on -current (incorrect #include)kris2002-09-091-0/+11 * Update to 0.3.4.knu2002-09-083-6/+3 * Relinquish all my ports.ade2002-09-0710-10/+10 * Update port to 0.0.19.jedgar2002-09-075-14/+25 * Update port to version 1.00.olgeni2002-09-072-4/+3 * Update to 0.9yoichi2002-09-052-3/+6 * Don't restrict InnoDB to i386. Works on alpha, too.dirk2002-09-049-27/+36 * Fixup from previous commitdwcjr2002-09-02