aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/gtk
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2024-06-28 18:49:21 +0200
committerThomas White <taw@bitwiz.me.uk>2024-06-28 18:49:21 +0200
commit592127b784903b4c6adc7e135e0ddf0ceeafaf19 (patch)
tree17fb8efb9b0b3f5c56339477761fc68e1703074c /libstorycode/gtk
parent3b91d7ca61415edcf6b453188c6a13049f3e46a0 (diff)
GtkSlideView: Home/End to raise/lower elements
Diffstat (limited to 'libstorycode/gtk')
-rw-r--r--libstorycode/gtk/gtkslideview.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtkslideview.c b/libstorycode/gtk/gtkslideview.c
index 5f78275..aa259b4 100644
--- a/libstorycode/gtk/gtkslideview.c
+++ b/libstorycode/gtk/gtkslideview.c
@@ -1301,6 +1301,20 @@ static gboolean gtksv_key_press_sig(GtkWidget *da, GdkEventKey *event,
claim = 1;
break;
+ case GDK_KEY_Home :
+ slide_item_to_top(e->slide, e->cursor_frame);
+ e->cursor_frame = &e->slide->items[e->slide->n_items-1];
+ gtksv_redraw(e);
+ claim = 1;
+ break;
+
+ case GDK_KEY_End :
+ slide_item_to_bottom(e->slide, e->cursor_frame);
+ e->cursor_frame = &e->slide->items[0];
+ gtksv_redraw(e);
+ claim = 1;
+ break;
+
}
if ( claim ) return TRUE;