diff --git a/ChangeLog b/ChangeLog index 81e195253..c4b202f4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-06-08 Dave Camp + + * src/file-manager/fm-directory-view.c: + (add_bonobo_menu_ui_and_verbs): Allow the context menu to supply + an icon. + 2003-06-08 Dave Camp * src/file-manager/fm-properties-window.c: diff --git a/docs/nautilus-context-menus.txt b/docs/nautilus-context-menus.txt index 91329e4e8..01b694f0f 100644 --- a/docs/nautilus-context-menus.txt +++ b/docs/nautilus-context-menus.txt @@ -27,6 +27,13 @@ Ok, this is how it works: + To specify an icon to display next to the context menu, you can + specify a nautilusverbicon property: + + + + The icon will be taken from the current icon theme. + If the component has "nauitlus:can_handle_multiple_files" set to false, the item will still be displayed when multiple files are selected, but it will be insensitive. When the user clicks the menu item, nautilus diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 144d7394c..6591dbe95 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -3698,8 +3698,40 @@ add_bonobo_menu_ui_and_verbs (FMDirectoryView *view, GList *files, /* build the UI */ for (l = verb_names; l; l = l->next) { char *verb = l->data; + char *icon_attribute_name; + const char *icon_name; + char *pixbuf_data; + GdkPixbuf *pixbuf; - g_string_append_printf (ui_xml, "", verb, verb); + g_string_append_printf (ui_xml, + ""); } ui_xml = g_string_append (ui_xml, "");