d366e97eff2dd37fade8525111697940a4c5a634
[moonshot-ui.git] / src / moonshot-identity-manager-app.vala
1 using Gtk;
2
3 class IdentityManagerApp : Window {
4     private MainWindow main_window;
5     
6     public IdentityManagerApp () {
7         main_window = new MainWindow();
8         main_window.show();
9     }
10     
11 /*    public int run(string[] args){
12         GLib.Application.run(args);
13      }*/
14     public static int main(string[] args)
15     {
16         Gtk.init(ref args);
17
18 #if OS_WIN32
19         // Force specific theme settings on Windows without requiring a gtkrc file
20         Gtk.Settings settings = Gtk.Settings.get_default ();
21         settings.set_string_property ("gtk-theme-name", "ms-windows", "moonshot");
22         settings.set_long_property ("gtk-menu-images", 0, "moonshot");
23 #endif
24
25         Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
26         Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
27         Intl.textdomain (Config.GETTEXT_PACKAGE);
28         
29         var app = new IdentityManagerApp();
30         
31 //        app.show();
32  
33         Gtk.main();
34
35         return 0;
36     }
37 }
38