diff src/layout_util.c @ 1341:63eb48237608

load icons for external editors
author nadvornik
date Sat, 28 Feb 2009 18:51:25 +0000
parents 588d96cda850
children 6fb0c1829b76
line wrap: on
line diff
--- a/src/layout_util.c	Sat Feb 28 18:01:16 2009 +0000
+++ b/src/layout_util.c	Sat Feb 28 18:51:25 2009 +0000
@@ -1651,6 +1651,11 @@
 		GList *path;
 		EditorDescription *editor = work->data;
 		GtkActionEntry entry = { editor->key, NULL, editor->name, editor->hotkey, NULL, G_CALLBACK(layout_menu_edit_cb) };
+		
+		if (register_theme_icon_as_stock(editor->key, editor->icon))
+			{
+			entry.stock_id = editor->key;
+			}
 		gtk_action_group_add_actions(lw->action_group_external, &entry, 1, lw);
 		
 		path = layout_actions_editor_menu_path(editor);