[libgnomekbd/gnome-2-32] Replace GDK_keyname with GDK_KEY_keyname
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd/gnome-2-32] Replace GDK_keyname with GDK_KEY_keyname
- Date: Fri, 1 Oct 2010 22:02:06 +0000 (UTC)
commit f05774eace6d681b0fc59b2abee650b847fff8a1
Author: William Jon McCann <jmccann redhat com>
Date: Wed Sep 29 20:46:20 2010 -0400
Replace GDK_keyname with GDK_KEY_keyname
https://bugzilla.gnome.org/show_bug.cgi?id=630974
libgnomekbd/gkbd-indicator.c | 12 +++---
libgnomekbd/gkbd-keyboard-drawing.c | 78 +++++++++++++++++-----------------
2 files changed, 45 insertions(+), 45 deletions(-)
---
diff --git a/libgnomekbd/gkbd-indicator.c b/libgnomekbd/gkbd-indicator.c
index 4fd42d8..89ed92a 100644
--- a/libgnomekbd/gkbd-indicator.c
+++ b/libgnomekbd/gkbd-indicator.c
@@ -233,12 +233,12 @@ gkbd_indicator_key_pressed (GtkWidget *
GkbdIndicator * gki)
{
switch (event->keyval) {
- case GDK_KP_Enter:
- case GDK_ISO_Enter:
- case GDK_3270_Enter:
- case GDK_Return:
- case GDK_space:
- case GDK_KP_Space:
+ case GDK_KEY_KP_Enter:
+ case GDK_KEY_ISO_Enter:
+ case GDK_KEY_3270_Enter:
+ case GDK_KEY_Return:
+ case GDK_KEY_space:
+ case GDK_KEY_KP_Space:
gkbd_desktop_config_lock_next_group (&globals.cfg);
return TRUE;
default:
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index e31dc94..3de2125 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -620,147 +620,147 @@ set_key_label_in_layout (GkbdKeyboardDrawingRenderContext * context,
PangoLayout *layout = context->layout;
switch (keyval) {
- case GDK_Scroll_Lock:
+ case GDK_KEY_Scroll_Lock:
pango_layout_set_text (layout, "Scroll\nLock", -1);
break;
- case GDK_space:
+ case GDK_KEY_space:
pango_layout_set_text (layout, "", -1);
break;
- case GDK_Sys_Req:
+ case GDK_KEY_Sys_Req:
pango_layout_set_text (layout, "Sys Rq", -1);
break;
- case GDK_Page_Up:
+ case GDK_KEY_Page_Up:
pango_layout_set_text (layout, "Page\nUp", -1);
break;
- case GDK_Page_Down:
+ case GDK_KEY_Page_Down:
pango_layout_set_text (layout, "Page\nDown", -1);
break;
- case GDK_Num_Lock:
+ case GDK_KEY_Num_Lock:
pango_layout_set_text (layout, "Num\nLock", -1);
break;
- case GDK_KP_Page_Up:
+ case GDK_KEY_KP_Page_Up:
pango_layout_set_text (layout, "Pg Up", -1);
break;
- case GDK_KP_Page_Down:
+ case GDK_KEY_KP_Page_Down:
pango_layout_set_text (layout, "Pg Dn", -1);
break;
- case GDK_KP_Home:
+ case GDK_KEY_KP_Home:
pango_layout_set_text (layout, "Home", -1);
break;
- case GDK_KP_Left:
+ case GDK_KEY_KP_Left:
pango_layout_set_text (layout, "Left", -1);
break;
- case GDK_KP_End:
+ case GDK_KEY_KP_End:
pango_layout_set_text (layout, "End", -1);
break;
- case GDK_KP_Up:
+ case GDK_KEY_KP_Up:
pango_layout_set_text (layout, "Up", -1);
break;
- case GDK_KP_Begin:
+ case GDK_KEY_KP_Begin:
pango_layout_set_text (layout, "Begin", -1);
break;
- case GDK_KP_Right:
+ case GDK_KEY_KP_Right:
pango_layout_set_text (layout, "Right", -1);
break;
- case GDK_KP_Enter:
+ case GDK_KEY_KP_Enter:
pango_layout_set_text (layout, "Enter", -1);
break;
- case GDK_KP_Down:
+ case GDK_KEY_KP_Down:
pango_layout_set_text (layout, "Down", -1);
break;
- case GDK_KP_Insert:
+ case GDK_KEY_KP_Insert:
pango_layout_set_text (layout, "Ins", -1);
break;
- case GDK_KP_Delete:
+ case GDK_KEY_KP_Delete:
pango_layout_set_text (layout, "Del", -1);
break;
- case GDK_dead_grave:
+ case GDK_KEY_dead_grave:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_acute:
+ case GDK_KEY_dead_acute:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_circumflex:
+ case GDK_KEY_dead_circumflex:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_tilde:
+ case GDK_KEY_dead_tilde:
pango_layout_set_text (layout, "~", -1);
break;
- case GDK_dead_macron:
+ case GDK_KEY_dead_macron:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_breve:
+ case GDK_KEY_dead_breve:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_abovedot:
+ case GDK_KEY_dead_abovedot:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_diaeresis:
+ case GDK_KEY_dead_diaeresis:
pango_layout_set_text (layout, "¨", -1);
break;
- case GDK_dead_abovering:
+ case GDK_KEY_dead_abovering:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_doubleacute:
+ case GDK_KEY_dead_doubleacute:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_caron:
+ case GDK_KEY_dead_caron:
pango_layout_set_text (layout, "Ë?", -1);
break;
- case GDK_dead_cedilla:
+ case GDK_KEY_dead_cedilla:
pango_layout_set_text (layout, "¸", -1);
break;
- case GDK_dead_ogonek:
+ case GDK_KEY_dead_ogonek:
pango_layout_set_text (layout, "Ë?", -1);
break;
- /* case GDK_dead_iota:
- * case GDK_dead_voiced_sound:
- * case GDK_dead_semivoiced_sound: */
+ /* case GDK_KEY_dead_iota:
+ * case GDK_KEY_dead_voiced_sound:
+ * case GDK_KEY_dead_semivoiced_sound: */
- case GDK_dead_belowdot:
+ case GDK_KEY_dead_belowdot:
pango_layout_set_text (layout, " ̣", -1);
break;
- case GDK_horizconnector:
+ case GDK_KEY_horizconnector:
pango_layout_set_text (layout, "horiz\nconn", -1);
break;
- case GDK_Mode_switch:
+ case GDK_KEY_Mode_switch:
pango_layout_set_text (layout, "AltGr", -1);
break;
- case GDK_Multi_key:
+ case GDK_KEY_Multi_key:
pango_layout_set_text (layout, "Compose", -1);
break;
@@ -2037,7 +2037,7 @@ gkbd_keyboard_drawing_init (GkbdKeyboardDrawing * drawing)
XkbGetNames (drawing->display, XkbAllNamesMask, drawing->xkb);
drawing->l3mod = XkbKeysymToModifiers (drawing->display,
- GDK_ISO_Level3_Shift);
+ GDK_KEY_ISO_Level3_Shift);
drawing->xkbOnDisplay = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]