Merge branch '1634_bs_del_fix'

* 1634_bs_del_fix:
  Ticket #1634 (BS, Del incorrect works in CP866 locale)
This commit is contained in:
Ilia Maslakov 2011-01-05 23:11:14 +00:00
commit 38b3740d10
3 changed files with 3 additions and 5 deletions

View File

@ -81,7 +81,7 @@ button_callback (Widget * w, widget_msg_t msg, int parm)
}
if (b->text.hotkey != NULL &&
g_ascii_tolower ((gchar) b->text.hotkey[0]) == g_ascii_tolower ((gchar) parm))
g_ascii_tolower ((gchar) b->text.hotkey[0]) == parm)
{
button_callback (w, WIDGET_KEY, ' ');
return MSG_HANDLED;

View File

@ -61,7 +61,7 @@ check_callback (Widget * w, widget_msg_t msg, int parm)
case WIDGET_HOTKEY:
if (c->text.hotkey != NULL)
{
if (g_ascii_tolower ((gchar) c->text.hotkey[0]) == g_ascii_tolower ((gchar) parm))
if (g_ascii_tolower ((gchar) c->text.hotkey[0]) == parm)
{
check_callback (w, WIDGET_KEY, ' '); /* make action */
return MSG_HANDLED;

View File

@ -61,15 +61,13 @@ radio_callback (Widget * w, widget_msg_t msg, int parm)
{
case WIDGET_HOTKEY:
{
int lp = g_ascii_tolower ((gchar) parm);
for (i = 0; i < r->count; i++)
{
if (r->texts[i].hotkey != NULL)
{
int c = g_ascii_tolower ((gchar) r->texts[i].hotkey[0]);
if (c != lp)
if (c != parm)
continue;
r->pos = i;