From 081d5b14da4a35858fb14bd2dae3bc4d2dc28201 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 28 Jan 2011 11:05:01 +0100 Subject: [PATCH] Add some bindings to testgtk.css for testing --- tests/testgtk.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/testgtk.css b/tests/testgtk.css index 24ed65547c..f1207f72a1 100644 --- a/tests/testgtk.css +++ b/tests/testgtk.css @@ -1,6 +1,11 @@ /* testgtk2.css sets all the buttons in the main window to blue by default */ @import url("testgtk2.css"); +@binding-set entry-bindings { + bind "s" { "move-cursor" (visual-positions, 3, 0) }; + bind "a" { "move-cursor" (visual-positions, -3, 0) }; +}; + * { -GtkButton-child-displacement-x: 1; -GtkButton-child-displacement-y: 1; @@ -31,3 +36,7 @@ GtkLabel:prelight { #main_window GtkScrolledWindow GtkButton:prelight { background-color: rgb (0%, 75%, 0); } + +GtkEntry { + gtk-key-bindings: entry-bindings; +}