From 8bd886a64a3f871e21b8ee793ebf84ddee6a253d Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sun, 19 Aug 2001 02:57:47 +0000 Subject: added option to hide completed tasks after a given number of 2001-08-18 Damon Chaplin * gui/dialogs/cal-prefs-dialog.glade: added option to hide completed tasks after a given number of minutes/hours/days. Unfinished. * gui/dialogs/event-page.c (event_page_fill_component): initialize zone to NULL to avoid a warning. (contacts_clicked_cb): work around a bug in SelectNames by notifying that the page has changed when you click the 'Contacts' button. Otherwise it is easy to lose changes. * gui/dialogs/task-page.c (contacts_clicked_cb): ditto. svn path=/trunk/; revision=12215 --- calendar/gui/dialogs/cal-prefs-dialog.glade | 67 ++++++++++++++++++++++++++++- calendar/gui/dialogs/event-page.c | 8 +++- calendar/gui/dialogs/task-page.c | 6 +++ 3 files changed, 79 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/cal-prefs-dialog.glade b/calendar/gui/dialogs/cal-prefs-dialog.glade index 6290db63dd..42ad66c1d7 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.glade +++ b/calendar/gui/dialogs/cal-prefs-dialog.glade @@ -646,7 +646,7 @@ Sunday vbox3 4 False - 4 + 8 GtkTable @@ -762,6 +762,71 @@ Sunday + + + GtkHBox + hbox14 + False + 4 + + 0 + False + False + + + + GtkCheckButton + tasks-hide-completed-checkbutton + True + + False + True + + 0 + False + False + + + + + GtkSpinButton + tasks-hide-completed-spinbutton + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 0 + 0 + 9999 + 1 + 10 + 10 + + 0 + False + True + + + + + GtkOptionMenu + tasks-hide-completed-optionmenu + True + Minutes +Hours +Days + + 0 + + 0 + False + False + + + diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index e20822e088..a8ab66af6a 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -561,7 +561,7 @@ event_page_fill_component (CompEditorPage *page, CalComponent *comp) char *cat, *str; CalComponentClassification classif; CalComponentTransparency transparency; - icaltimezone *zone; + icaltimezone *zone = NULL; epage = EVENT_PAGE (page); priv = epage->priv; @@ -1091,6 +1091,12 @@ contacts_clicked_cb (GtkWidget *button, gpointer data) g_print ("In contacts_clicked_cb\n"); comp_editor_show_contacts_dialog (priv->corba_select_names); + + /* FIXME: Currently we aren't getting the changed event from the + SelectNames component correctly, so we aren't saving the event + if just the contacts are changed. To work around that, we assume + that if the contacts button is clicked it is changed. */ + comp_editor_page_notify_changed (COMP_EDITOR_PAGE (epage)); } /* Callback used when the categories button is clicked; we must bring up the diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c index 11e6eb44e3..729ec8c641 100644 --- a/calendar/gui/dialogs/task-page.c +++ b/calendar/gui/dialogs/task-page.c @@ -737,6 +737,12 @@ contacts_clicked_cb (GtkWidget *button, gpointer data) g_print ("In contacts_clicked_cb\n"); comp_editor_show_contacts_dialog (priv->corba_select_names); + + /* FIXME: Currently we aren't getting the changed event from the + SelectNames component correctly, so we aren't saving the event + if just the contacts are changed. To work around that, we assume + that if the contacts button is clicked it is changed. */ + comp_editor_page_notify_changed (COMP_EDITOR_PAGE (tpage)); } /* Callback used when the categories button is clicked; we must bring up the -- cgit v1.2.3