[Xfce4-commits] <postler:master> Page down (up) content from message view with (Shift) space

Christian Dywan noreply at xfce.org
Sat Jul 10 00:24:15 CEST 2010


Updating branch refs/heads/master
         to f68e97299923bdcf2f2ff898bf25e1f005f6ba49 (commit)
       from 0e26601c27564aca8a2d5391d992863f71bd8537 (commit)

commit f68e97299923bdcf2f2ff898bf25e1f005f6ba49
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jun 30 19:22:22 2010 +0200

    Page down (up) content from message view with (Shift) space

 postler/postler-messages.vala |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index aa4605b..52e260e 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -195,10 +195,24 @@ public class Postler.Messages : Gtk.TreeView {
 
         unowned Gtk.BindingSet binding_set = Gtk.BindingSet.by_class (get_class ());
         Gtk.BindingEntry.add_signal (binding_set,
+            Gdk.keyval_from_name ("space"), 0,
+                "content-page-down", 0);
+        Gtk.BindingEntry.add_signal (binding_set,
+            Gdk.keyval_from_name ("space"), Gdk.ModifierType.SHIFT_MASK,
+                "content-page-up", 0);
+        Gtk.BindingEntry.add_signal (binding_set,
             Gdk.keyval_from_name ("Delete"), 0, "delete", 0);
     }
 
     [Signal (action=true)]
+    public virtual signal void content_page_down () {
+        content.move_cursor (Gtk.MovementStep.PAGES, 1);
+    }
+    [Signal (action=true)]
+    public virtual signal void content_page_up () {
+        content.move_cursor (Gtk.MovementStep.PAGES, -1);
+    }
+    [Signal (action=true)]
     public virtual signal void delete () {
         delete_selected ();
     }



More information about the Xfce4-commits mailing list