[gimp/gimp-2-8] Bug 676927 - Shortcuts with backspace not working if image is focused
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 676927 - Shortcuts with backspace not working if image is focused
- Date: Fri, 15 Feb 2013 00:13:28 +0000 (UTC)
commit 1de589a791dd031332d3067b117056d9d1ae6610
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.
(cherry picked from commit 169d32532a35e8b137d9619caacf1c6255eecc98)
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 95d7906..7231cf7 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -989,6 +989,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))
@@ -1005,8 +1007,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]