Update ALabel.cpp

This commit is contained in:
Visal Vijay
2026-03-17 01:13:14 +05:30
committed by GitHub
parent 3cfb622660
commit acf6f117ea

View File

@@ -118,7 +118,7 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st
menuActionsMap_[key] = it->asString(); menuActionsMap_[key] = it->asString();
g_signal_connect(submenus_[key], "activate", g_signal_connect(submenus_[key], "activate",
G_CALLBACK(handleGtkMenuEvent), G_CALLBACK(handleGtkMenuEvent),
(gpointer)menuActionsMap_[key].c_str()); (gpointer)g_strdup(menuActionsMap_[key].c_str()));
} }
g_object_unref(builder); g_object_unref(builder);
} catch (std::runtime_error& e) { } catch (std::runtime_error& e) {