[gimp] app: Fix Alt+0 case when switching tabs
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix Alt+0 case when switching tabs
- Date: Wed, 6 Apr 2011 06:31:02 +0000 (UTC)
commit 5c55f8e8976b7b64df49a40716ecd2f4e0d94750
Author: Mukund Sivaraman <muks banu com>
Date: Wed Apr 6 11:58:58 2011 +0530
app: Fix Alt+0 case when switching tabs
app/display/gimpimagewindow.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 50f98de..953f92f 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -1269,9 +1269,14 @@ gimp_image_window_key_pressed (GtkWidget *widget,
if ((event->keyval >= GDK_KEY_0) &&
(event->keyval <= GDK_KEY_9))
{
- guint tab = (event->keyval - GDK_KEY_0) - 1;
+ guint tab;
gint n = gtk_notebook_get_n_pages (GTK_NOTEBOOK (widget));
+ if (event->keyval == GDK_KEY_0)
+ tab = 9;
+ else
+ tab = event->keyval - GDK_KEY_1;
+
if (tab < n)
{
gtk_notebook_set_current_page (GTK_NOTEBOOK (widget), tab);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]