From 3ded4e93cb9657c4cdb0a86bce6d18b98f00d087 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 19 Jan 2018 21:54:53 +0100 Subject: Inhibit screensaver using native GTK method --- src/narrative_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/narrative_window.c') 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", -- cgit v1.2.3