From 02828602d6f2f1ec2a7e718dea8d4bedc9dc300d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 4 Jan 2018 22:35:55 +0100 Subject: Copy and paste entire frames --- src/slide_window.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/slide_window.c') diff --git a/src/slide_window.c b/src/slide_window.c index 21df394..ae89062 100644 --- a/src/slide_window.c +++ b/src/slide_window.c @@ -75,6 +75,23 @@ struct menu_pl }; +static void paste_sig(GSimpleAction *action, GVariant *parameter, + gpointer vp) +{ + SlideWindow *sw = vp; + sc_editor_paste(sw->sceditor); +} + + + +static void copy_frame_sig(GSimpleAction *action, GVariant *parameter, + gpointer vp) +{ + SlideWindow *sw = vp; + sc_editor_copy_selected_frame(sw->sceditor); +} + + static void delete_frame_sig(GSimpleAction *action, GVariant *parameter, gpointer vp) { @@ -195,6 +212,8 @@ static gboolean key_press_sig(GtkWidget *da, GdkEventKey *event, GActionEntry sw_entries[] = { + { "paste", paste_sig, NULL, NULL, NULL }, + { "copyframe", copy_frame_sig, NULL, NULL, NULL }, { "deleteframe", delete_frame_sig, NULL, NULL, NULL }, { "first", first_slide_sig, NULL, NULL, NULL }, { "prev", prev_slide_sig, NULL, NULL, NULL }, -- cgit v1.2.3