Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > eb5da33c85baad94649340be9b3e726a > files > 54

libglade-java-devel-2.12.8-7mdv2010.0.x86_64.rpm

/*
 * Generated by LibGladeStubs from test.glade
 */

package glade;

import java.io.IOException;

import org.gnu.glade.LibGlade;
import org.gnu.gtk.Gtk;
import org.gnu.gtk.event.GtkEvent;

public class Test
{

	private static final String	gladeFile	= "glade/test.glade";

	public Test() throws IOException {
		new LibGlade(gladeFile, this);
	}

	// Signal handlers, as defined in test.glade

	/**
	 * gtkMainQuit method to handle the "delete_event" signal.
	 * 
	 * @param source
	 *            the widget that fired this signal
	 * @param target
	 *            an object defined as the target of this signal, or null.
	 */
	public void gtkMainQuit(GtkEvent event, Object target) {
		System.out.println("Quitting...");
		Gtk.mainQuit();
	}

	public static void main(String args[]) {
		Gtk.init(args);
		try {
			new Test();
		} catch (IOException e) {
			System.err.println(e.toString());
			System.exit(1);
		}
		Gtk.main();
	}
}