Fix menu-actions GTK callback pointer handling
This commit is contained in:
@@ -116,7 +116,8 @@ ALabel::ALabel(const Json::Value& config, const std::string& name, const std::st
|
|||||||
}
|
}
|
||||||
submenus_[key] = GTK_MENU_ITEM(item);
|
submenus_[key] = GTK_MENU_ITEM(item);
|
||||||
menuActionsMap_[key] = it->asString();
|
menuActionsMap_[key] = it->asString();
|
||||||
g_signal_connect(submenus_[key], "activate", G_CALLBACK(handleGtkMenuEvent),
|
g_signal_connect(submenus_[key], "activate",
|
||||||
|
G_CALLBACK(handleGtkMenuEvent),
|
||||||
(gpointer)menuActionsMap_[key].c_str());
|
(gpointer)menuActionsMap_[key].c_str());
|
||||||
}
|
}
|
||||||
g_object_unref(builder);
|
g_object_unref(builder);
|
||||||
|
|||||||
Reference in New Issue
Block a user