Render unset shortcuts as "None" instead if "Deactivated"

This commit is contained in:
Christian Dywan 2009-06-20 20:36:16 +02:00
parent 7a6686ef71
commit 42ab4b3848

View file

@ -123,10 +123,15 @@ shortcuts_preferences_render_accel (GtkTreeViewColumn* column,
if (accel_path)
{
if (gtk_accel_map_lookup_entry (accel_path, &key))
{
if (key.accel_key)
g_object_set (renderer,
"accel-key", key.accel_key,
"accel-mods", key.accel_mods,
NULL);
else
g_object_set (renderer, "text", _("None"), NULL);
}
g_object_set (renderer, "sensitive", TRUE, "editable", TRUE, NULL);
}
else