Yggtk/src/application.vala

42 lines
1.2 KiB
Vala
Raw Normal View History

2020-01-25 22:31:37 +00:00
/**
2020-01-17 22:13:39 +00:00
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
2020-01-25 22:31:37 +00:00
* any later version.
2020-01-17 22:13:39 +00:00
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
using Gtk;
2020-01-25 22:31:37 +00:00
namespace Yggtk {
2020-01-17 22:13:39 +00:00
2020-01-25 22:31:37 +00:00
public class Application : Gtk.Application {
2020-01-17 22:13:39 +00:00
2020-01-25 22:31:37 +00:00
public Application () {
Object (
application_id: "org.yggtk.yggtk",
flags: ApplicationFlags.FLAGS_NONE
);
}
2020-01-17 22:13:39 +00:00
2020-01-25 22:31:37 +00:00
protected override void activate () {
AppWindow window = new AppWindow ();
add_window (window);
window.show ();
}
2020-01-17 22:13:39 +00:00
2020-01-25 22:31:37 +00:00
public static int main (string[] args) {
Application app = new Application ();
return app.run (args);
}
}
2020-01-17 22:13:39 +00:00
2020-01-25 22:13:54 +00:00
}