]> spindle.queued.net Git - midori/commitdiff
Render unset shortcuts as "None" instead if "Deactivated"
authorChristian Dywan <christian@twotoasts.de>
Sat, 20 Jun 2009 18:36:16 +0000 (20:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 20 Jun 2009 18:36:16 +0000 (20:36 +0200)
extensions/shortcuts.c

index 6731fdcc2a986eea0faa45cbf6ede263c0d59581..5c34280117a02c0250bfb4db9e44d4d4914f34c2 100644 (file)
@@ -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