aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@src.gnome.org>2006-02-08 21:06:24 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-02-08 21:06:24 +0800
commitd21d923423231c70ddb674b2e6bd61b1f39675cf (patch)
tree8719db8d42b5614ef43e0612baf38e1dd4e30da2 /calendar/gui/dialogs/task-page.c
parente081754bc2aef21109661dbde5b47282af7371a5 (diff)
downloadgsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.gz
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.bz2
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.lz
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.xz
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.tar.zst
gsoc2013-evolution-d21d923423231c70ddb674b2e6bd61b1f39675cf.zip
broken pipes are soo fun
svn path=/trunk/; revision=31452
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 2025c4075c..f112482890 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -146,7 +146,7 @@ static gboolean task_page_fill_timezones (CompEditorPage *page, GHashTable *time
static void task_page_set_summary (CompEditorPage *page, const char *summary);
static void task_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates);
-G_DEFINE_TYPE (TaskPage, task_page, TYPE_COMP_EDITOR_PAGE);
+G_DEFINE_TYPE (TaskPage, task_page, TYPE_COMP_EDITOR_PAGE)
/* Class initialization function for the task page */
static void
@@ -382,7 +382,7 @@ task_page_set_classification (TaskPage *page, ECalComponentClassification class)
static void
sensitize_widgets (TaskPage *tpage)
{
- gboolean read_only, sens, sensitize;
+ gboolean read_only, sens = FALSE, sensitize;
TaskPagePrivate *priv;
priv = tpage->priv;
@@ -706,6 +706,7 @@ task_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
a = get_current_account (tpage);
if (a != NULL) {
+ /* Reuse *page declared further up? */
CompEditorPage *page = (CompEditorPage *) tpage;
priv->ia = e_meeting_store_add_attendee_with_defaults (priv->model);
g_object_ref (priv->ia);
@@ -981,13 +982,11 @@ add_clicked_cb (GtkButton *btn, TaskPage *page)
e_meeting_list_view_edit (page->priv->list_view, attendee);
}
-edit_clicked_cb (GtkButton *btn, TaskPage *tpage)
+void edit_clicked_cb (GtkButton *btn, TaskPage *tpage)
{
TaskPagePrivate *priv;
- EMeetingAttendee *attendee;
GtkTreePath *path = NULL;
GtkTreeViewColumn *focus_col;
- gint row = 0;
priv = tpage->priv;
@@ -1188,9 +1187,6 @@ static void
popup_delete_cb (EPopup *ep, EPopupItem *pitem, void *data)
{
TaskPage *page = data;
- TaskPagePrivate *priv;
-
- priv = page->priv;
remove_clicked_cb (NULL, page);
}
@@ -1297,9 +1293,7 @@ static gboolean
list_key_press (EMeetingListView *list_view, GdkEventKey *event, TaskPage *page)
{
if (event->keyval == GDK_Delete) {
- TaskPagePrivate *priv;
- priv = page->priv;
remove_clicked_cb (NULL, page);
return TRUE;