Web lists-archives.com

Re: GDK_KP_Decimal (on Windows)




On 01.05.2015 14:35, Matthias Clasen wrote:
> On Thu, Apr 30, 2015 at 2:37 AM, John Emmas wrote:
>> Thanks.  Here's a patch produced by one of my colleagues:-
>>
>> --- a/gdk/win32/gdkkeys-win32.c 2015-04-29 16:33:41.545406159 +0200
>> +++ b/gdk/win32/gdkkeys-win32.c 2015-04-29 16:35:16.821576820 +0200
>> @@ -145,6 +145,8 @@
>>        *ksymp = GDK_Meta_R; break;
>>      case VK_APPS:
>>        *ksymp = GDK_Menu; break;
>> +    case VK_DECIMAL:
>> +      *ksymp = GDK_KP_Decimal; break;
>>      case VK_MULTIPLY:
>>        *ksymp = GDK_KP_Multiply; break;
>>      case VK_ADD:
>>
> 
> Thanks, applied.

Apply *this*.

-- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
From 79c863c59574eea24f9bcc5f6353c3244b3d9c17 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?=
 =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= <lrn1986@xxxxxxxxx>
Date: Mon, 4 May 2015 15:32:22 +0000
Subject: [PATCH] Use GDK_KEY_KP_Decimal instead of GDK_KP_Decimal

Fixes the FTBFS introduced in 578043f97e891e423648c9f70ddf1d185f4615c4
---
 gdk/win32/gdkkeys-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c
index f8c0283..920081c 100644
--- a/gdk/win32/gdkkeys-win32.c
+++ b/gdk/win32/gdkkeys-win32.c
@@ -165,7 +165,7 @@ handle_special (guint  vk,
     case VK_APPS:
       *ksymp = GDK_KEY_Menu; break;
     case VK_DECIMAL:
-      *ksymp = GDK_KP_Decimal; break;
+      *ksymp = GDK_KEY_KP_Decimal; break;
     case VK_MULTIPLY:
       *ksymp = GDK_KEY_KP_Multiply; break;
     case VK_ADD:
-- 
2.3.4

Attachment: 0x922360B0.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-devel-list