diff options
author | Thomas White <taw@physics.org> | 2017-12-02 23:54:29 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-12-02 23:54:29 +0100 |
commit | 7d50d6b24ca6221e290922538a84334ef7d4ae1a (patch) | |
tree | c07119f84b7532560d88b91b30752daa3a788bb9 | |
parent | 297814164335d154fa00397b72ca9e307d9e189e (diff) |
Disable up/down buttons at end of slideshow
-rw-r--r-- | src/narrative_window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c index e2e4b47..1007221 100644 --- a/src/narrative_window.c +++ b/src/narrative_window.c @@ -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; } |