Skip to content

Commit aa695e5

Browse files
committed
move app outside of header so its cleaner and possibly doesn't cause problems
1 parent 531ecdf commit aa695e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gtk/pq2gtk.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include "charactercreator.hpp"
1111
#include "gamescreen.hpp"
1212

13+
Glib::RefPtr<Gtk::Application> app;
14+
1315
GTKGUI::GTKGUI(const std::shared_ptr<Game> &game) : GUI(game) {
1416
message_handler = [this](const std::string &message) {
1517
HandleMessage(message);

gtk/pq2gtk.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66

77
#include <memory>
88
#include <string>
9-
#include <gtkmm/application.h>
109
#include "pq2gui.hpp"
1110
#include "game.hpp"
1211

1312
class GTKGUI final : public GUI {
1413

1514
private:
1615
MessageHandler message_handler;
17-
Glib::RefPtr<Gtk::Application> app;
1816

1917
void HandleMessage(const std::string& message);
2018

0 commit comments

Comments
 (0)