From 96c8904219a51d1030c333734d3f9ae2ce681ac2 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 9 Feb 2011 16:58:50 -0600 Subject: [PATCH] Kill the glade samples. * sample/Glade*.cs: remove * sample/test.glade: remove * sample/Makefile.am: remove glade files from dist and comment out SUDIRS temporarily. --- sample/GladeTest.cs | 68 -------------------------------- sample/GladeViewer.cs | 49 ----------------------- sample/Makefile.am | 5 +-- sample/test.glade | 91 ------------------------------------------- 4 files changed, 1 insertion(+), 212 deletions(-) delete mode 100644 sample/GladeTest.cs delete mode 100644 sample/GladeViewer.cs delete mode 100644 sample/test.glade diff --git a/sample/GladeTest.cs b/sample/GladeTest.cs deleted file mode 100644 index 691140057..000000000 --- a/sample/GladeTest.cs +++ /dev/null @@ -1,68 +0,0 @@ -// GladeViewer.cs - Tests for LibGlade in C# -// -// Author: Ricardo Fernández Pascual -// -// (c) 2002 Ricardo Fernández Pascual - -namespace GladeSamples { - using System; - - using Gtk; - using Glade; - - public class GladeTest - { - [Glade.Widget] - Gtk.Window main_window; - - public static void Main (string[] args) - { - Application.Init (); - - new GladeTest (); - - Application.Run (); - } - - public GladeTest () - { - /* Note that we load the XML info from the assembly instead of using - an external file. You don't have to distribute the .glade file if - you don't want */ - Glade.XML gxml = new Glade.XML (null, "test.glade", "main_window", null); - gxml.Autoconnect (this); - - if (main_window != null) - Console.WriteLine ("Main Window Title: \"{0}\"", main_window.Title); - else - Console.WriteLine ("WidgetAttribute is broken."); - } - - public void OnWindowDeleteEvent (object o, DeleteEventArgs args) - { - Application.Quit (); - args.RetVal = true; - } - - public void OnButton1Clicked (System.Object b, EventArgs e) - { - Console.WriteLine ("Button 1 clicked"); - } - - public static void OnButton2Clicked (System.Object b, EventArgs e) - { - Console.WriteLine ("Button 2 clicked"); - } - - public void OnButton2Entered (System.Object b, EventArgs e) - { - Console.WriteLine ("Button 2 entered"); - } - - public void OnQuitActivated (object o, EventArgs args) - { - Application.Quit (); - } - } -} - diff --git a/sample/GladeViewer.cs b/sample/GladeViewer.cs deleted file mode 100644 index 67d0dbf83..000000000 --- a/sample/GladeViewer.cs +++ /dev/null @@ -1,49 +0,0 @@ -// GladeViewer.cs - Silly tests for LibGlade in C# -// -// Author: Ricardo Fernández Pascual -// -// (c) 2002 Ricardo Fernández Pascual - -namespace GladeSamples { - using System; - - using Gtk; - using Glade; - - public class GladeDemo { - - public static void Main (string[] args) - { - if (args.Length < 2) { - Console.WriteLine ("Use: ./glade-viewer.exe \"fname\" \"root\""); - return; - } - - Application.Init (); - - string fname = args [0]; - string root = args [1]; - - Glade.XML gxml = new Glade.XML (fname, root, null); - Widget wid = gxml [root]; - wid.Show (); - - Console.WriteLine ("The filename: {0}", gxml.Filename); - Console.WriteLine ("A relative filename: {0}", gxml.RelativeFile ("image.png")); - - Console.WriteLine ("The name of the root widget: {0}", Glade.XML.GetWidgetName (wid)); - Console.WriteLine ("It is {0} that it was created using a Glade.XML object", - Glade.XML.GetWidgetTree (wid) != null); - - Console.WriteLine ("\nList of created widgets:"); - foreach (Widget w in gxml.GetWidgetPrefix ("")) { - Console.WriteLine ("{0} {1}", - w.GetType (), - Glade.XML.GetWidgetName (w)); - } - - Application.Run (); - } - - } -} diff --git a/sample/Makefile.am b/sample/Makefile.am index ff3f63790..53981d651 100755 --- a/sample/Makefile.am +++ b/sample/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = GtkDemo pixmaps valtest opaquetest gio gtk-gio +# SUBDIRS = GtkDemo pixmaps valtest opaquetest gio gtk-gio if ENABLE_DOTNET DOTNET_TARGETS=drawing-sample.exe @@ -116,9 +116,6 @@ EXTRA_DIST = \ ManagedTreeViewDemo.cs \ NodeViewDemo.cs \ GExceptionTest.cs \ - GladeViewer.cs \ - GladeTest.cs \ - test.glade \ CairoSample.cs \ TestDnd.cs \ CustomCellRenderer.cs \ diff --git a/sample/test.glade b/sample/test.glade deleted file mode 100644 index 8d54f8dfe..000000000 --- a/sample/test.glade +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - True - Glade# test - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - False - - - - - True - False - 0 - - - - True - - - - True - _File - True - - - - - - - True - gtk-quit - True - - - - - - - - - - 0 - False - False - - - - - - True - True - Click here - True - GTK_RELIEF_NORMAL - - - - 0 - False - False - - - - - - True - True - Don't click here - True - GTK_RELIEF_NORMAL - - - - - 0 - False - False - - - - - - -