コード例 #1
0
        public Gtk.Window CreateWindow()
        {
            Gnome.App win = new Gnome.App("gnome-hello-world", "Gnome# Hello World");
            win.DeleteEvent += new DeleteEventHandler(Window_Delete);

            win.Menus = CreateMenus();

            VBox vbox = new VBox(false, 0);

            vbox.PackStart(new Label("The following demos are available.\nTo run a demo, double click on its icon."), false, false, 4);
            vbox.PackStart(CreateList(), true, true, 4);
            win.Contents = vbox;

            win.DefaultWidth  = 250;
            win.DefaultHeight = 200;

            return(win);
        }
コード例 #2
0
		public Gtk.Window CreateWindow ()
		{
			Gnome.App win = new Gnome.App ("gnome-hello-world", "Gnome# Hello World");
			win.DeleteEvent += new DeleteEventHandler (Window_Delete);

			win.Menus = CreateMenus ();
			
			VBox vbox = new VBox (false, 0);
			vbox.PackStart (new Label ("The following demos are available.\nTo run a demo, double click on its icon."), false, false, 4);
			vbox.PackStart (CreateList (), true, true, 4);
			win.Contents = vbox;

			win.DefaultWidth = 250;
			win.DefaultHeight = 200;

			return win;
		}
コード例 #3
0
ファイル: SloggerApp.cs プロジェクト: RoDaniel/featurehouse
 public void on_quit(object o, EventArgs args)
 {
     SloggerApp.Hide();
        SloggerApp.Destroy();
        SloggerApp = null;
        Application.Quit();
 }