test-gapplication: Untabify, add modeline

This commit is contained in:
Jasper St. Pierre 2012-03-30 10:44:36 -04:00
parent c9fa0fdff0
commit 985db40547

View File

@ -1,4 +1,5 @@
#!/usr/bin/env gjs #!/usr/bin/env gjs
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Gdk = imports.gi.Gdk; const Gdk = imports.gi.Gdk;
const Gio = imports.gi.Gio; const Gio = imports.gi.Gio;
@ -28,7 +29,7 @@ function main() {
let app = new Gtk.Application({ application_id: 'org.gnome.Shell.GtkApplicationTest' }); let app = new Gtk.Application({ application_id: 'org.gnome.Shell.GtkApplicationTest' });
app.connect('activate', function() { app.connect('activate', function() {
print ("Activated"); print ("Activated");
}); });
let action = new Gio.SimpleAction({ name: 'one' }); let action = new Gio.SimpleAction({ name: 'one' });
@ -91,12 +92,11 @@ function main() {
let window = null; let window = null;
app.connect_after('startup', function(app) { app.connect_after('startup', function(app) {
app.set_app_menu(menu); app.set_app_menu(menu);
window = new Gtk.ApplicationWindow({ title: "Test Application", application: app });
window = new Gtk.ApplicationWindow({ title: "Test Application", application: app });
}); });
app.connect('activate', function(app) { app.connect('activate', function(app) {
window.present(); window.present();
}); });
app.run(null); app.run(null);