summaryrefslogtreecommitdiffstats
path: root/src/gtkmm3-test.cpp
blob: 131cf6c56527d9d8099920e1a5dddffe187a0d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This file is part of MXE.
 * See index.html for further 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);
}