~david4dev/plug-startup/trunk

« back to all changes in this revision

Viewing changes to startup.vala

  • Committer: David Green
  • Date: 2011-08-28 12:14:07 UTC
  • Revision ID: david4dev@gmail.com-20110828121407-hs7q6m0h3w1dvdk9
changedĀ someĀ installationĀ configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
932
932
 
933
933
    public class MainWindow : Window {
934
934
        public MainWindow () {
 
935
            title = "Startup Applications";
 
936
            set_default_icon_name("gnome-session-properties");
935
937
            add(new Controller());
936
938
            destroy.connect(Gtk.main_quit);
937
939
            resize(800, 600);
950
952
    public static void main (string[] args) {
951
953
        Startup.init();
952
954
        Gtk.init(ref args);
953
 
        if (args.length > 1 && args[1] == "window") {
954
 
            new MainWindow();
955
 
        } else {
 
955
        if (args.length > 1 && args[1] == "plug") {
956
956
            var plug = new Plug ();
957
957
            plug.register ("Startup Applications");
958
958
            plug.show();
 
959
        } else {
 
960
            new MainWindow();
959
961
        }
960
962
        Gtk.main();
961
963
    }