[tasque-list] Adding a custom column
- From: Jonathan Musther <jon slymail org>
- To: tasque-list gnome org
- Subject: [tasque-list] Adding a custom column
- Date: Wed, 28 Jan 2009 19:16:44 +1300
Hi, I'm new to this list, but I'm very pleased with tasque, and have high hopes for it.
At the moment I'm trying to add a column to
detail the number of days remaining until a tasks due date.
In the file TaskTreeView.cs, I believe I need to add a section like this:
//
// Days-Left Column
//
column = new Gtk.TreeViewColumn ();
// Title for Days Left Column
column.Title = Catalog.GetString ("Daysleft");
//column.Sizing = Gtk.TreeViewColumnSizing.
Autosize;
column.Sizing = Gtk.TreeViewColumnSizing.Fixed;
column.Alignment = 0.5f;
column.FixedWidth = 30;
column.Resizable = false;
column.Clickable = false;
HERE'S WHERE I NEED HELP
AppendColumn (column);
Hopefully
this will successfully create my column, but I'm not sure how to add
the logic to look up the due date, and find the number of days between the
current date and due date. That's what I was hoping for some help with.
Cheers all.
Jon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]