diff --git a/src/app/browser.cpp b/src/app/browser.cpp index d1b2e1d3..3bdaa8d9 100644 --- a/src/app/browser.cpp +++ b/src/app/browser.cpp @@ -26,11 +26,14 @@ Browser::Browser( } ); - const auto ACTION__OPEN = add_action_with_parameter( + add_action_with_parameter( "open", - Glib::VariantType("s"), // string - [this](const Glib::VariantBase & parameter) + Glib::VARIANT_TYPE_STRING, + [this](const Glib::VariantBase & PARAMETER) { + if (PARAMETER.is_of_type(Glib::VARIANT_TYPE_STRING)) + { + } // @TODO process request // Glib::VariantBase::cast_dynamic>(parameter).get() } diff --git a/src/app/browser.hpp b/src/app/browser.hpp index e625279d..b0ee76be 100644 --- a/src/app/browser.hpp +++ b/src/app/browser.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include