aboutsummaryrefslogtreecommitdiff
path: root/src/slide_window.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2018-01-05 10:28:56 +0100
committerThomas White <taw@bitwiz.org.uk>2018-01-05 10:28:56 +0100
commitd11a7e62862a448fb7451c0345a11cac463ae780 (patch)
tree3c99f653d234e2857877eef84032ea2559f96ba7 /src/slide_window.c
parent02828602d6f2f1ec2a7e718dea8d4bedc9dc300d (diff)
GUI slide title adding
Diffstat (limited to 'src/slide_window.c')
-rw-r--r--src/slide_window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slide_window.c b/src/slide_window.c
index ae89062..283e96e 100644
--- a/src/slide_window.c
+++ b/src/slide_window.c
@@ -75,6 +75,14 @@ struct menu_pl
};
+static void insert_slidetitle_sig(GSimpleAction *action, GVariant *parameter,
+ gpointer vp)
+{
+ SlideWindow *sw = vp;
+ sc_editor_add_storycode(sw->sceditor, "\\slidetitle{Slide title}");
+}
+
+
static void paste_sig(GSimpleAction *action, GVariant *parameter,
gpointer vp)
{
@@ -219,6 +227,7 @@ GActionEntry sw_entries[] = {
{ "prev", prev_slide_sig, NULL, NULL, NULL },
{ "next", next_slide_sig, NULL, NULL, NULL },
{ "last", last_slide_sig, NULL, NULL, NULL },
+ { "slidetitle", insert_slidetitle_sig, NULL, NULL, NULL },
};