changeset 1783:b0352818977b

Allow to switch to fullscreen mode using LIRC. Imagine the following situation (which happened to me several times) : you want to see photos from your bed or your sofa so you launch geeqie and go to the right directory, then you take your remote control and sit comfortably far from your keyboard and mouse. And when you want to begin to watch photos, you realize you forgot to enable full screen! You have to stand up and to go until your computer and come back, whereas you could have done it with your remote control. Patch by Bernard Massot.
author zas_
date Tue, 05 Jan 2010 17:49:50 +0000
parents 261c16ca7da6
children 473964976403
files src/lirc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lirc.c	Sat Jan 02 12:38:55 2010 +0000
+++ b/src/lirc.c	Tue Jan 05 17:49:50 2010 +0000
@@ -132,6 +132,10 @@
 				{
 				layout_image_zoom_set(lw, 0.0, FALSE);
 				}
+			else if (g_ascii_strcasecmp("FULL_SCREEN", cmd) == 0)
+				{
+				layout_image_full_screen_toggle(lw);
+				}
 			else if (g_ascii_strncasecmp("SET_ZOOM", cmd, 8) == 0)
 				{
 				ptr = cmd + 8;