From 6af3f092621bf59414a5dd99a8185e8430d60fc1 Mon Sep 17 00:00:00 2001 From: John Ellis Date: Mon, 23 Oct 2006 09:40:37 +0000 Subject: [PATCH] Mon Oct 23 05:34:29 2006 John Ellis * img-view.c, layout_image.c, layout_util.c, pan-view.c: Make F11 also toggle fullscreen. --- ChangeLog | 5 +++++ TODO | 1 + src/img-view.c | 1 + src/layout_image.c | 1 + src/layout_util.c | 1 + src/pan-view.c | 1 + 6 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index e89887ef..99b44520 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 23 05:34:29 2006 John Ellis + + * img-view.c, layout_image.c, layout_util.c, pan-view.c: Make F11 also + toggle fullscreen. + Fri Oct 20 09:20:10 2006 John Ellis * collect-table.c, collect.c, dupe.c, pan-view.c, search.c, diff --git a/TODO b/TODO index 47857b51..b7a38fd6 100644 --- a/TODO +++ b/TODO @@ -91,6 +91,7 @@ Major: > Holding down shift will now scroll more when panning with mouse. > add --geometry command line option > add [shift]+G grayscale alteration + > add F11 for full screen toggle > add blurb about moving images between collections with shift+drag diff --git a/src/img-view.c b/src/img-view.c index 1b5a3fb6..1c0d13d2 100644 --- a/src/img-view.c +++ b/src/img-view.c @@ -533,6 +533,7 @@ static gint view_window_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpoi break; case 'F': case 'f': case 'V': case 'v': + case GDK_F11: view_fullscreen_toggle(vw, FALSE); break; case 'I': case 'i': diff --git a/src/layout_image.c b/src/layout_image.c index efe8d831..b6945238 100644 --- a/src/layout_image.c +++ b/src/layout_image.c @@ -312,6 +312,7 @@ static gint layout_image_full_screen_key_press_cb(GtkWidget *widget, GdkEventKey break; case 'F': case 'f': case 'V': case 'v': + case GDK_F11: layout_image_full_screen_stop(lw); break; case GDK_Menu: diff --git a/src/layout_util.c b/src/layout_util.c index 41fbd88f..f3f49e45 100644 --- a/src/layout_util.c +++ b/src/layout_util.c @@ -219,6 +219,7 @@ static gint layout_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer layout_image_slideshow_pause_toggle(lw); break; case 'V': case 'v': + case GDK_F11: if (!(event->state & GDK_MOD1_MASK)) layout_image_full_screen_toggle(lw); break; default: diff --git a/src/pan-view.c b/src/pan-view.c index 17ae224f..4d658e8e 100644 --- a/src/pan-view.c +++ b/src/pan-view.c @@ -3564,6 +3564,7 @@ static gint pan_window_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpoin break; case 'F': case 'f': case 'V': case 'v': + case GDK_F11: pan_fullscreen_toggle(pw, FALSE); break; case 'I': case 'i': -- 2.20.1