Move definition to .cpp
This commit is contained in:
parent
02560a6537
commit
59040c53e4
|
@ -32,12 +32,7 @@ class Language : public ALabel, public sigc::trackable {
|
||||||
std::string short_name;
|
std::string short_name;
|
||||||
std::string variant;
|
std::string variant;
|
||||||
std::string short_description;
|
std::string short_description;
|
||||||
std::string country_flag() const {
|
std::string country_flag() const;
|
||||||
static std::string result = "\xf0\x9f\x87\xff\xf0\x9f\x87\xff";
|
|
||||||
result[3] = short_name[0] - 0xbb;
|
|
||||||
result[7] = short_name[1] - 0xbb;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class XKBContext {
|
class XKBContext {
|
||||||
|
|
|
@ -213,4 +213,11 @@ Language::XKBContext::~XKBContext() {
|
||||||
rxkb_context_unref(context_);
|
rxkb_context_unref(context_);
|
||||||
delete layout_;
|
delete layout_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string Language::Layout::country_flag() const {
|
||||||
|
static std::string result = "\xf0\x9f\x87\xff\xf0\x9f\x87\xff";
|
||||||
|
result[3] = short_name[0] - 0xbb;
|
||||||
|
result[7] = short_name[1] - 0xbb;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
} // namespace waybar::modules::sway
|
} // namespace waybar::modules::sway
|
||||||
|
|
Loading…
Reference in New Issue