File: GladeDisplayBindings.cs

package info (click to toggle)
gnome-subtitles 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 103,144 kB
  • sloc: xml: 406,395; cs: 364,495; ansic: 3,104; perl: 1,477; sh: 769; python: 545; javascript: 500; makefile: 49
file content (22 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using MonoDevelop.Core;
using MonoDevelop.Ide.Desktop;
using MonoDevelop.Ide.Gui;
using MonoDevelop.Projects;

namespace MonoDevelop.GtkSharp.Addin
{
    public class GladeDisplayBinding : IExternalDisplayBinding
    {
        public bool CanUseAsDefault => true;

        public bool CanHandle(FilePath fileName, string mimeType, Project ownerProject)
        {
            return fileName.Extension == ".glade";
        }

        public DesktopApplication GetApplication(FilePath fileName, string mimeType, Project ownerProject)
        {
            return new GladeDesktopApplication(fileName.FullPath);
        }
    }
}