-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add new dbus method to get current input method info #1263
Conversation
@hantengc 老k,帮忙看看这个pr,存在一个dbus方法:CurrentInputMethod只能获取到输入法的uniqueName。 |
Can you make it return the exact same thing like FullInputMethodGroupInfo does? |
@wengxt 目前只缺少了layout,应该不需要返回layout吧? |
ea53408
to
ef54471
Compare
c7f4ec0
to
d19ae4e
Compare
d19ae4e
to
6741ad1
Compare
src/modules/dbus/dbusmodule.cpp
Outdated
std::string, std::string, std::string, | ||
std::string, bool, std::string>> | ||
currentInputMethodInfo() { | ||
std::vector<dbus::DBusStruct<std::string, std::string, std::string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只可能有 0 或者 1 个结果,没必要用 vector 吧。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
eea4106
to
341059b
Compare
src/modules/dbus/dbusmodule.cpp
Outdated
std::string currentIM = instance_->currentInputMethod(); | ||
const auto *entry = instance_->inputMethodManager().entry(currentIM); | ||
if (entry == nullptr) { | ||
return {"", "", "", "", "", "", "", false, ""}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply {} should be enough
Also, previously I'd like it to be "sssssssbsa{sv}", while we have nothing for "a{sv}" (empty), we still want it in case we want to add anything in the future.
ae7c0cd
to
dadcacf
Compare
No description provided.