Render unset shortcuts as "None" instead if "Deactivated"
This commit is contained in:
parent
7a6686ef71
commit
42ab4b3848
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue