<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
- <object class="GtkListStore" id="prioritystore">
- <columns>
- <!-- column-name priority -->
- <column type="gchararray"/>
- </columns>
- <data>
- <row>
- <col id="0" translatable="yes">None</col>
- </row>
- <row>
- <col id="0" translatable="yes">Low</col>
- </row>
- <row>
- <col id="0" translatable="yes">Medium</col>
- </row>
- <row>
- <col id="0" translatable="yes">High</col>
- </row>
- </data>
- </object>
<object class="GtkDialog" id="diag_tasknew">
<property name="can_focus">False</property>
<property name="border_width">5</property>
<action-widget response="0">button2</action-widget>
</action-widgets>
</object>
+ <object class="GtkListStore" id="prioritystore">
+ <columns>
+ <!-- column-name priority -->
+ <column type="gchararray"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">None</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Low</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Medium</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">High</col>
+ </row>
+ </data>
+ </object>
<object class="GtkListStore" id="projectstore">
<columns>
<!-- column-name gchararray1 -->
<column type="gchararray"/>
<!-- column-name priority -->
<column type="gchararray"/>
+ <!-- column-name urgency -->
+ <column type="gchararray"/>
</columns>
</object>
<object class="GtkWindow" id="window">
</child>
</object>
</child>
+ <child>
+ <object class="GtkTreeViewColumn" id="urgency">
+ <property name="title" translatable="yes">Urgency</property>
+ <property name="sort_column_id">5</property>
+ <child>
+ <object class="GtkCellRendererText" id="cellrenderertext9"/>
+ <attributes>
+ <attribute name="text">5</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
json = json_object_object_get(jtask, "uuid");
tasks[i]->uuid = strdup(json_object_get_string(json));
+ json = json_object_object_get(jtask, "urgency");
+ tasks[i]->urgency = strdup(json_object_get_string(json));
+
tasks[i]->note = note_get(tasks[i]->uuid);
}
free(task->note);
free(task->project);
free(task->priority);
+ free(task->urgency);
free(task);
}
COL_DESCRIPTION,
COL_PROJECT,
COL_UUID,
- COL_PRIORITY
+ COL_PRIORITY,
+ COL_URGENCY
};
static int priority_to_int(const char *str)
COL_PROJECT, prj,
COL_UUID, (*tasks_cur)->uuid,
COL_PRIORITY, (*tasks_cur)->priority,
+ COL_URGENCY, (*tasks_cur)->urgency,
-1);
}
}