Tidy up function names in the gwin virtual keyboard

This commit is contained in:
inmarket 2016-08-24 17:48:09 +10:00
parent bc336ee15f
commit ea0419c29b

View File

@ -114,7 +114,7 @@ static int NumKeyRows(const char **keyset) {
return len; return len;
} }
static void _SendKeyboardEventToListener(GSourceListener *psl, GKeyboardObject *gk) { static void SendVirtualKeyEventToListener(GSourceListener *psl, GKeyboardObject *gk) {
GEventKeyboard *pe; GEventKeyboard *pe;
const GVSpecialKey *skey; const GVSpecialKey *skey;
unsigned i; unsigned i;
@ -157,18 +157,18 @@ static void _SendKeyboardEventToListener(GSourceListener *psl, GKeyboardObject *
geventSendEvent(psl); geventSendEvent(psl);
} }
static void _SendKeyboardEvent(GKeyboardObject *gk) { static void SendVirtualKeyEvent(GKeyboardObject *gk) {
GSourceListener *psl; GSourceListener *psl;
// Send to the "All Keyboards" source listeners // Send to the "All Keyboards" source listeners
psl = 0; psl = 0;
while ((psl = geventGetSourceListener(AllKeyboards, psl))) while ((psl = geventGetSourceListener(AllKeyboards, psl)))
_SendKeyboardEventToListener(psl, gk); SendVirtualKeyEventToListener(psl, gk);
// Send to the keyboard specific source listeners // Send to the keyboard specific source listeners
psl = 0; psl = 0;
while ((psl = geventGetSourceListener((GSourceHandle)gk, psl))) while ((psl = geventGetSourceListener((GSourceHandle)gk, psl)))
_SendKeyboardEventToListener(psl, gk); SendVirtualKeyEventToListener(psl, gk);
} }
@ -257,7 +257,7 @@ static void _SendKeyboardEvent(GKeyboardObject *gk) {
// Send the key if required // Send the key if required
if (skey->sendkey && skey->sendkey[0]) if (skey->sendkey && skey->sendkey[0])
_SendKeyboardEvent(gk); SendVirtualKeyEvent(gk);
// Update the display // Update the display
_gwinUpdate((GHandle)gw); _gwinUpdate((GHandle)gw);
@ -274,7 +274,7 @@ static void _SendKeyboardEvent(GKeyboardObject *gk) {
} }
// Send the key // Send the key
_SendKeyboardEvent(gk); SendVirtualKeyEvent(gk);
// Update the display // Update the display
_gwinUpdate((GHandle)gw); _gwinUpdate((GHandle)gw);