[gnome-photos] main-window: Always exit preview when pressing escape
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-window: Always exit preview when pressing escape
- Date: Sat, 14 Jul 2012 13:35:50 +0000 (UTC)
commit ada725036ddf1ccf61da870ebd0befb7462214a9
Author: Debarshi Ray <debarshir gnome org>
Date: Sat May 12 23:35:45 2012 +0200
main-window: Always exit preview when pressing escape
We already have other keybindings for fullscreen; don't mix the two.
Original patch from Cosimo Cecchi for gnome-documents.
src/photos-main-window.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index 852bebd..fbe504a 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -152,7 +152,6 @@ static gboolean
photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *event)
{
PhotosMainWindowPrivate *priv = self->priv;
- gboolean fullscreen;
if (event->keyval == GDK_KEY_f)
{
@@ -160,13 +159,6 @@ photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *even
return TRUE;
}
- fullscreen = photos_mode_controller_get_fullscreen (priv->controller);
- if (event->keyval == GDK_KEY_Escape && fullscreen)
- {
- photos_mode_controller_set_fullscreen (priv->controller, FALSE);
- return TRUE;
- }
-
if (event->keyval == GDK_KEY_Escape || event->keyval == GDK_KEY_Back)
{
photos_mode_controller_set_window_mode (priv->controller, PHOTOS_WINDOW_MODE_OVERVIEW);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]