~jjbernal/spritehut/vala

« back to all changes in this revision

Viewing changes to src/spritehut-app.vala

  • Committer: Juan José Bernal Rodríguez
  • Date: 2011-12-27 12:46:28 UTC
  • Revision ID: juanjose.bernal.rodriguez@gmail.com-20111227124628-67evpd6wy3eezamk
* Changed SpriteHut.App class to inherit from Gtk.Application
* Added GDL3 vapi and widgets.
* Updated AUTHORS to credit the Tango Desktop Project

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
using Gtk;
20
20
using Cairo;
 
21
using Widgets;
21
22
using Controllers;
22
23
 
23
 
public class SpriteHut.App : Object
 
24
public class SpriteHut.App : Gtk.Application
24
25
{
25
 
        public App()
26
 
        {
27
 
            Controllers.Main main_controller = new Main();
28
 
            
 
26
        public App (string app_id, ApplicationFlags flags)
 
27
        {
 
28
            GLib.Object (application_id: app_id, flags: flags);
 
29
        }
 
30
        
 
31
        public void on_app_activate()
 
32
        {
 
33
            var main_window = new Widgets.MainWindow();
 
34
            Controllers.Main main_controller = new Controllers.Main(main_window);
 
35
                    
29
36
            Gtk.main();
30
37
        }
31
38
}