[cheese/gnome-2-32] Made escape key always hide the Effects pane if it is visible.



commit 6a6e0a6837084cdd41bf81f77a0a32285591be17
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date:   Fri Apr 9 03:09:25 2010 +0530

    Made escape key always hide the Effects pane if it is visible.
    
    If in full screen with effects pane open, first Esc will hide the effects pane while second one will revert the application back to normal mode

 src/cheese-window.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.c b/src/cheese-window.c
index 01bbb9f..48b87ad 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -688,6 +688,13 @@ cheese_window_escape_key_cb (CheeseWindow *cheese_window,
                              guint keyval, GdkModifierType modifier)
 {
   CheeseWindowPrivate *priv = CHEESE_WINDOW_GET_PRIVATE (cheese_window);
+
+  if (gtk_notebook_get_current_page (GTK_NOTEBOOK (priv->thewidget)) == EFFECTS_PAGE)
+  {
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->button_effects), FALSE);
+    return TRUE;
+  }
+
   if (priv->isFullscreen)
   {
     if (cheese_countdown_get_state (CHEESE_COUNTDOWN (priv->countdown_fullscreen)) == 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]