summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'demos/csharp/linux/gtk_viewer')
-rw-r--r--demos/csharp/linux/gtk_viewer/Properties/AssemblyInfo.cs26
-rw-r--r--demos/csharp/linux/gtk_viewer/gtk-gui/generated.cs30
-rw-r--r--demos/csharp/linux/gtk_viewer/gtk-gui/gtk_viewer.src.gsOutput.cs10
-rw-r--r--demos/csharp/linux/gtk_viewer/gtk-gui/gui.stetic18
-rw-r--r--demos/csharp/linux/gtk_viewer/gtk_viewer.csproj73
-rw-r--r--demos/csharp/linux/gtk_viewer/gtk_viewer.sln17
-rwxr-xr-xdemos/csharp/linux/gtk_viewer/make.sh18
-rw-r--r--demos/csharp/linux/gtk_viewer/src/DocPage.cs19
-rw-r--r--demos/csharp/linux/gtk_viewer/src/MainRender.cs28
-rw-r--r--demos/csharp/linux/gtk_viewer/src/MainThumbRendering.cs27
-rw-r--r--demos/csharp/linux/gtk_viewer/src/MainWindow.cs32
-rw-r--r--demos/csharp/linux/gtk_viewer/src/MainZoom.cs17
-rw-r--r--demos/csharp/linux/gtk_viewer/src/Program.cs19
-rw-r--r--demos/csharp/linux/gtk_viewer/src/TempFile.cs19
-rw-r--r--demos/csharp/linux/gtk_viewer/src/gsOutput.cs19
15 files changed, 165 insertions, 207 deletions
diff --git a/demos/csharp/linux/gtk_viewer/Properties/AssemblyInfo.cs b/demos/csharp/linux/gtk_viewer/Properties/AssemblyInfo.cs
deleted file mode 100644
index a9d0d285..00000000
--- a/demos/csharp/linux/gtk_viewer/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-// Information about this assembly is defined by the following attributes.
-// Change them to the values specific to your project.
-
-[assembly: AssemblyTitle("gs_mono_example")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("${AuthorCopyright}")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
-// The form "{Major}.{Minor}.*" will automatically update the build and revision,
-// and "{Major}.{Minor}.{Build}.*" will update just the revision.
-
-[assembly: AssemblyVersion("1.0.*")]
-
-// The following attributes are used to specify the signing key for the assembly,
-// if desired. See the Mono documentation for more information about signing.
-
-//[assembly: AssemblyDelaySign(false)]
-//[assembly: AssemblyKeyFile("")]
diff --git a/demos/csharp/linux/gtk_viewer/gtk-gui/generated.cs b/demos/csharp/linux/gtk_viewer/gtk-gui/generated.cs
deleted file mode 100644
index 4842e95d..00000000
--- a/demos/csharp/linux/gtk_viewer/gtk-gui/generated.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-
-// This file has been generated by the GUI designer. Do not modify.
-namespace Stetic
-{
- internal class Gui
- {
- private static bool initialized;
-
- internal static void Initialize(Gtk.Widget iconRenderer)
- {
- if ((Stetic.Gui.initialized == false))
- {
- Stetic.Gui.initialized = true;
- }
- }
- }
-
- internal class ActionGroups
- {
- public static Gtk.ActionGroup GetActionGroup(System.Type type)
- {
- return Stetic.ActionGroups.GetActionGroup(type.FullName);
- }
-
- public static Gtk.ActionGroup GetActionGroup(string name)
- {
- return null;
- }
- }
-}
diff --git a/demos/csharp/linux/gtk_viewer/gtk-gui/gtk_viewer.src.gsOutput.cs b/demos/csharp/linux/gtk_viewer/gtk-gui/gtk_viewer.src.gsOutput.cs
deleted file mode 100644
index 0eab65c6..00000000
--- a/demos/csharp/linux/gtk_viewer/gtk-gui/gtk_viewer.src.gsOutput.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-
-namespace gtk_viewer.src
-{
- public partial class gsOutput
- {
- private void Build()
- {
- }
- }
-}
diff --git a/demos/csharp/linux/gtk_viewer/gtk-gui/gui.stetic b/demos/csharp/linux/gtk_viewer/gtk-gui/gui.stetic
deleted file mode 100644
index 172ba497..00000000
--- a/demos/csharp/linux/gtk_viewer/gtk-gui/gui.stetic
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<stetic-interface>
- <configuration>
- <images-root-path>..</images-root-path>
- <target-gtk-version>2.12</target-gtk-version>
- </configuration>
- <import>
- <widget-library name="../bin/Debug/gtk_viewer.exe" internal="true" />
- </import>
- <widget class="Gtk.Window" id="gtk_viewer.src.gsOutput" design-size="400 300">
- <property name="MemberName" />
- <property name="Title" translatable="yes">gsOutput</property>
- <property name="WindowPosition">CenterOnParent</property>
- <child>
- <placeholder />
- </child>
- </widget>
-</stetic-interface> \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/gtk_viewer.csproj b/demos/csharp/linux/gtk_viewer/gtk_viewer.csproj
deleted file mode 100644
index ee512951..00000000
--- a/demos/csharp/linux/gtk_viewer/gtk_viewer.csproj
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
- <ProjectGuid>{8941969C-A209-4109-AF7B-E4CF9D309B5B}</ProjectGuid>
- <OutputType>WinExe</OutputType>
- <RootNamespace>gtk_viewer</RootNamespace>
- <AssemblyName>gtk_viewer</AssemblyName>
- <TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG;MONO</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>x64</PlatformTarget>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
- <Optimize>true</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <DefineConstants>MONO</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <PlatformTarget>x64</PlatformTarget>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="Mono.Posix" />
- <Reference Include="System.Drawing" />
- <Reference Include="Mono.CSharp" />
- <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <Package>gtk-sharp-2.0</Package>
- </Reference>
- <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <Package>gtk-sharp-2.0</Package>
- </Reference>
- <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
- <Package>glib-sharp-2.0</Package>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="gtk-gui\gui.stetic">
- <LogicalName>gui.stetic</LogicalName>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="gtk-gui\generated.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="src\MainWindow.cs" />
- <Compile Include="src\Program.cs" />
- <Compile Include="src\MainThumbRendering.cs" />
- <Compile Include="src\DocPage.cs" />
- <Compile Include="src\MainRender.cs" />
- <Compile Include="src\TempFile.cs" />
- <Compile Include="src\MainZoom.cs" />
- <Compile Include="..\..\api\ghostapi.cs">
- <Link>src\ghostapi.cs</Link>
- </Compile>
- <Compile Include="src\gsOutput.cs" />
- <Compile Include="gtk-gui\gtk_viewer.src.gsOutput.cs" />
- <Compile Include="..\..\api\ghostmono.cs">
- <Link>src\ghostmono.cs</Link>
- </Compile>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <Import Project="packages\GtkSharp.3.22.25.98\build\GtkSharp.targets" Condition="Exists('packages\GtkSharp.3.22.25.98\build\GtkSharp.targets')" />
-</Project> \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/gtk_viewer.sln b/demos/csharp/linux/gtk_viewer/gtk_viewer.sln
deleted file mode 100644
index 229145da..00000000
--- a/demos/csharp/linux/gtk_viewer/gtk_viewer.sln
+++ /dev/null
@@ -1,17 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "gtk_viewer", "gtk_viewer.csproj", "{8941969C-A209-4109-AF7B-E4CF9D309B5B}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x86 = Debug|x86
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {8941969C-A209-4109-AF7B-E4CF9D309B5B}.Debug|x86.ActiveCfg = Debug|x86
- {8941969C-A209-4109-AF7B-E4CF9D309B5B}.Debug|x86.Build.0 = Debug|x86
- {8941969C-A209-4109-AF7B-E4CF9D309B5B}.Release|x86.ActiveCfg = Release|x86
- {8941969C-A209-4109-AF7B-E4CF9D309B5B}.Release|x86.Build.0 = Release|x86
- EndGlobalSection
-EndGlobal
diff --git a/demos/csharp/linux/gtk_viewer/make.sh b/demos/csharp/linux/gtk_viewer/make.sh
new file mode 100755
index 00000000..e7d86193
--- /dev/null
+++ b/demos/csharp/linux/gtk_viewer/make.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+# Build for gsmono gtk sample viewer
+# Note first do "make so" in ghostpdl
+# root directory to create libgpdl.so
+
+cp ../../../../sobin/libgpdl.so bin/libgpdl.so
+mcs -define:MONO -pkg:gtk-sharp-2.0 \
+ src/DocPage.cs \
+ src/gsOutput.cs \
+ src/MainRender.cs \
+ src/MainThumbRendering.cs \
+ src/MainWindow.cs \
+ src/MainZoom.cs \
+ src/Program.cs \
+ src/TempFile.cs \
+ ../../api/ghostapi.cs \
+ ../../api/ghostmono.cs \
+ -out:bin/gsMonoGtkViewer.exe
diff --git a/demos/csharp/linux/gtk_viewer/src/DocPage.cs b/demos/csharp/linux/gtk_viewer/src/DocPage.cs
index d1cb5493..13c41b9f 100644
--- a/demos/csharp/linux/gtk_viewer/src/DocPage.cs
+++ b/demos/csharp/linux/gtk_viewer/src/DocPage.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.ComponentModel;
using System.Collections.ObjectModel;
@@ -105,4 +120,4 @@ namespace gs_mono_example
{
}
}
-}
+} \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/src/MainRender.cs b/demos/csharp/linux/gtk_viewer/src/MainRender.cs
index e4749f1c..f8c0d2e0 100644
--- a/demos/csharp/linux/gtk_viewer/src/MainRender.cs
+++ b/demos/csharp/linux/gtk_viewer/src/MainRender.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.Runtime;
using System.Runtime.InteropServices;
using GhostMono;
@@ -7,8 +22,6 @@ namespace gs_mono_example
{
public partial class MainWindow
{
- int m_firstpage;
- int m_lastpage;
int m_current_page;
Gtk.TreeIter m_tree_iter;
@@ -28,8 +41,6 @@ namespace gs_mono_example
return;
m_busy_render = true;
- m_firstpage = first_page;
- m_lastpage = last_page;
//m_ghostscript.gsDisplayDeviceRender(m_currfile, first_page + 1, last_page + 1, 1.0);
}
@@ -97,7 +108,7 @@ namespace gs_mono_example
RemoveProgressBar();
m_file_open = true;
- m_ghostscript.gsPageRenderedMain -= new ghostsharp.gsCallBackPageRenderedMain(gsPageRendered);
+ m_ghostscript.PageRenderedCallBack -= new GSMONO.PageRendered(gsPageRendered);
m_GtkaaCheck.Sensitive = true;
m_GtkZoomMinus.Sensitive = true;
m_GtkZoomPlus.Sensitive = true;
@@ -106,13 +117,12 @@ namespace gs_mono_example
/* Render all pages full resolution */
private void RenderMainFirst()
{
- m_firstpage = 1;
m_current_page = 0;
m_GtkimageStoreMain.GetIterFirst(out m_tree_iter);
m_busy_render = true;
- m_ghostscript.gsPageRenderedMain += new ghostsharp.gsCallBackPageRenderedMain(gsPageRendered);
+ m_ghostscript.PageRenderedCallBack += new GSMONO.PageRendered(gsPageRendered);
AddProgressBar("Rendering Pages");
- m_ghostscript.gsDisplayDeviceRenderAll(m_currfile, m_doczoom, m_aa, GS_Task_t.DISPLAY_DEV_NON_PDF);
+ m_ghostscript.DisplayDeviceRenderAll(m_currfile, m_doczoom, m_aa, GS_Task_t.DISPLAY_DEV_NON_PDF);
}
/* Render all, but only if not already busy, called via zoom or aa changes */
diff --git a/demos/csharp/linux/gtk_viewer/src/MainThumbRendering.cs b/demos/csharp/linux/gtk_viewer/src/MainThumbRendering.cs
index 0d64fa13..9e1b0bcc 100644
--- a/demos/csharp/linux/gtk_viewer/src/MainThumbRendering.cs
+++ b/demos/csharp/linux/gtk_viewer/src/MainThumbRendering.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using GhostMono;
@@ -30,7 +45,7 @@ namespace gs_mono_example
private void ThumbsDone()
{
m_GtkProgressBar.Fraction = 1.0;
- m_ghostscript.gsPageRenderedMain -= new ghostsharp.gsCallBackPageRenderedMain(gsThumbRendered);
+ m_ghostscript.PageRenderedCallBack -= new GSMONO.PageRendered(gsThumbRendered);
m_numpages = m_thumbnails.Count;
if (m_numpages < 1)
{
@@ -82,10 +97,10 @@ namespace gs_mono_example
private void RenderThumbs()
{
AddProgressBar("Rendering Thumbs");
- m_ghostscript.gsPageRenderedMain +=
- new ghostsharp.gsCallBackPageRenderedMain(gsThumbRendered);
- m_ghostscript.gsDisplayDeviceRenderAll(m_currfile,
- Constants.SCALE_THUMB, false, GS_Task_t.DISPLAY_DEV_THUMBS_NON_PDF);
+ m_ghostscript.PageRenderedCallBack +=
+ new GSMONO.PageRendered(gsThumbRendered);
+ m_ghostscript.DisplayDeviceRenderThumbs(m_currfile,
+ Constants.SCALE_THUMB, false);
}
}
} \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/src/MainWindow.cs b/demos/csharp/linux/gtk_viewer/src/MainWindow.cs
index f621cd47..5e8941f8 100644
--- a/demos/csharp/linux/gtk_viewer/src/MainWindow.cs
+++ b/demos/csharp/linux/gtk_viewer/src/MainWindow.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.Collections.Generic;
using Gtk;
using GhostMono;
@@ -38,7 +53,7 @@ namespace gs_mono_example
public partial class MainWindow : Gtk.Window
{
- ghostsharp m_ghostscript;
+ GSMONO m_ghostscript;
bool m_file_open;
String m_currfile;
String m_extension;
@@ -107,10 +122,10 @@ namespace gs_mono_example
public MainWindow() : base(Gtk.WindowType.Toplevel)
{
/* Set up ghostscript calls for progress update */
- m_ghostscript = new ghostsharp();
- m_ghostscript.gsUpdateMain += new ghostsharp.gsCallBackMain(gsProgress);
- m_ghostscript.gsIOUpdateMain += new ghostsharp.gsIOCallBackMain(gsIO);
- m_ghostscript.gsDLLProblemMain += new ghostsharp.gsDLLProblem(gsDLL);
+ m_ghostscript = new GSMONO();
+ m_ghostscript.ProgressCallBack += new GSMONO.Progress(gsProgress);
+ m_ghostscript.StdIOCallBack += new GSMONO.StdIO(gsIO);
+ m_ghostscript.DLLProblemCallBack += new GSMONO.DLLProblem(gsDLL);
DeleteEvent += delegate { Application.Quit(); };
@@ -546,7 +561,7 @@ namespace gs_mono_example
System.IO.File.Delete(m_currfile);
}
- var res = System.IO.File.Exists(tempfile.Filename);
+ System.IO.File.Exists(tempfile.Filename);
System.IO.File.Copy(tempfile.Filename, dialog.Filename);
}
catch (Exception except)
@@ -607,7 +622,6 @@ namespace gs_mono_example
/* launch a new process */
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
- Process p = new Process();
try
{
String name = dialog.Filename;
@@ -710,4 +724,4 @@ namespace gs_mono_example
m_tempfiles.Clear();
}
}
-}
+} \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/src/MainZoom.cs b/demos/csharp/linux/gtk_viewer/src/MainZoom.cs
index 5d415351..1177b5b0 100644
--- a/demos/csharp/linux/gtk_viewer/src/MainZoom.cs
+++ b/demos/csharp/linux/gtk_viewer/src/MainZoom.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.Text.RegularExpressions;
namespace gs_mono_example
diff --git a/demos/csharp/linux/gtk_viewer/src/Program.cs b/demos/csharp/linux/gtk_viewer/src/Program.cs
index 7446f0bc..c6862901 100644
--- a/demos/csharp/linux/gtk_viewer/src/Program.cs
+++ b/demos/csharp/linux/gtk_viewer/src/Program.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using Gtk;
namespace gs_mono_example
@@ -22,4 +37,4 @@ namespace gs_mono_example
}
}
}
-}
+} \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/src/TempFile.cs b/demos/csharp/linux/gtk_viewer/src/TempFile.cs
index c6c313de..b233b435 100644
--- a/demos/csharp/linux/gtk_viewer/src/TempFile.cs
+++ b/demos/csharp/linux/gtk_viewer/src/TempFile.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using System.IO;
/* A class to help in the management of temp files */
@@ -31,4 +46,4 @@ namespace gs_mono_example
}
}
}
-}
+} \ No newline at end of file
diff --git a/demos/csharp/linux/gtk_viewer/src/gsOutput.cs b/demos/csharp/linux/gtk_viewer/src/gsOutput.cs
index c74dc7a3..0952ee34 100644
--- a/demos/csharp/linux/gtk_viewer/src/gsOutput.cs
+++ b/demos/csharp/linux/gtk_viewer/src/gsOutput.cs
@@ -1,4 +1,19 @@
-using System;
+/* Copyright (C) 2020-2021 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
+ CA 94945, U.S.A., +1(415)492-9861, for further information.
+*/
+
+using System;
using Gtk;
namespace gs_mono_example
@@ -38,4 +53,4 @@ namespace gs_mono_example
}
}
-}
+} \ No newline at end of file