[gtk: 1/2] gdk: Handle small final sigma in gdk_keyval_convert_case



commit f15a34c7e44242d05dbffb469e9167f187ff64f0
Author: Alex Henrie <alexhenrie24 gmail com>
Date:   Fri Jan 24 17:10:07 2020 -0700

    gdk: Handle small final sigma in gdk_keyval_convert_case

 gdk/gdkkeys.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index 50d50d2138..3425c3b3f1 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -887,8 +887,9 @@ gdk_keyval_convert_case (guint symbol,
         xupper -= (GDK_KEY_Greek_alphaaccent - GDK_KEY_Greek_ALPHAaccent);
       else if (symbol >= GDK_KEY_Greek_ALPHA && symbol <= GDK_KEY_Greek_OMEGA)
         xlower += (GDK_KEY_Greek_alpha - GDK_KEY_Greek_ALPHA);
-      else if (symbol >= GDK_KEY_Greek_alpha && symbol <= GDK_KEY_Greek_omega &&
-               symbol != GDK_KEY_Greek_finalsmallsigma)
+      else if (symbol == GDK_KEY_Greek_finalsmallsigma)
+        xupper = GDK_KEY_Greek_SIGMA;
+      else if (symbol >= GDK_KEY_Greek_alpha && symbol <= GDK_KEY_Greek_omega)
         xupper -= (GDK_KEY_Greek_alpha - GDK_KEY_Greek_ALPHA);
       break;
 


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