changeset 1724:ce0495a43352

use name as a tooltip of external editor if comment is missing the hotkey dialog ignores entries with empty tooltip
author nadvornik
date Tue, 25 Aug 2009 22:21:46 +0000
parents 0e235874877e
children ea4effc8398c
files src/layout_util.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_util.c	Tue Aug 25 21:30:50 2009 +0000
+++ b/src/layout_util.c	Tue Aug 25 22:21:46 2009 +0000
@@ -1816,7 +1816,12 @@
 		{
 		GList *path;
 		EditorDescription *editor = work->data;
-		GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, editor->comment, G_CALLBACK(layout_menu_edit_cb) };
+		GtkActionEntry entry = { editor->key, 
+		                         NULL,
+		                         editor->name,
+		                         editor->hotkey, 
+		                         editor->comment ? editor->comment : editor->name,
+		                         G_CALLBACK(layout_menu_edit_cb) };
 		
 		if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon))
 			{