[gimp/soc-2011-seamless-clone2] Bug 676927 - Shortcuts with backspace not working if image is focused



commit c51e0da56cb090d03148464137e45d2f7e919071
Author: Michael Natterer <mitch gimp org>
Date:   Fri Feb 15 01:00:13 2013 +0100

    Bug 676927 - Shortcuts with backspace not working if image is focused
    
    Move local variable out of the switch() block, it was never initialized.

 app/display/gimpdisplayshell-tool-events.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index fbec149..d639e8a 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -1003,6 +1003,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
           }
         else
           {
+            gboolean arrow_key = FALSE;
+
             tool_manager_focus_display_active (gimp, display);
 
             if (gimp_tool_control_get_wants_all_key_events (active_tool->control))
@@ -1019,8 +1021,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget        *canvas,
 
             switch (kevent->keyval)
               {
-                gboolean arrow_key = FALSE;
-
               case GDK_KEY_Left:
               case GDK_KEY_Right:
               case GDK_KEY_Up:


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