entry: Don't show a num lock warning

Hardware lies about num lock, and we have no way of knowing.

https://bugzilla.gnome.org/show_bug.cgi?id=658875
This commit is contained in:
Matthias Clasen 2012-03-22 00:16:12 -04:00
parent f32d8be6a5
commit d718fd79b6

View File

@ -10242,12 +10242,7 @@ keymap_state_changed (GdkKeymap *keymap,
if (gtk_entry_get_display_mode (entry) != DISPLAY_NORMAL && priv->caps_lock_warning)
{
if (gdk_keymap_get_num_lock_state (keymap)
&& gdk_keymap_get_caps_lock_state (keymap))
text = _("Caps Lock and Num Lock are on");
else if (gdk_keymap_get_num_lock_state (keymap))
text = _("Num Lock is on");
else if (gdk_keymap_get_caps_lock_state (keymap))
if (gdk_keymap_get_caps_lock_state (keymap))
text = _("Caps Lock is on");
}