~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/UserTasksView.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
//
28
28
 
29
29
using System;
30
 
using System.IO;
31
 
using System.Collections;
32
30
using Gtk;
33
31
 
34
32
using MonoDevelop.Core;
35
 
using MonoDevelop.Projects;
36
33
using MonoDevelop.Ide;
37
 
using MonoDevelop.Ide.Gui;
38
34
using MonoDevelop.Components;
39
35
 
40
36
namespace MonoDevelop.Ide.Tasks
156
152
                {
157
153
                        if (updating)
158
154
                                return;
 
155
 
 
156
                        if (view.IsRealized)
 
157
                                view.ScrollToPoint (0, 0);
 
158
 
159
159
                        store.Clear ();
160
 
                        foreach (Task task in TaskService.UserTasks)
161
 
                        {
 
160
                        foreach (Task task in TaskService.UserTasks) {
162
161
                                store.AppendValues (GettextCatalog.GetString (Enum.GetName (typeof (TaskPriority), task.Priority)), task.Completed, task.Description, task, GetColorByPriority (task.Priority), task.Completed ? (int)Pango.Weight.Light : (int)Pango.Weight.Bold);
163
162
                        }
164
163
                        ValidateButtons ();