blob: 42eac52516a728cb079e3bd48ca60ba2197ac66d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <gtkmm/application.h>
#include <gtkmm/button.h>
#include <gtkmm/window.h>
int main(int argc, char *argv[])
{
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv);
Gtk::Window window;
Gtk::Button button("Hello World");
button.signal_clicked().connect(sigc::mem_fun(window, &Gtk::Window::close));
window.add(button);
window.show_all();
return app->run(window);
}
|