Disable up/down buttons at end of slideshow
authorThomas White <taw@physics.org>
Sat, 2 Dec 2017 22:54:29 +0000 (23:54 +0100)
committerThomas White <taw@physics.org>
Sat, 2 Dec 2017 22:54:29 +0000 (23:54 +0100)
src/narrative_window.c

index e2e4b47..1007221 100644 (file)
@@ -558,6 +558,12 @@ static gboolean ss_destroy_sig(GtkWidget *da, NarrativeWindow *nw)
 {
        nw->show = NULL;
        sc_editor_set_para_highlight(nw->sceditor, 0);
+
+       gtk_widget_set_sensitive(GTK_WIDGET(nw->bfirst), FALSE);
+       gtk_widget_set_sensitive(GTK_WIDGET(nw->bprev), FALSE);
+       gtk_widget_set_sensitive(GTK_WIDGET(nw->bnext), FALSE);
+       gtk_widget_set_sensitive(GTK_WIDGET(nw->blast), FALSE);
+
        return FALSE;
 }