🔧 Enable mode indication for setProgressBar

This commit enables setting a mode for the setProgressBar method.
Old behavior is kept intact, usage is entirely optional.
This commit is contained in:
Felix Rieseberg 2016-08-08 15:44:48 -07:00
parent 5eeadb0ad4
commit 73c91dae9e
11 changed files with 72 additions and 20 deletions

View file

@ -584,8 +584,12 @@ void Window::SetFocusable(bool focusable) {
return window_->SetFocusable(focusable);
}
void Window::SetProgressBar(double progress) {
window_->SetProgressBar(progress);
void Window::SetProgressBar(double progress, mate::Arguments* args) {
mate::Dictionary options;
std::string mode;
args->GetNext(&options) && options.Get("mode", &mode);
window_->SetProgressBar(progress, mode);
}
void Window::SetOverlayIcon(const gfx::Image& overlay,