diff options
-rw-r--r-- | data/menus.ui | 4 | ||||
-rw-r--r-- | src/narrative_window.c | 24 |
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 }, |