aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-details-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/task-details-page.c')
-rw-r--r--calendar/gui/dialogs/task-details-page.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index d8449db72d..aa3b26abef 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -96,7 +96,7 @@ static gboolean task_details_page_fill_widgets (CompEditorPage *page, ECalCompon
static gboolean task_details_page_fill_component (CompEditorPage *page, ECalComponent *comp);
static gboolean task_details_page_fill_timezones (CompEditorPage *page, GHashTable *timezones);
-G_DEFINE_TYPE (TaskDetailsPage, task_details_page, TYPE_COMP_EDITOR_PAGE);
+G_DEFINE_TYPE (TaskDetailsPage, task_details_page, TYPE_COMP_EDITOR_PAGE)
/* Class initialization function for the task page */
static void
@@ -458,13 +458,8 @@ task_details_page_fill_component (CompEditorPage *page, ECalComponent *comp)
static gboolean
task_details_page_fill_timezones (CompEditorPage *page, GHashTable *timezones)
{
- TaskDetailsPage *tdpage;
- TaskDetailsPagePrivate *priv;
icaltimezone *zone;
- tdpage = TASK_DETAILS_PAGE (page);
- priv = tdpage->priv;
-
/* add UTC timezone, which is the one used for the DATE-COMPLETED property */
zone = icaltimezone_get_utc_timezone ();
if (zone) {
@@ -537,13 +532,10 @@ get_widgets (TaskDetailsPage *tdpage)
static void
complete_date_changed (TaskDetailsPage *tdpage, time_t ctime, gboolean complete)
{
- TaskDetailsPagePrivate *priv;
CompEditorPageDates dates = {NULL, NULL, NULL, NULL};
icaltimezone *zone;
struct icaltimetype completed_tt = icaltime_null_time();
- priv = tdpage->priv;
-
/* Get the current time in UTC. */
zone = icaltimezone_get_utc_timezone ();
completed_tt = icaltime_from_timet_with_zone (ctime, FALSE, zone);