[aseprite] 01/51: Add "apply" button to options window
Tobias Hansen
thansen at moszumanska.debian.org
Mon Jul 11 21:35:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 1cf82697efe464fd2eb6d067ad15eafe9f4d0ca0
Author: Ying-Ruei Liang (KK) <thumbd03803 at gmail.com>
Date: Sun Dec 20 23:58:25 2015 +0800
Add "apply" button to options window
---
data/widgets/options.xml | 1 +
src/app/commands/cmd_options.cpp | 3 +++
2 files changed, 4 insertions(+)
diff --git a/data/widgets/options.xml b/data/widgets/options.xml
index c962cbe..4899532 100644
--- a/data/widgets/options.xml
+++ b/data/widgets/options.xml
@@ -164,6 +164,7 @@
<boxfiller />
<hbox homogeneous="true">
<button text="&OK" closewindow="true" id="button_ok" magnet="true" width="60" />
+ <button text="&Apply" id="button_apply" width="60" />
<button text="&Cancel" closewindow="true" />
</hbox>
</hbox>
diff --git a/src/app/commands/cmd_options.cpp b/src/app/commands/cmd_options.cpp
index 22655af..994e2fe 100644
--- a/src/app/commands/cmd_options.cpp
+++ b/src/app/commands/cmd_options.cpp
@@ -164,6 +164,9 @@ public:
selectTheme()->Click.connect(base::Bind<void>(&OptionsWindow::onSelectTheme, this));
openThemeFolder()->Click.connect(base::Bind<void>(&OptionsWindow::onOpenThemeFolder, this));
+ // Apply button
+ buttonApply()->Click.connect(base::Bind<void>(&OptionsWindow::saveConfig, this));
+
onChangeGridScope();
sectionListbox()->selectIndex(m_curSection);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list