[aseprite] 23/134: Minor layout changes in SelectAccelerator window
Tobias Hansen
thansen at moszumanska.debian.org
Sat Mar 14 17:09:57 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit d69a418017c9122b0f8dca89133bf069ec3ab57c
Author: David Capello <davidcapello at gmail.com>
Date: Thu Oct 30 00:33:40 2014 -0300
Minor layout changes in SelectAccelerator window
---
data/widgets/select_accelerator.xml | 5 +++--
src/app/ui/select_accelerator.cpp | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/data/widgets/select_accelerator.xml b/data/widgets/select_accelerator.xml
index 551ea73..44138e7 100644
--- a/data/widgets/select_accelerator.xml
+++ b/data/widgets/select_accelerator.xml
@@ -3,7 +3,7 @@
<gui>
<window id="select_accelerator" text="Keyboard Shortcut">
<vbox expansive="true">
- <grid columns="3">
+ <grid columns="3" expansive="true">
<label text="Key:" />
<hbox id="key_placeholder" expansive="true" />
<button text="Clear" id="clear_button" width="60" />
@@ -17,7 +17,8 @@
<check text="Space" id="space" />
</hbox>
- <label text="" id="assigned_to" cell_hspan="3" />
+ <label text="Assigned to:" />
+ <label text="" id="assigned_to" cell_hspan="2" />
</grid>
<separator horizontal="true" />
diff --git a/src/app/ui/select_accelerator.cpp b/src/app/ui/select_accelerator.cpp
index d483827..e5ee3e9 100644
--- a/src/app/ui/select_accelerator.cpp
+++ b/src/app/ui/select_accelerator.cpp
@@ -35,6 +35,7 @@ using namespace ui;
class SelectAccelerator::KeyField : public ui::Entry {
public:
KeyField(const Accelerator& accel) : ui::Entry(256, "") {
+ setExpansive(true);
setFocusMagnet(true);
setAccel(accel);
}
@@ -175,7 +176,7 @@ void SelectAccelerator::updateAssignedTo()
}
}
- assignedTo()->setText("Assigned to: " + res);
+ assignedTo()->setText(res);
}
} // namespace app
--
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