diff options
author | Russell Steinthal <steintr@src.gnome.org> | 1999-05-26 23:25:04 +0800 |
---|---|---|
committer | Russell Steinthal <steintr@src.gnome.org> | 1999-05-26 23:25:04 +0800 |
commit | fa1d50623855f58ed95fba1f468d872a9e84e4d2 (patch) | |
tree | c3782dd9cba1b6c80ca628c197b9d97f738a74b9 /calendar/prop.c | |
parent | 41d177fd10dbf546270c3289452abe0f3f400562 (diff) | |
download | gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar.gz gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar.bz2 gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar.lz gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar.xz gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.tar.zst gsoc2013-evolution-fa1d50623855f58ed95fba1f468d872a9e84e4d2.zip |
Added preliminary support for todo item priorities: they can be set, displayed,
and used as a sorting criterion. They are enabled/disabled using the
properties page, as with due dates.
svn path=/trunk/; revision=947
Diffstat (limited to 'calendar/prop.c')
-rw-r--r-- | calendar/prop.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/calendar/prop.c b/calendar/prop.c index ee97c58514..ca07252807 100644 --- a/calendar/prop.c +++ b/calendar/prop.c @@ -45,6 +45,8 @@ static GnomeCanvasItem *month_item; /* Widgets for the todo page */ static GtkWidget *due_date_show_button; static GtkWidget *due_date_overdue_highlight; +static GtkWidget *priority_show_button; + /* Callback used when the property box is closed -- just sets the prop_win variable to null. */ static int prop_cancel (void) @@ -115,11 +117,13 @@ prop_apply_todo(void) { todo_show_due_date = GTK_TOGGLE_BUTTON (due_date_show_button)->active; todo_due_date_overdue_highlight = GTK_TOGGLE_BUTTON (due_date_overdue_highlight)->active; - + + todo_show_priority = GTK_TOGGLE_BUTTON (priority_show_button)->active; + /* storing the values */ gnome_config_set_bool("/calendar/Todo/show_due_date", todo_show_due_date); gnome_config_set_bool("/calendar/Todo/highlight_overdue_tasks", todo_due_date_overdue_highlight); - + gnome_config_set_bool("/calendar/Todo/show_priority", todo_show_priority); /* need to sync our config changes. */ gnome_config_sync (); @@ -565,6 +569,7 @@ build_list_options_frame(void) due_date_show_button = gtk_check_button_new_with_label (_("Summary")); due_date_show_button = gtk_check_button_new_with_label (_("Due Date")); + priority_show_button = gtk_check_button_new_with_label (_("Priority")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(due_date_show_button), todo_show_due_date); gtk_signal_connect (GTK_OBJECT(due_date_show_button), @@ -572,6 +577,13 @@ build_list_options_frame(void) (GtkSignalFunc) todo_option_set, NULL); gtk_box_pack_start (GTK_BOX (vbox), due_date_show_button, FALSE, FALSE, 0); + + gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(priority_show_button), todo_show_priority); + gtk_signal_connect (GTK_OBJECT(priority_show_button), + "clicked", + (GtkSignalFunc) todo_option_set, + NULL); + gtk_box_pack_start (GTK_BOX (vbox), priority_show_button, FALSE, FALSE, 0); return frame; } static GtkWidget * @@ -689,3 +701,6 @@ color_spec_from_prop (ColorProp propnum) { return build_color_spec (color_props[propnum].r, color_props[propnum].g, color_props[propnum].b); } + + + |