diff options
Diffstat (limited to 'src/abaddon.cpp')
-rw-r--r-- | src/abaddon.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp index af28571..baa6d45 100644 --- a/src/abaddon.cpp +++ b/src/abaddon.cpp @@ -17,6 +17,10 @@ #include "windows/pinnedwindow.hpp" #include "windows/threadswindow.hpp" +#ifdef WITH_LIBHANDY + #include <handy.h> +#endif + #ifdef _WIN32 #pragma comment(lib, "crypt32.lib") #endif @@ -62,6 +66,12 @@ Abaddon &Abaddon::Get() { int Abaddon::StartGTK() { m_gtk_app = Gtk::Application::create("com.github.uowuo.abaddon"); +#ifdef WITH_LIBHANDY + m_gtk_app->signal_activate().connect([] { + hdy_init(); + }); +#endif + m_css_provider = Gtk::CssProvider::create(); m_css_provider->signal_parsing_error().connect([](const Glib::RefPtr<const Gtk::CssSection> §ion, const Glib::Error &error) { Gtk::MessageDialog dlg("css failed parsing (" + error.what() + ")", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true); |