aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.h
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-05-01 08:27:17 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-05-01 08:27:17 +0800
commitc4f6855cebd5b13deca8109e79f0beb7dabdd0ce (patch)
tree95937961c0290907b5a469618c1b137f97c94480 /calendar/gui/e-week-view.h
parent165bf85c4d07928acf01c43c49c7e65c16b28ac8 (diff)
downloadgsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.tar.gz
gsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.tar.zst
gsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.zip
new function to see if the event dates have changed (including any
2000-05-01 Damon Chaplin <damon@helixcode.com> * cal-util/calobj.c (ical_object_compare_dates): new function to see if the event dates have changed (including any recurrence rules). It is used for optimization when we get the "object_changed" signal. We have to do far less work if the dates are unchanged. * gui/e-week-view.c: * gui/e-day-view.c: only draw the selection when we have the keyboard focus, since the user expects to be able to type in a new event when the selection is shown. Also keep the selection when we lose focus, but just don't show it. Also quite a few changes to cope with the new client/server architecture. * gui/e-day-view-top-item.c (e_day_view_top_item_draw): * gui/e-day-view-main-item.c (e_day_view_main_item_draw): * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day): only draw the selection if the widget has the keyboard focus. * gui/gnome-cal.c (mark_gtk_calendar_day): fixed so it works with events longer than one day. And changed the code for updating events in the new views. svn path=/trunk/; revision=2701
Diffstat (limited to 'calendar/gui/e-week-view.h')
-rw-r--r--calendar/gui/e-week-view.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/calendar/gui/e-week-view.h b/calendar/gui/e-week-view.h
index eac23565c2..c940f736d4 100644
--- a/calendar/gui/e-week-view.h
+++ b/calendar/gui/e-week-view.h
@@ -279,8 +279,12 @@ struct _EWeekView
gint editing_event_num;
gint editing_span_num;
- /* The day or event that the context menu is for. */
- gint popup_event_day;
+ /* This is TRUE if we are editing an event which we have just created.
+ We ignore the "update_event" callback which we will get from the
+ server when the event is added. */
+ gboolean editing_new_event;
+
+ /* The event that the context menu is for. */
gint popup_event_num;
/* The last mouse position when dragging, in the entire canvas. */
@@ -318,13 +322,18 @@ gboolean e_week_view_get_compress_weekend (EWeekView *week_view);
void e_week_view_set_compress_weekend (EWeekView *week_view,
gboolean compress);
-/* This is called when one or more events have been updated, either within the
- EWeekView itself, or via another calendar view or application. If only one
- event has changed, it is passed in the ico argument and the flags indicate
- the change - whether it is a new event, or just the summary has changed. */
+/* This reloads all calendar events. */
+void e_week_view_update_all_events (EWeekView *week_view);
+
+/* This is called when one event has been added or updated. */
void e_week_view_update_event (EWeekView *week_view,
- iCalObject *ico,
- int flags);
+ const gchar *uid);
+
+/* This removes all the events associated with the given uid. Note that for
+ recurring events there may be more than one. If any events are found and
+ removed we need to layout the events again. */
+void e_week_view_remove_event (EWeekView *week_view,
+ const gchar *uid);
/*
@@ -350,6 +359,10 @@ void e_week_view_start_editing_event (EWeekView *week_view,
gchar *initial_text);
void e_week_view_stop_editing_event (EWeekView *week_view);
+void e_week_view_show_popup_menu (EWeekView *week_view,
+ GdkEventButton *event,
+ gint event_num);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
>-1/+3 * Fix the build on 4.X with the new freetype2.marcus2006-10-171-0/+12 * Fix the build on 4.X with the new freetype2.marcus2006-10-172-0/+250 * Restore a patch lost in the GNOME 2.16 merge, and attempt to fix the buildmarcus2006-10-172-0/+98 * Restore a patch to fix the build on ia64 that was removed during themarcus2006-10-171-0/+37 * Mark FORBIDDEN due to arbitrary root code execution vulnerability.simon2006-10-171-0/+2 * Document "nvidia-driver -- arbitrary root code execution vulnerability".simon2006-10-171-0/+36 * Remove the multi-port from portupgrade -rf and go with pkg-config, the lowestmezz2006-10-171-2/+1 * Disable the cjk patch, same with freetype2, it doesn't build.mezz2006-10-171-5/+5 * Replace gunzip by minigzip, until gunzip get fixed.thierry2006-10-171-2/+1 * Use INST_TARGET instead of TARGETDIR locally to avoid conflictingerwin2006-10-171-5/+5 * - Make fetchable, change MASTER_SITES.anray2006-10-171-2/+1 * - Mark php open_basedir fixedsat2006-10-171-2/+3 * - clamav -- CHM unpacker and PE rebuilding vulnerabilitiesmnag2006-10-161-0/+38 * - Update to 0.88.5mnag2006-10-163-7/+7 * Fix CONFLICTS after renaming avr-gcc*.joerg2006-10-161-1/+1 * - Add missing dependsmiwi2006-10-161-1/+2 * - Update to 1.0.4 and unbreakrafan2006-10-163-17/+39 * Restore major 7.0.0p1 PORTVERSION to make scripts happy.ale2006-10-161-4/+3 * - fix open_basedir vulnerability in php4 and php5 [1]ale2006-10-1615-5/+302 * - follow devel/libticalcs 4.6.1 library versionclsung2006-10-161-1/+2 * - follow devel/libticalcs 4.6.1 library versionclsung2006-10-161-2/+2 * - install all needed share libsitetcu2006-10-163-12/+6 * Correct a patch not to install unwanted files.perky2006-10-166-60/+60 * BROKEN: Checksum mismatchkris2006-10-161-0/+2 * - Disable seamonkey support since it's brokenahze2006-10-161-1/+1 * Remove gaim-devel now that this port is in the tree.marcus2006-10-161-1/+0 * Add an alternate download site since the main site is temporarily down.marcus2006-10-161-1/+2 * Add an OPTION for maildir support, and update to the latest versiondougb2006-10-162-3/+4 * BROKEN: Corrupt distfilekris2006-10-161-0/+2 * BROKEN: Incomplete pkg-plistkris2006-10-161-0/+2 * BROKEN: Touches filesystem prior to 'make install'kris2006-10-161-0/+2 * BROKEN: Incorrect pkg-plistkris2006-10-163-0/+6 * BROKEN: Does not compilekris2006-10-161-0/+2 * BROKEN: Does not compilekris2006-10-163-0/+6 * - Add some referencessat2006-10-161-6/+27 * Chase the Evolution version.marcus2006-10-161-2/+2 * Fix the build on 4.X.marcus2006-10-161-0/+14 * Add MASTER_SITE_GENTOO.stefan2006-10-161-1/+2 * Add missing font dependency to fix build while package buildingkris2006-10-161-1/+2 * BROKEN: Segfaults when MALLOC_OPTIONS=AJkris2006-10-161-0/+2 * - Document temporary file symlink privilege escalation in tkdiffsat2006-10-161-1/+28 * - Update to 3.32clsung2006-10-152-6/+13 * Unbrake build in -DWITHOUT_X11 case by --disable-fontconfig.itetcu2006-10-151-1/+2 * - Document multiple remote file inclusion vulnerabilities in vtigersat2006-10-151-0/+31 * - Fix pkg-plist when ONIGURUMA option usedstas2006-10-152-1/+6 * Fix pkg-plist.lawrance2006-10-153-9/+18 * - Unbrake by updating distinfo (there were few changes in distribution)stas2006-10-152-8/+4 * Remove the avr/lib/avr6 directory upon deinstallation.joerg2006-10-152-0/+2 * - Update to 2.4.7 to resolve segfaultalexbl2006-10-152-5/+5 * Fix fetching.ale2006-10-151-2/+3 * BROKEN: Size mismatchkris2006-10-151-0/+2 * -Update to stable release at 1.0 to fix the fetch.mezz2006-10-153-5/+6 * Add an important sentence about to use portmaster, make sure you have leastmezz2006-10-151-1/+2 * Correct a typo when restoring pre-GNOME 2.16 bit.marcus2006-10-151-1/+1 * - it doesn't work with MySQL below 4.1.x because it uses sub-selectsitetcu2006-10-153-6/+9 * - Point users to correct upgrade utilityahze2006-10-151-1/+1 * Remove devel/avr-gcc-devel from the directory traversal.joerg2006-10-151-1/+0 * - Fix dependsahze2006-10-151-1/+1 * Fix the plist when disable the invest-applet. No bump need because it ismezz2006-10-151-1/+1 * - update distinfo and un-(break|expire)itetcu2006-10-153-42/+15 * Fix the version numbers going backwards by add PORTEPOCH.mezz2006-10-153-0/+3 * Fix slow download and download corrupted in 0.116. Patch was took from CVS.mezz2006-10-152-0/+17 * Use xxe's new Makefile.inc to learn what its version number is, andfenner2006-10-152-43/+41 * - Fix pkg-plistrafan2006-10-151-4/+4 * Make fetchable by upgrading to 3.5.0fenner2006-10-154-2414/+1506 * Update to 7.0.0p1 release and make it fetchable again.ale2006-10-152-5/+5 * Distfile now checksums successfully.lawrance2006-10-151-4/+0 * Fix pkg-plist.lawrance2006-10-151-0/+16 * Correct a typo when WITH_CJK is defined.marcus2006-10-151-2/+2 * Mark port FORBIDDEN due to remote code execution.simon2006-10-141-0/+1 * - Document heap overflow in the KML engine in google-earthsat2006-10-141-0/+28 * Re-open the tree now that the GNOME 2.16 import is done.marcus2006-10-141-1/+1 * - Add a note on how to upgrade to GNOME 2.16ahze2006-10-141-0/+17 * Put back some bits overwritten in the GNOME 2.16 import.marcus2006-10-141-2/+2 * Add the changes brought in by the GNOME 2.16 import.marcus2006-10-141-0/+8 * Add a LATEST_LINK of gnome-orca to avoid a conflict withmarcus2006-10-141-0/+2 * akamaru --> ports/deskutils/akamarumarcus2006-10-141-0/+1 * - gimp-devel is backahze2006-10-141-1/+0 * Add akamaru, a physics engine prototype.marcus2006-10-147-0/+103 * gimp-devel --> ports/graphics/gimp-develahze2006-10-141-0/+1 * - Readd gimp-develahze2006-10-1417-0/+5025 * gnome-gpg --> ports/security/gnome-gpgmezz2006-10-141-0/+1 * Simple commandline wrapper around gpg that makes it store its passphrasemezz2006-10-144-0/+35 * gaim-devel --> ports/net-im/gaim-develmarcus2006-10-141-0/+1 * Add gaim-devel, a port of the Gaim 2.0 Beta. There are still many problemsmarcus2006-10-1425-0/+4567 * icons-buuf --> ports/x11-themes/icons-buufmezz2006-10-141-0/+1 * py-libgsf --> ports/devel/py-libgsfahze2006-10-141-0/+1 * - Add py-libgsfahze2006-10-143-0/+41 * pulseaudio --> ports/audio/pulseaudiomarcus2006-10-141-0/+17 * A cool set of icons usable on Gnome.mezz2006-10-145-0/+1096 * glade3 --> ports/devel/glade3ahze2006-10-141-0/+1 * - Add glade3ahze2006-10-145-0/+369 * gtk-murrina-lightblue --> ports/x11-themes/gtk-murrina-lightbluemezz2006-10-141-0/+1 * This is the murrine theme pack. "Murrine" is an Italian word meaning themezz2006-10-149-0/+79 * gtk-murrina-aqua --> ports/x11-themes/gtk-murrina-aquamezz2006-10-141-0/+1 * This is the murrine theme pack. "Murrine" is an Italian word meaning themezz2006-10-145-0/+52 * ontv --> ports/deskutils/ontvahze2006-10-141-0/+1 * - Add ontvahze2006-10-148-0/+179 * gtk-murrine-themes --> ports/x11-themes/gtk-murrine-themesmezz2006-10-141-0/+1 * This is the murrine theme pack. "Murrine" is an Italian word meaning themezz2006-10-141-0/+1 * conduit --> ports/deskutils/conduitahze2006-10-141-0/+1 * gtk-murrine-engine --> ports/x11-themes/gtk-murrine-enginemezz2006-10-141-0/+1 * - Add conduitahze2006-10-146-0/+163 * This is a GTK+ 2.x engine. "Murrine" is an Italian word meaning the art glassmezz2006-10-145-0/+39 * py-goocanvas --> ports/graphics/py-goocanvasahze2006-10-141-0/+1 * - Add py-goocanvasahze2006-10-144-0/+43 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-14