use name as a tooltip of external editor if comment is missing
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 25 Aug 2009 22:21:46 +0000 (22:21 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 25 Aug 2009 22:21:46 +0000 (22:21 +0000)
the hotkey dialog ignores entries with empty tooltip

src/layout_util.c

index 4f6e4d2..d30f9a6 100644 (file)
@@ -1816,7 +1816,12 @@ static void layout_actions_setup_editors(LayoutWindow *lw)
                {
                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))
                        {