From ba859b12f65ef51be3af4463753550eb40d33029 Mon Sep 17 00:00:00 2001 From: "Joel W. Reed" Date: Tue, 11 Dec 2007 09:40:56 -0500 Subject: [PATCH] small.cleanups --- class/Gtk.TeamFoundation/ExploreView.cs | 3 ++- class/Gtk.TeamFoundation/RepositoryView.cs | 4 ++-- class/Makefile | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/class/Gtk.TeamFoundation/ExploreView.cs b/class/Gtk.TeamFoundation/ExploreView.cs index 3df5215..786ed39 100644 --- a/class/Gtk.TeamFoundation/ExploreView.cs +++ b/class/Gtk.TeamFoundation/ExploreView.cs @@ -55,6 +55,7 @@ namespace Gtk.TeamFoundation private ICredentialsProvider credentialsProvider; private Statusbar statusbar; private List getLatestList = new List(); + private static uint messageIndx; public event GetLatestEventHandler GetLatest; public event ShowChangesetEventHandler ShowChangeset; @@ -112,7 +113,7 @@ namespace Gtk.TeamFoundation public void StatusMessage(string msg) { - statusbar.Push(1, msg); + statusbar.Push(messageIndx++, msg); } public void MyGettingEventHandler(object sender, GettingEventArgs e) diff --git a/class/Gtk.TeamFoundation/RepositoryView.cs b/class/Gtk.TeamFoundation/RepositoryView.cs index 3a90715..63b893d 100644 --- a/class/Gtk.TeamFoundation/RepositoryView.cs +++ b/class/Gtk.TeamFoundation/RepositoryView.cs @@ -77,7 +77,7 @@ namespace Gtk.TeamFoundation TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(info.ServerUri.ToString(), credentials); VersionControlServer vcs = tfs.GetService(typeof(VersionControlServer)) as VersionControlServer; Workspace workspace = vcs.GetWorkspace(info.Name, info.OwnerName); - + string label = String.Format("{0}@{1}", info.Name, info.ServerUri.Host.ToString()); Gtk.TreeIter serverIter = store.AppendValues(Images.Repository, label, info.ServerUri.ToString(), VersionControlPath.RootFolder, workspace); store.AppendValues(serverIter, null, "", "", "", null); @@ -99,7 +99,7 @@ namespace Gtk.TeamFoundation TreeIter iterParent; TreeIter current = iter; while (store.IterParent(out iterParent, current)) - current = iterParent; + current = iterParent; url = store.GetValue(current, ColumnIndex.Url).ToString(); workspace = store.GetValue(current, ColumnIndex.Workspace) as Workspace; diff --git a/class/Makefile b/class/Makefile index c19f41d..c30e882 100644 --- a/class/Makefile +++ b/class/Makefile @@ -10,8 +10,7 @@ SUBDIRS = \ Microsoft.TeamFoundation.VersionControl.Client \ Microsoft.TeamFoundation.WorkItemTracking.Common \ Microsoft.TeamFoundation.WorkItemTracking.Client \ - OpenTF.Common \ - Gtk.TeamFoundation + OpenTF.Common ifeq ($(HAVE_GTK),yes) SUBDIRS += Gtk.TeamFoundation -- 2.11.4.GIT