# HG changeset patch # User nadvornik # Date 1251238906 0 # Node ID ce0495a433523e9bb71de44d321d1bbfb42177e7 # Parent 0e235874877eed9485b16239f195b26470e6b4f7 use name as a tooltip of external editor if comment is missing the hotkey dialog ignores entries with empty tooltip diff -r 0e235874877e -r ce0495a43352 src/layout_util.c --- 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)) {