mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
define variant type using const, remove extras, define dependency
This commit is contained in:
parent
e17a47bb85
commit
382c110621
2 changed files with 7 additions and 3 deletions
|
|
@ -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<Glib::Variant<Glib::ustring>>(parameter).get()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue