File: ObjectPickExample.cs

package info (click to toggle)
gtkglarea-sharp 0.0.17-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,144 kB
  • ctags: 492
  • sloc: sh: 3,376; cs: 2,633; makefile: 421; xml: 126
file content (32 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

namespace GtkGL
{
	using System;
	using Gtk;
	
	public class ObjectPickExample
	{
		public GtkGL.PickWidget glw;
		public Gtk.Window window;
		Glade.XML gxml;

		public ObjectPickExample()
		{
			// Create a new GL widget
			glw = new PickWidget();
			
			// Read in the glade file that describes the widget layout
			gxml = new Glade.XML (null, "glwidget.glade", "glwidget", null);

			// Connect the Signals defined in Glade
			gxml.Autoconnect (glw);
			
			// Pack the gl window into the vbox
	        Gtk.VBox vbox1 = (Gtk.VBox)gxml["vbox1"];
	        vbox1.PackStart ( glw );
	        
			window = (Gtk.Window)gxml["glwidget"];
		}
	}
	
}