diff options
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(); } |
