[tasque/transition: 183/213] [RTM] Drop ListStore stuff
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/transition: 183/213] [RTM] Drop ListStore stuff
- Date: Wed, 29 Aug 2012 18:49:24 +0000 (UTC)
commit bec6325414e5ed5508e666c472148ce55a99dab4
Author: Antonius Riha <antoniusriha gmail com>
Date: Sun Aug 19 00:40:48 2012 +0200
[RTM] Drop ListStore stuff
src/Addins/RtmBackend/RtmBackend.cs | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/src/Addins/RtmBackend/RtmBackend.cs b/src/Addins/RtmBackend/RtmBackend.cs
index afbfa28..0422377 100644
--- a/src/Addins/RtmBackend/RtmBackend.cs
+++ b/src/Addins/RtmBackend/RtmBackend.cs
@@ -19,9 +19,6 @@ namespace Tasque.Backends.RtmBackend
{
private const string apiKey = "b29f7517b6584035d07df3170b80c430";
private const string sharedSecret = "93eb5f83628b2066";
-
- private Gtk.ListStore categoryListStore;
- private Gtk.TreeModelSort sortedCategoriesModel;
private Thread refreshThread;
private bool runningRefreshThread;
@@ -56,22 +53,8 @@ namespace Tasque.Backends.RtmBackend
// *************************************
// Data Model Set up
// *************************************
- Tasks = new ObservableCollection<Task>();
-
- categoryListStore = new Gtk.ListStore (typeof (Category));
-
- sortedCategoriesModel = new Gtk.TreeModelSort (categoryListStore);
- sortedCategoriesModel.SetSortFunc (0, new Gtk.TreeIterCompareFunc (CompareCategorySortFunc));
- sortedCategoriesModel.SetSortColumnId (0, Gtk.SortType.Ascending);
- // make sure we have the all Category in our list
- Gtk.Application.Invoke ( delegate {
- AllCategory allCategory = new Tasque.AllCategory ();
- Gtk.TreeIter iter = categoryListStore.Append ();
- categoryListStore.SetValue (iter, 0, allCategory);
- });
-
- runRefreshEvent = new AutoResetEvent(false);
+ runRefreshEvent = new AutoResetEvent (false);
runningRefreshThread = false;
refreshThread = new Thread(RefreshThreadLoop);
@@ -204,8 +187,7 @@ namespace Tasque.Backends.RtmBackend
// *************************************
// AUTHENTICATION to Remember The Milk
// *************************************
- string authToken =
- Application.Preferences.Get (Preferences.AuthTokenKey);
+ string authToken = Application.Preferences.Get (Tasque.Preferences.AuthTokenKey);
if (authToken != null ) {
Debug.WriteLine("Found AuthToken, checking credentials...");
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]