Allow to switch to fullscreen mode using LIRC.
authorLaurent Monin <geeqie@norz.org>
Tue, 5 Jan 2010 17:49:50 +0000 (17:49 +0000)
committerLaurent Monin <geeqie@norz.org>
Tue, 5 Jan 2010 17:49:50 +0000 (17:49 +0000)
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.

src/lirc.c

index a244108..e92a780 100644 (file)
@@ -132,6 +132,10 @@ static gboolean lirc_input_callback(GIOChannel *source, GIOCondition condition,
                                {
                                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;