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) <thumbd03...@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="&amp;OK" closewindow="true" id="button_ok" magnet="true" 
width="60" />
+        <button text="&amp;Apply" id="button_apply" width="60" />
         <button text="&amp;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

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to