aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-14 18:31:19 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-14 18:31:19 +0200
commit3b7e9356d56c7e632af931e161085e12bb1955d8 (patch)
treee94a072048a4a9773eb15b747ae8d13f83a25a79
parent71eed0c39d7e8713ba0605d61363acb643c6ead6 (diff)
Get rid of "delete slide"
...because you can just press delete
-rw-r--r--data/menus.ui4
-rw-r--r--src/narrative_window.c24
2 files changed, 0 insertions, 28 deletions
diff --git a/data/menus.ui b/data/menus.ui
index 54cbb17..ed7a0da 100644
--- a/data/menus.ui
+++ b/data/menus.ui
@@ -94,10 +94,6 @@
<attribute name='label' translatable='yes'>Copy Frame</attribute>
<attribute name='action'>win.copyframe</attribute>
</item>
- <item>
- <attribute name='label' translatable='yes'>Delete slide</attribute>
- <attribute name='action'>win.deleteslide</attribute>
- </item>
</section>
<section>
<item>
diff --git a/src/narrative_window.c b/src/narrative_window.c
index 820a1c9..2e557a6 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -217,29 +217,6 @@ static void save_sig(GSimpleAction *action, GVariant *parameter, gpointer vp)
}
-static void delete_slide_sig(GSimpleAction *action, GVariant *parameter,
- gpointer vp)
-{
- /* FIXME: GtkNarrativeView hooks */
-// SCBlock *ns;
-// NarrativeWindow *nw = vp;
-//
-// /* Get the SCBlock corresponding to the slide */
-// ns = sc_editor_get_cursor_bvp(nw->nv);
-// if ( ns == NULL ) {
-// fprintf(stderr, "Not a slide!\n");
-// return;
-// }
-//
-// sc_block_delete(&nw->dummy_top, ns);
-//
-// /* Full rerender */
-// sc_editor_set_scblock(nw->nv, nw->dummy_top);
-// nw->n->saved = 0;
-// update_titlebar(nw);
-}
-
-
static gint load_ss_response_sig(GtkWidget *d, gint response,
NarrativeWindow *nw)
{
@@ -676,7 +653,6 @@ GActionEntry nw_entries[] = {
{ "about", about_sig, NULL, NULL, NULL },
{ "save", save_sig, NULL, NULL, NULL },
{ "saveas", saveas_sig, NULL, NULL, NULL },
- { "deleteslide", delete_slide_sig, NULL, NULL, NULL },
{ "slide", add_slide_sig, NULL, NULL, NULL },
{ "loadstylesheet", load_ss_sig, NULL, NULL, NULL },
{ "stylesheet", edit_ss_sig, NULL, NULL, NULL },