[Xfce4-commits] <postler:master> Return/ Enter should activate the current message
Christian Dywan
noreply at xfce.org
Tue Nov 23 23:12:02 CET 2010
Updating branch refs/heads/master
to faf23217df841343c44425552c87108da5fba409 (commit)
from ecbf352d113eb5dedb5c7d0714ca9020a280f44d (commit)
commit faf23217df841343c44425552c87108da5fba409
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Nov 23 22:40:19 2010 +0100
Return/ Enter should activate the current message
As opposed to individual toggle cell renderers.
postler/postler-messages.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/postler/postler-messages.vala b/postler/postler-messages.vala
index b30b393..9f9beca 100644
--- a/postler/postler-messages.vala
+++ b/postler/postler-messages.vala
@@ -255,6 +255,15 @@ 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 ("Return"), 0,
+ "content-display", 0);
+ Gtk.BindingEntry.add_signal (binding_set,
+ Gdk.keyval_from_name ("ISO_Enter"), 0,
+ "content-display", 0);
+ Gtk.BindingEntry.add_signal (binding_set,
+ Gdk.keyval_from_name ("KP_Enter"), 0,
+ "content-display", 0);
+ Gtk.BindingEntry.add_signal (binding_set,
Gdk.keyval_from_name ("space"), 0,
"content-page-down", 0);
Gtk.BindingEntry.add_signal (binding_set,
@@ -265,6 +274,10 @@ public class Postler.Messages : Gtk.TreeView {
}
[Signal (action=true)]
+ public virtual signal void content_display () {
+ select_cursor_row (false);
+ }
+ [Signal (action=true)]
public virtual signal void content_page_down () {
content.move_cursor (Gtk.MovementStep.PAGES, 1);
}
More information about the Xfce4-commits
mailing list