Use Hildon.Program and Hildon.Window
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 7 Oct 2009 09:45:18 +0000 (11:45 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Fri, 30 Oct 2009 14:28:38 +0000 (15:28 +0100)
Makefile
src/main.vala

index 51879ca..bf330b2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 cinaest_SOURCES = \
        src/main.vala
 
-cinaest_VALAFLAGS = --pkg gtk+-2.0
+cinaest_VALAFLAGS = --pkg hildon-1
 
 cinaest: ${cinaest_SOURCES}
        valac -o $@ ${cinaest_VALAFLAGS} ${cinaest_SOURCES}
index 6fea2b5..df122e3 100644 (file)
  * along with Cinaest. If not, see <http://www.gnu.org/licenses/>.
  */
 
-using Gtk;
+using Hildon;
 
-public class CinaestProgram : GLib.Object {
+public class CinaestProgram : Hildon.Program {
        Window window;
 
        construct {
-               window = new Window (WindowType.TOPLEVEL);
+               window = new Window ();
                window.destroy.connect (Gtk.main_quit);
 
+               add_window (window);
+
                Environment.set_application_name ("Cinæst");
        }