Sprites, sprites, sprites
[hackover2013-badge-firmware.git] / mock / mock-main.cc
1 #include "mock/lcd-window.hh"
2
3 #include <glibmm/thread.h>
4 #include <gtkmm/main.h>
5
6 #include <memory>
7
8 int main(int argc, char *argv[]) {
9 Glib::thread_init();
10
11 Gtk::Main kit(argc, argv);
12 Glib::RefPtr<Gtk::Builder> glade = Gtk::Builder::create();
13 badge2013::lcd_window *win_naked = nullptr;
14
15 glade->add_from_file("mock/lcd-display.glade");
16 glade->get_widget_derived("mainwindow", win_naked);
17
18 std::unique_ptr<badge2013::lcd_window> win(win_naked);
19
20 if(win) {
21 kit.run(*win);
22 }
23 }
This page took 0.042134 seconds and 5 git commands to generate.