comparison src/lirc.c @ 1743:d8e9d0cc640e

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 24ef7b610ed6
children
comparison
equal deleted inserted replaced
1742:368a7e7cc695 1743:d8e9d0cc640e
130 } 130 }
131 else if (g_ascii_strcasecmp("ZOOM_MAX", cmd) == 0) 131 else if (g_ascii_strcasecmp("ZOOM_MAX", cmd) == 0)
132 { 132 {
133 layout_image_zoom_set(lw, 0.0, FALSE); 133 layout_image_zoom_set(lw, 0.0, FALSE);
134 } 134 }
135 else if (g_ascii_strcasecmp("FULL_SCREEN", cmd) == 0)
136 {
137 layout_image_full_screen_toggle(lw);
138 }
135 else if (g_ascii_strncasecmp("SET_ZOOM", cmd, 8) == 0) 139 else if (g_ascii_strncasecmp("SET_ZOOM", cmd, 8) == 0)
136 { 140 {
137 ptr = cmd + 8; 141 ptr = cmd + 8;
138 while (g_ascii_isspace(*ptr)) ptr++; 142 while (g_ascii_isspace(*ptr)) ptr++;
139 i_parm = atoi(ptr); 143 i_parm = atoi(ptr);