From 42ab4b3848b6fdce9cc05849ffadbc39f3a67acd Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 20 Jun 2009 20:36:16 +0200 Subject: [PATCH] Render unset shortcuts as "None" instead if "Deactivated" --- extensions/shortcuts.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/extensions/shortcuts.c b/extensions/shortcuts.c index 6731fdcc..5c342801 100644 --- a/extensions/shortcuts.c +++ b/extensions/shortcuts.c @@ -123,10 +123,15 @@ shortcuts_preferences_render_accel (GtkTreeViewColumn* column, if (accel_path) { if (gtk_accel_map_lookup_entry (accel_path, &key)) - g_object_set (renderer, - "accel-key", key.accel_key, - "accel-mods", key.accel_mods, - NULL); + { + 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 -- 2.39.5