~codygarver/absolem/absolem

« back to all changes in this revision

Viewing changes to src/absolem.vala

  • Committer: Cody Garver
  • Date: 2011-08-02 17:05:31 UTC
  • Revision ID: codygarver@gmail.com-20110802170531-65bzrgobhzhalwnd
Split nmap scan to its own file and removed redundant code

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
/*public const int INFO_MIN_WIDTH = 280;
30
30
public const int INFO_MIN_HEIGHT = 320;*/
31
31
 
32
 
public class AbsolemWindow : Gtk.Window {
 
32
// kill absolem on exit
 
33
public void destroy_handler () {
 
34
        
 
35
        Gtk.main_quit ();
 
36
    
 
37
    }
 
38
 
 
39
public class AbsolemWindow : Window {
33
40
 
34
41
        // toolbar widgets
35
42
        private AppMenu app_menu;
124
131
 
125
132
        }
126
133
 
127
 
        private void nmap_scan () {
128
 
 
129
 
                try {
130
 
                GLib.Process.spawn_async ("/usr/bin/", 
131
 
                    {"nmap", 
132
 
                    "192.168.1.1/24"}, 
133
 
                    null, GLib.SpawnFlags.STDERR_TO_DEV_NULL, null, null);
134
 
            } catch { }
135
 
        }
136
 
 
137
134
        private void save_map () {
138
135
 
139
136
                stdout.printf("Exporting not yet available.\n");
140
137
 
141
138
        }
142
 
 
143
 
        // tell absolem what to do when you quit
144
 
        public void destroy_handler () {
145
 
        
146
 
        Gtk.main_quit ();
147
 
    
148
 
    }
149
139
}
150
140
 
151
141
AbsolemWindow app;
179
169
        this.show();
180
170
 
181
171
 
182
 
        }*/    
183
 
    // tell absolem what to do when you quit
184
 
    /*public void destroy_handler () {
185
 
        
186
 
        Gtk.main_quit ();
187
 
    
188
 
    }*/
189
 
//}
 
172
        }    
 
173
}*/
190
174
 
191
175
// This is where we tell the application the main action(s) to perform. Draw the gui.   
192
176
public void main (string[] args) {