aboutsummaryrefslogtreecommitdiff
path: root/src/slide_window.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-04 22:35:55 +0100
committerThomas White <taw@physics.org>2018-01-04 22:35:55 +0100
commit02828602d6f2f1ec2a7e718dea8d4bedc9dc300d (patch)
tree983ba5c7cdeaef546f28cec786ee3ac5e5848491 /src/slide_window.c
parent785c8853383711e6e0bcbdbbcc806907cab391dc (diff)
Copy and paste entire frames
Diffstat (limited to 'src/slide_window.c')
-rw-r--r--src/slide_window.c19
1 files changed, 19 insertions, 0 deletions
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 },