~nathandyer/birdie/manual-import

« back to all changes in this revision

Viewing changes to src/main.vala

  • Committer: Nathan Dyer
  • Date: 2016-02-06 20:22:09 UTC
  • Revision ID: mail@nathandyer.me-20160206202209-qwhtqwi1j8feglds
Updated to git master

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
namespace Birdie {
19
19
 
20
 
    namespace Option {
21
 
        private static bool DEBUG = false;
22
 
        private static bool START_HIDDEN = false;
23
 
    }
24
 
 
25
20
    public static int main (string[] args) {
26
21
        X.init_threads ();
27
22
 
28
 
        var context = new OptionContext ("Birdie");
29
 
        context.add_main_entries (Birdie.app_options, "birdie");
30
 
        context.add_group (Gtk.get_option_group(true));
31
 
 
32
 
        try {
33
 
            context.parse (ref args);
34
 
        } catch (Error e) {
35
 
            warning (e.message);
36
 
        }
37
 
 
38
 
        Gtk.init (ref args);
39
 
        var app = new Birdie ();
40
 
 
 
23
        Granite.Application app = new Birdie ();
41
24
        return app.run (args);
42
25
    }
43
26
}