You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/gtkmm3-test.cpp

21 lines
487 B

/*
* 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);
}