aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/itip-formatter/ChangeLog6
-rw-r--r--plugins/itip-formatter/itip-formatter.c21
2 files changed, 25 insertions, 2 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 89ec13f2fe..24451e6ca4 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,5 +1,11 @@
2005-01-09 JP Rosevear <jpr@novell.com>
+ * itip-formatter.c (idle_open_cb): launch an evolution window
+ pointing at the calendar date of the appointment
+ (view_response_cb): use it
+
+2005-01-09 JP Rosevear <jpr@novell.com>
+
* itip-formatter.c (find_cal_opened_cb): only check for conflicts
if the source has the conflict property
(initialize_selection): select the "conflict" sources in the
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 9b7bb2ee2a..a039dbb823 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -83,7 +83,7 @@ typedef struct {
gchar *calendar_uid;
EAccountList *accounts;
-
+
gchar *from_address;
gchar *delegator_address;
gchar *delegator_name;
@@ -904,8 +904,22 @@ extract_itip_data (FormatItipPObject *pitip)
pitip->comp = NULL;
return;
};
+}
-// show_current (itip);
+static gboolean
+idle_open_cb (gpointer data)
+{
+ FormatItipPObject *pitip = data;
+ char *command;
+
+ command = g_strdup_printf ("evolution-%s \"calendar://?startdate=%s&enddate=%s\"", BASE_VERSION,
+ isodate_from_time_t (pitip->start_time), isodate_from_time_t (pitip->end_time));
+ if (!g_spawn_command_line_async (command, NULL)) {
+ g_warning ("Could not launch %s", command);
+ }
+ g_free (command);
+
+ return FALSE;
}
static void
@@ -948,6 +962,9 @@ view_response_cb (GtkWidget *widget, ItipViewResponse response, gpointer data)
case ITIP_VIEW_RESPONSE_REFRESH:
send_item (pitip);
break;
+ case ITIP_VIEW_RESPONSE_OPEN:
+ g_idle_add (idle_open_cb, pitip);
+ return;
default:
break;
}