[gnome-characters] characterList: Define unmodified scroll bindings
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] characterList: Define unmodified scroll bindings
- Date: Tue, 3 Mar 2015 03:31:06 +0000 (UTC)
commit 8489f07dfd75f2cfb22312e92e5bf1b3bf00e32a
Author: Daiki Ueno <dueno src gnome org>
Date: Tue Mar 3 12:29:51 2015 +0900
characterList: Define unmodified scroll bindings
data/application.css | 10 ++++++++++
src/characterList.js | 1 +
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/data/application.css b/data/application.css
index 47558f9..3b42a7f 100644
--- a/data/application.css
+++ b/data/application.css
@@ -37,3 +37,13 @@
border-style: groove;
border-width: 2pt;
}
+
+ binding-set ScrollUnmodified {
+ bind "space" { "scroll-child" (page-down, 0) };
+ bind "Up" { "scroll-child" (step-up, 0) };
+ bind "Down" { "scroll-child" (step-down, 0) };
+}
+
+GtkScrolledWindow.character-list-scroll {
+ gtk-key-bindings: ScrollUnmodified;
+}
diff --git a/src/characterList.js b/src/characterList.js
index e2fdb74..4dbdf59 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -264,6 +264,7 @@ const CharacterListView = new Lang.Class({
visible: true
});
scroll.add(this._characterList);
+ scroll.get_style_context().add_class('character-list-scroll');
this.add_named(scroll, 'character-list');
this.visible_child_name = 'character-list';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]