summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-23 01:34:20 +0000
committerDavid Robillard <d@drobilla.net>2007-10-23 01:34:20 +0000
commit203d851e116d4590897eceab582f735fb30c4e26 (patch)
tree6401fba1a9aadba23fe4533f0411c5368cca334a /src/libs/gui/PatchCanvas.cpp
parentb03655afdbcc901755492eae07bef92d9c65be8c (diff)
downloadingen-203d851e116d4590897eceab582f735fb30c4e26.tar.gz
ingen-203d851e116d4590897eceab582f735fb30c4e26.tar.bz2
ingen-203d851e116d4590897eceab582f735fb30c4e26.zip
Plugin icon cache and plugin icons in the plugin dialog, from larsl.
git-svn-id: http://svn.drobilla.net/lad/ingen@900 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchCanvas.cpp')
-rw-r--r--src/libs/gui/PatchCanvas.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp
index d67f301c..0b136014 100644
--- a/src/libs/gui/PatchCanvas.cpp
+++ b/src/libs/gui/PatchCanvas.cpp
@@ -159,12 +159,7 @@ PatchCanvas::build_plugin_class_menu(Gtk::Menu* menu,
SLV2Plugin p = i->second->slv2_plugin();
if (p && slv2_plugin_get_class(p) == plugin_class) {
- Glib::RefPtr<Gdk::Pixbuf> icon;
- string icon_path = PluginModel::get_lv2_icon_path(p);
-
- if (icon_path != "")
- icon = Gdk::Pixbuf::create_from_file(icon_path, 20, 20);
-
+ Glib::RefPtr<Gdk::Pixbuf> icon = App::instance().icon_from_path(PluginModel::get_lv2_icon_path(p));
if (icon) {
Gtk::Image* image = new Gtk::Image(icon);
menu->items().push_back(Gtk::Menu_Helpers::ImageMenuElem(i->second->name(),