#include "editors.h"
#include "filedata.h"
#include "img-view.h"
+#include "pixbuf_util.h"
#include "preferences.h"
#include "slideshow.h"
#include "utilops.h"
}
if (active)
- menu_item_add(menu, editor->name, func, editor->key);
+ {
+ const gchar *stock_id = NULL;
+ if (editor->icon && register_theme_icon_as_stock(editor->key, editor->icon))
+ stock_id = editor->key;
+
+ menu_item_add_stock(menu, editor->name, stock_id, func, editor->key);
+ }
}
g_list_free(editors_list);
GError *error = NULL;
icon_theme = gtk_icon_theme_get_default();
+
+ if (gtk_icon_theme_has_icon(icon_theme, key)) return FALSE;
+
pixbuf = gtk_icon_theme_load_icon(icon_theme,
icon, /* icon name */
64, /* size */