mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
test-gapplication: Untabify, add modeline
This commit is contained in:
parent
c9fa0fdff0
commit
985db40547
1 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env gjs
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
const Gdk = imports.gi.Gdk;
|
||||
const Gio = imports.gi.Gio;
|
||||
|
|
@ -28,7 +29,7 @@ function main() {
|
|||
|
||||
let app = new Gtk.Application({ application_id: 'org.gnome.Shell.GtkApplicationTest' });
|
||||
app.connect('activate', function() {
|
||||
print ("Activated");
|
||||
print ("Activated");
|
||||
});
|
||||
|
||||
let action = new Gio.SimpleAction({ name: 'one' });
|
||||
|
|
@ -91,12 +92,11 @@ function main() {
|
|||
let window = null;
|
||||
|
||||
app.connect_after('startup', function(app) {
|
||||
app.set_app_menu(menu);
|
||||
|
||||
window = new Gtk.ApplicationWindow({ title: "Test Application", application: app });
|
||||
app.set_app_menu(menu);
|
||||
window = new Gtk.ApplicationWindow({ title: "Test Application", application: app });
|
||||
});
|
||||
app.connect('activate', function(app) {
|
||||
window.present();
|
||||
window.present();
|
||||
});
|
||||
|
||||
app.run(null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue