~bratsche/ubuntu/maverick/monodevelop/disable-appmenu

« back to all changes in this revision

Viewing changes to src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20080329233633-wq5p1rktg8ek3vxc
Tags: 1.0+dfsg-1ubuntu1
* Merge from Debian unstable. (LP: #209012) Remaining Ubuntu changes:
+ debian/control: 
  - Build-dep on xulrunner-1.9-dev instead of firefox-dev
  - Depend on xulrunner-1.9 instead of firefox
+ don't do any MOZILLA_HOME/MOZILLA_FIVE_HOME business which isn't needed
  for xulrunner-1.9 using the standalone glue anymore (gecko gil uses
  standalone by default)
  - add debian/patches/use_xulrunner_1.9.dpatch
  - update debian/patches/00list
* Remove build-dep on libxul-dev and the dep on libxul0d
  since we are using xulrunner1.9 instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
using MonoDevelop.Ide.Gui;
11
11
using MonoDevelop.Core;
 
12
using MonoDevelop.Core.Gui;
12
13
using MonoDevelop.Projects;
13
14
using MonoDevelop.Projects.Serialization;
14
15
using Mono.Addins;
333
334
                
334
335
                internal static void NotifyFileStatusChanged (Repository repo, string localPath, bool isDirectory) 
335
336
                {
336
 
                        if (FileStatusChanged != null)
337
 
                                FileStatusChanged (null, new FileUpdateEventArgs (repo, localPath, isDirectory));
 
337
                        if (!DispatchService.IsGuiThread)
 
338
                                Gtk.Application.Invoke (delegate {
 
339
                                        NotifyFileStatusChanged (repo, localPath, isDirectory);
 
340
                                });
 
341
                        else {
 
342
                                if (FileStatusChanged != null)
 
343
                                        FileStatusChanged (null, new FileUpdateEventArgs (repo, localPath, isDirectory));
 
344
                        }
338
345
                }
339
346
                
340
347
                //static void OnFileChanged (object s, ProjectFileEventArgs args)
515
522
                        repo.VersionControlSystem.StoreRepositoryReference (repo, path, id);
516
523
                }
517
524
                
 
525
                public static bool CheckVersionControlInstalled ()
 
526
                {
 
527
                        foreach (VersionControlSystem vcs in GetVersionControlSystems ()) {
 
528
                                if (vcs.IsInstalled)
 
529
                                        return true;
 
530
                        }
 
531
                        
 
532
                        IdeApp.Services.MessageService.ShowError (GettextCatalog.GetString ("There isn't any supported version control system installed. You may need to install additional add-ins or packages."));
 
533
                        return false;
 
534
                }
 
535
                
518
536
                internal static Repository InternalGetRepositoryReference (string path, string id)
519
537
                {
520
538
                        string file = Path.Combine (path, id) + ".mdvcs";