diff options
author | Thomas White <taw@physics.org> | 2018-01-19 21:54:53 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-01-19 22:30:31 +0100 |
commit | 3ded4e93cb9657c4cdb0a86bce6d18b98f00d087 (patch) | |
tree | 2e43517e2a0f73c95597626a49215761cc3b726f /src/testcard.c | |
parent | 62bc4fb111b38e8d3969451462d3c5e08b086c35 (diff) |
Inhibit screensaver using native GTK method
Diffstat (limited to 'src/testcard.c')
-rw-r--r-- | src/testcard.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/testcard.c b/src/testcard.c index 74fa153..45fc348 100644 --- a/src/testcard.c +++ b/src/testcard.c @@ -31,7 +31,6 @@ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> -#include "inhibit_screensaver.h" #include "presentation.h" @@ -42,7 +41,6 @@ struct testcard int slide_width; int slide_height; GtkWidget *drawingarea; - struct inhibit_sys *inhibit; struct presentation *p; }; @@ -245,10 +243,6 @@ void show_testcard(struct presentation *p) tc->p = p; - if ( tc->inhibit == NULL ) { - tc->inhibit = inhibit_prepare(); - } - tc->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); tc->drawingarea = gtk_drawing_area_new(); @@ -288,6 +282,5 @@ void show_testcard(struct presentation *p) gtk_widget_show_all(GTK_WIDGET(tc->window)); - if ( tc->inhibit != NULL ) do_inhibit(tc->inhibit, 1); } |