aboutsummaryrefslogtreecommitdiff
path: root/src/narrative_window.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-19 21:54:53 +0100
committerThomas White <taw@physics.org>2018-01-19 22:30:31 +0100
commit3ded4e93cb9657c4cdb0a86bce6d18b98f00d087 (patch)
tree2e43517e2a0f73c95597626a49215761cc3b726f /src/narrative_window.c
parent62bc4fb111b38e8d3969451462d3c5e08b086c35 (diff)
Inhibit screensaver using native GTK method
Diffstat (limited to 'src/narrative_window.c')
-rw-r--r--src/narrative_window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/narrative_window.c b/src/narrative_window.c
index fa58c08..6381755 100644
--- a/src/narrative_window.c
+++ b/src/narrative_window.c
@@ -592,7 +592,7 @@ static void start_slideshow_here_sig(GSimpleAction *action, GVariant *parameter,
bvp = sc_editor_get_cursor_bvp(nw->sceditor);
if ( bvp == NULL ) return;
- nw->show = sc_slideshow_new(nw->p);
+ nw->show = sc_slideshow_new(nw->p, GTK_APPLICATION(nw->app));
if ( nw->show == NULL ) return;
g_signal_connect(G_OBJECT(nw->show), "key-press-event",
@@ -613,7 +613,7 @@ static void start_slideshow_noslides_sig(GSimpleAction *action, GVariant *parame
if ( num_slides(nw->p) == 0 ) return;
- nw->show = sc_slideshow_new(nw->p);
+ nw->show = sc_slideshow_new(nw->p, GTK_APPLICATION(nw->app));
if ( nw->show == NULL ) return;
g_signal_connect(G_OBJECT(nw->show), "key-press-event",
@@ -634,7 +634,7 @@ static void start_slideshow_sig(GSimpleAction *action, GVariant *parameter,
if ( num_slides(nw->p) == 0 ) return;
- nw->show = sc_slideshow_new(nw->p);
+ nw->show = sc_slideshow_new(nw->p, GTK_APPLICATION(nw->app));
if ( nw->show == NULL ) return;
g_signal_connect(G_OBJECT(nw->show), "key-press-event",