The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

GtkWindow.vala in birdui

This file is a part of the Birdfont project.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git

Revisions

View the latest version of birdui/GtkWindow.vala.
Merge ../birdfont-2.x
1 /* 2 Copyright (C) 2016 Johan Mattsson 3 4 This library is free software; you can redistribute it and/or modify 5 it under the terms of the GNU Lesser General Public License as 6 published by the Free Software Foundation; either version 3 of the 7 License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, but 10 WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Lesser General Public License for more details. 13 */ 14 15 using Bird; 16 using Gtk; 17 18 int main (string[] args) { 19 Gtk.init (ref args); 20 21 Window window = new Window (); 22 window.set_title ("UI Bird"); 23 window.destroy.connect (Gtk.main_quit); 24 25 UI layout = new UI ("test.ui", 700, 200); 26 27 layout.print_tree (); 28 29 Bird.Widget primary_layout = new Bird.Widget (layout); 30 31 Box vbox = new Box (Orientation.VERTICAL, 0); 32 vbox.pack_start(primary_layout, true, true, 0); 33 window.add (vbox); 34 35 window.show_all (); 36 37 Gtk.main (); 38 return 0; 39 } 40