[mythtv] [PATCH] Mythgallery: Disable screensaver
Neil Whelchel
koyama at firstlight.net
Tue Jan 25 13:30:05 EST 2005
Hello,
I use Myth with both plasma and projection monitors, and I am very
cautious about burn-in so I keep my screensaver set to 2 minutes or less.
This creates a major problem while I am using the slideshow feature of
Mythgallery.
To solve this I made a minor modification to Mythgallery to disable the
screensaver while the slideshow is active and re-enable it when the
slideshow is stopped.
-Neil Whelchel-
First Light Internet Services
760 366-0145
- We don't do Window$, that's what the janitor is for -
Bubble Memory, n.:
A derogatory term, usually referring to a person's
intelligence. See also "vacuum tube".
-------------- next part --------------
diff -ur mythgallery.dist/mythgallery/singleview.cpp mythgallery/mythgallery/singleview.cpp
--- mythgallery.dist/mythgallery/singleview.cpp Tue Dec 7 19:47:31 2004
+++ mythgallery/mythgallery/singleview.cpp Sat Jan 22 22:06:49 2005
@@ -119,6 +119,7 @@
if (slideShow) {
m_running = true;
m_timer->start(m_tmout, true);
+ gContext->DisableScreensaver();
}
}
@@ -235,6 +236,7 @@
bool wasRunning = m_running;
m_timer->stop();
m_running = false;
+ gContext->RestoreScreensaver();
m_effectRunning = false;
m_tmout = m_delay * 1000;
if (m_painter && m_painter->isActive())
@@ -399,6 +401,7 @@
if (m_running) {
m_timer->start(m_tmout, true);
+ gContext->DisableScreensaver();
}
if (handled) {
More information about the mythtv-dev
mailing list