gnome-keybinding-properties(control-center-2.14.2) cannot select <print> key

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

 



I want to Print key to get screenshot, but I cannot.  So, I checked source code,
and I found some wrong ranges for printable keys. GDK_kana_switch's code 
is 0xFF7E.  Please change some ranges.

# Maybe, this problem is due to using ja_JP.UTF-8 locale.

I changed them, but I cannot get screenshot, umm.
I don't know how to hack metacity.

Thanks

--- control-center-2.14.2/capplets/keybindings/gnome-keybinding-properties.c.ol2006-06-19 19:37:29.000000000 +0900
+++ control-center-2.14.2/capplets/keybindings/gnome-keybinding-properties.c   2006-06-19 19:38:44.000000000 +0900
@@ -656,11 +656,13 @@
     {
       if ((tmp_key.keyval >= GDK_a && tmp_key.keyval <= GDK_z)
           || (tmp_key.keyval >= GDK_A && tmp_key.keyval <= GDK_Z)
-          || (tmp_key.keyval >= GDK_kana_fullstop && tmp_key.keyval <= GDK_kana_switch)
-          || (tmp_key.keyval >= GDK_Arabic_comma && tmp_key.keyval <= GDK_Arabic_switch)
-          || (tmp_key.keyval >= GDK_Serbian_dje && tmp_key.keyval <= GDK_Cyrillic_HARDSIGN)
-          || (tmp_key.keyval >= GDK_Greek_ALPHAaccent && tmp_key.keyval <= GDK_Greek_switch)
-          || (tmp_key.keyval >= GDK_hebrew_doublelowline && tmp_key.keyval <= GDK_Hebrew_switch)
+          || (tmp_key.keyval >= GDK_kana_fullstop && tmp_key.keyval <= GDK_kana_tu)
+          || (tmp_key.keyval >= GDK_kana_A && tmp_key.keyval <= GDK_kana_N)
+          || (tmp_key.keyval >= GDK_Arabic_comma && tmp_key.keyval <= GDK_Arabic_sukun)
+          || (tmp_key.keyval >= GDK_Serbian_dje && tmp_key.keyval <= GDK_Serbian_dze)
+          || (tmp_key.keyval >= GDK_Serbian_DJE && tmp_key.keyval <= GDK_Cyrillic_HARDSIGN)
+          || (tmp_key.keyval >= GDK_Greek_ALPHAaccent && tmp_key.keyval <= GDK_Greek_omega)
+          || (tmp_key.keyval >= GDK_hebrew_doublelowline && tmp_key.keyval <= GDK_hebrew_taf)
           || (tmp_key.keyval >= GDK_Thai_kokai && tmp_key.keyval <= GDK_Thai_lekkao)
           || (tmp_key.keyval >= GDK_Hangul && tmp_key.keyval <= GDK_Hangul_J_YeorinHieuh)) {
         GtkWidget *dialog;


-- 
Nishio Futoshi <fut_nis@xxxxxxxxxxx>
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux