Mercurial > geeqie.yaz
comparison src/layout_util.c @ 1705:b8491d75ea22
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 | ae0b1f854f22 |
children | bca2ab687abb |
comparison
equal
deleted
inserted
replaced
1704:566abe50976d | 1705:b8491d75ea22 |
---|---|
1642 work = editors_list; | 1642 work = editors_list; |
1643 while (work) | 1643 while (work) |
1644 { | 1644 { |
1645 GList *path; | 1645 GList *path; |
1646 EditorDescription *editor = work->data; | 1646 EditorDescription *editor = work->data; |
1647 GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, editor->comment, G_CALLBACK(layout_menu_edit_cb) }; | 1647 GtkActionEntry entry = { editor->key, |
1648 NULL, | |
1649 editor->name, | |
1650 editor->hotkey, | |
1651 editor->comment ? editor->comment : editor->name, | |
1652 G_CALLBACK(layout_menu_edit_cb) }; | |
1648 | 1653 |
1649 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) | 1654 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) |
1650 { | 1655 { |
1651 entry.stock_id = editor->key; | 1656 entry.stock_id = editor->key; |
1652 } | 1657 } |