diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-09-06 08:13:05 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-09-06 08:13:05 +0800 |
commit | e8648e48175c1b6d26bff5316c2c7d738245a63c (patch) | |
tree | b6dcd1e5670462fe810b90a601013556d5db2604 /calendar/gui/event-editor.c | |
parent | 6403bd5b4def7c610285d2aaad10e793b321091d (diff) | |
download | gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.gz gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.zst gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.zip |
uses the new TaskEditor dialog.
2000-09-06 Damon Chaplin <damon@helixcode.com>
* gui/e-calendar-table.c (e_calendar_table_open_task): uses the new
TaskEditor dialog.
* gui/dialogs/task-editor.[hc]:
* gui/dialogs/task-editor-dialog.glade: updated. Still need to fix the
'Status' property (CalComponent doesn't support it yet), and use a
replacement for GnomeDateEdit, since we need to support setting 'None'
as the date.
2000-09-04 Damon Chaplin <damon@helixcode.com>
* gui/event-editor.c (obj_updated_cb):
(obj_removed_cb): compare the updated object's uid with the one we
are editing, and just return if it doesn't match.
2000-09-01 Damon Chaplin <damon@helixcode.com>
* gui/gnome-cal.c (gnome_calendar_tag_calendar): added check to see
if the client has loaded successfully. Gets rid of a few warnings.
svn path=/trunk/; revision=5217
Diffstat (limited to 'calendar/gui/event-editor.c')
-rw-r--r-- | calendar/gui/event-editor.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c index 34c659b163..9a398d13cb 100644 --- a/calendar/gui/event-editor.c +++ b/calendar/gui/event-editor.c @@ -1549,6 +1549,7 @@ obj_updated_cb (CalClient *client, const char *uid, gpointer data) EventEditorPrivate *priv; CalComponent *comp; CalClientGetStatus status; + const gchar *editing_uid; ee = EVENT_EDITOR (data); @@ -1556,6 +1557,14 @@ obj_updated_cb (CalClient *client, const char *uid, gpointer data) priv = ee->priv; + /* If we aren't showing the object which has been updated, return. */ + if (!priv->comp) + return; + cal_component_get_uid (priv->comp, &editing_uid); + if (strcmp (uid, editing_uid)) + return; + + /* Get the event from the server. */ status = cal_client_get_object (priv->client, uid, &comp); @@ -1586,6 +1595,7 @@ obj_removed_cb (CalClient *client, const char *uid, gpointer data) { EventEditor *ee; EventEditorPrivate *priv; + const gchar *editing_uid; ee = EVENT_EDITOR (data); @@ -1594,6 +1604,14 @@ obj_removed_cb (CalClient *client, const char *uid, gpointer data) priv = ee->priv; + /* If we aren't showing the object which has been updated, return. */ + if (!priv->comp) + return; + cal_component_get_uid (priv->comp, &editing_uid); + if (strcmp (uid, editing_uid)) + return; + + raise_and_focus (priv->app); } |