diff --git a/sample/rsvg/Makefile.am b/sample/rsvg/Makefile.am deleted file mode 100644 index ad13476b8..000000000 --- a/sample/rsvg/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -assemblies = ../../glib/glib-sharp.dll ../../pango/pango-sharp.dll ../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll ../../art/art-sharp.dll ../../rsvg/rsvg-sharp.dll -references = $(addprefix /r:, $(assemblies)) - -if ENABLE_RSVG -TARGETS = svghelloworld.exe -else -TARGETS = -endif -CLEANFILES = $(TARGETS) -noinst_SCRIPTS = $(TARGETS) -EXTRA_DIST = svghelloworld.cs sample.svg - -SOURCES = $(srcdir)/svghelloworld.cs -svghelloworld.exe: $(SOURCES) $(assemblies) - $(CSC) /out:svghelloworld.exe $(SOURCES) $(references) - diff --git a/sample/rsvg/SvgFromResource.cs b/sample/rsvg/SvgFromResource.cs deleted file mode 100644 index e98682b69..000000000 --- a/sample/rsvg/SvgFromResource.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using Gtk; -using Rsvg; - -class RsvgResourceTest : Window -{ - static void Main () - { - Application.Init (); - new RsvgResourceTest (); - Application.Run (); - } - - RsvgResourceTest () : base ("Rsvg Draw Test") - { - this.DeleteEvent += new DeleteEventHandler (OnWinDelete); - - Image image = new Image (); - image.Pixbuf = Pixbuf.LoadFromResource ("sample.svg"); - this.Add (image); - - this.ShowAll (); - } - - void OnWinDelete (object sender, DeleteEventArgs e) - { - Application.Quit (); - } -} - diff --git a/sample/rsvg/SvgFromStream.cs b/sample/rsvg/SvgFromStream.cs deleted file mode 100644 index a307bae54..000000000 --- a/sample/rsvg/SvgFromStream.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.IO; -using Gtk; -using Rsvg; - -class RsvgResourceTest : Window -{ - static void Main () - { - Application.Init (); - new RsvgResourceTest (); - Application.Run (); - } - - RsvgResourceTest () : base ("Rsvg Draw Test") - { - this.DeleteEvent += new DeleteEventHandler (OnWinDelete); - - Image image = new Image (); - - // contrived way to get a stream - System.IO.Stream s = System.Reflection.Assembly.GetCallingAssembly ().GetManifestResourceStream ("sample.svg"); - if (s == null) - throw new ArgumentException ("resource must be a valid resource name of 'assembly'."); - - image.Pixbuf = Pixbuf.LoadFromStream (s); - this.Add (image); - - this.ShowAll (); - } - - void OnWinDelete (object sender, DeleteEventArgs e) - { - Application.Quit (); - } -} - diff --git a/sample/rsvg/sample.svg b/sample/rsvg/sample.svg deleted file mode 100644 index 4193feaff..000000000 --- a/sample/rsvg/sample.svg +++ /dev/null @@ -1,2211 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sample/rsvg/svghelloworld.cs b/sample/rsvg/svghelloworld.cs deleted file mode 100644 index 1988b0a16..000000000 --- a/sample/rsvg/svghelloworld.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -// samples/rsvg/svghelloworkd.cs -// -// Author: Charles Iliya Krempeaux -// -using System; -using Gtk; - - class SvgHelloWorld - { - static void Main (string[] args) - { - Application.Init (); - MyMainWindow app = new MyMainWindow (); - app.ShowAll (); - - Application.Run (); - } - } - - class MyMainWindow : Gtk.Window - { - public MyMainWindow () : base ("SVG Hello World") - { - this.DeleteEvent += new Gtk.DeleteEventHandler(delete_event); - string svg_file_name = "sample.svg"; - Gdk.Pixbuf pixbuf = Rsvg.Pixbuf.FromFile (svg_file_name); - - Gtk.Image image = new Gtk.Image(); - image.Pixbuf = pixbuf; - - this.Add (image); - } - - private void delete_event(object obj, Gtk.DeleteEventArgs args) - { - Application.Quit(); - } - } - -