Browse Source

Set canvas icons for a few known plugins

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 6 years ago
parent
commit
3f1c8d92f2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 18 additions and 2 deletions
  1. +5
    -0
      source/backend/plugin/CarlaPluginJack.cpp
  2. +13
    -2
      source/backend/plugin/CarlaPluginNative.cpp

+ 5
- 0
source/backend/plugin/CarlaPluginJack.cpp View File

@@ -1522,6 +1522,11 @@ public:
if (label[6] == '\0')
setupUniqueProjectID();

// ---------------------------------------------------------------
// set icon

pData->iconName = carla_strdup_safe("application");

// ---------------------------------------------------------------
// set info



+ 13
- 2
source/backend/plugin/CarlaPluginNative.cpp View File

@@ -2524,13 +2524,24 @@ public:
// ---------------------------------------------------------------
// set icon

if (std::strcmp(fDescriptor->label, "audiofile") == 0)
/**/ if (std::strcmp(fDescriptor->label, "audiofile") == 0)
pData->iconName = carla_strdup_safe("file");
else if (std::strcmp(fDescriptor->label, "midifile") == 0)
pData->iconName = carla_strdup_safe("file");

else if (std::strcmp(fDescriptor->label, "3bandeq") == 0)
pData->iconName = carla_strdup_safe("distrho");
else if (std::strcmp(fDescriptor->label, "3bandsplitter") == 0)
pData->iconName = carla_strdup_safe("distrho");
else if (std::strcmp(fDescriptor->label, "kars") == 0)
pData->iconName = carla_strdup_safe("distrho");
else if (std::strcmp(fDescriptor->label, "nekobi") == 0)
pData->iconName = carla_strdup_safe("distrho");
else if (std::strcmp(fDescriptor->label, "pingpongpan") == 0)
pData->iconName = carla_strdup_safe("distrho");

// ---------------------------------------------------------------
// get info
// set info

if (name != nullptr && name[0] != '\0')
pData->name = pData->engine->getUniquePluginName(name);


Loading…
Cancel
Save