gnome-keybinding-properties(control-center-2.14.2) cannot select <print> key
- From: Nishio Futoshi <fut_nis yahoo co jp>
- To: gnome-list gnome org
- Subject: gnome-keybinding-properties(control-center-2.14.2) cannot select <print> key
- Date: Tue, 20 Jun 2006 00:13:15 +0900
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 yahoo co jp>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]