Mercurial > geeqie
comparison src/layout_util.c @ 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 | d9a53661cc73 |
children | 68b791050958 |
comparison
equal
deleted
inserted
replaced
1723:0e235874877e | 1724:ce0495a43352 |
---|---|
1814 work = editors_list; | 1814 work = editors_list; |
1815 while (work) | 1815 while (work) |
1816 { | 1816 { |
1817 GList *path; | 1817 GList *path; |
1818 EditorDescription *editor = work->data; | 1818 EditorDescription *editor = work->data; |
1819 GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, editor->comment, G_CALLBACK(layout_menu_edit_cb) }; | 1819 GtkActionEntry entry = { editor->key, |
1820 NULL, | |
1821 editor->name, | |
1822 editor->hotkey, | |
1823 editor->comment ? editor->comment : editor->name, | |
1824 G_CALLBACK(layout_menu_edit_cb) }; | |
1820 | 1825 |
1821 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) | 1826 if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon)) |
1822 { | 1827 { |
1823 entry.stock_id = editor->key; | 1828 entry.stock_id = editor->key; |
1824 } | 1829 } |