diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-08-06 22:12:08 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-08-06 22:24:59 +0200 |
| commit | 9d586aec3a5615377e389318e97e7d756c970c96 (patch) | |
| tree | 8f2bf46ab5020a97482fbe87b6f1337842c70a19 /src/gui_gtk.cc | |
| parent | be1dc86b5434e84a88ba2e62873d87c62f8880c0 (diff) | |
Make sure QtLooper doesn't use QSocketNotifier before QApplication is created
Diffstat (limited to 'src/gui_gtk.cc')
| -rw-r--r-- | src/gui_gtk.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui_gtk.cc b/src/gui_gtk.cc index 2056034..20a6147 100644 --- a/src/gui_gtk.cc +++ b/src/gui_gtk.cc @@ -593,6 +593,8 @@ public: config_(new GtkConfig()), menu_(nullptr), statusbar_(nullptr) { } + Looper* create_looper() override; + void set_menu(GuiMenu* menu) override { assert(menu); menu_ = menu; @@ -2353,6 +2355,10 @@ private: std::unordered_map<int, std::unique_ptr<Fd>> fds_; }; +Looper* GtkGuiMain::create_looper() { + return new GtkLooper(); +} + } // namespace // static @@ -2433,11 +2439,6 @@ GuiMessage* GuiMessage::create(Type type, } // static -Looper* GuiMain::createLooper() { - return new GtkLooper(); -} - -// static AttributedText* AttributedText::create() { return new GtkAttributedText(); } |
