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.
This commit is contained in:
Mike Kestner 2011-02-09 16:58:50 -06:00
parent 8c0e123418
commit 96c8904219
4 changed files with 1 additions and 212 deletions

View File

@ -1,68 +0,0 @@
// GladeViewer.cs - Tests for LibGlade in C#
//
// Author: Ricardo Fernández Pascual <ric@users.sourceforge.net>
//
// (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 ();
}
}
}

View File

@ -1,49 +0,0 @@
// GladeViewer.cs - Silly tests for LibGlade in C#
//
// Author: Ricardo Fernández Pascual <ric@users.sourceforge.net>
//
// (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 ();
}
}
}

View File

@ -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 \

View File

@ -1,91 +0,0 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
<glade-interface>
<widget class="GtkWindow" id="main_window">
<property name="visible">True</property>
<property name="title" translatable="yes">Glade# test</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">True</property>
<property name="destroy_with_parent">False</property>
<signal name="delete_event" handler="OnWindowDeleteEvent" last_modification_time="Tue, 03 Sep 2002 14:47:57 GMT"/>
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<child>
<widget class="GtkMenuBar" id="menubar1">
<property name="visible">True</property>
<child>
<widget class="GtkMenuItem" id="menuitem1">
<property name="visible">True</property>
<property name="label" translatable="yes">_File</property>
<property name="use_underline">True</property>
<child>
<widget class="GtkMenu" id="menuitem1_menu">
<child>
<widget class="GtkImageMenuItem" id="quit1">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
<signal name="activate" handler="OnQuitActivated" last_modification_time="Wed, 22 Jun 2005 21:34:16 GMT"/>
</widget>
</child>
</widget>
</child>
</widget>
</child>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Click here</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="OnButton1Clicked" last_modification_time="Tue, 13 Aug 2002 15:24:35 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
<child>
<widget class="GtkButton" id="button2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Don't click here</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<signal name="clicked" handler="OnButton2Clicked" last_modification_time="Tue, 13 Aug 2002 15:24:35 GMT"/>
<signal name="enter" handler="OnButton2Entered" last_modification_time="Wed, 04 Sep 2002 14:04:40 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
<property name="expand">False</property>
<property name="fill">False</property>
</packing>
</child>
</widget>
</child>
</widget>
</glade-interface>