Fix warning for unknown menu stock id.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -380,6 +380,9 @@ const char *wxGetStockGtkID(wxWindowID id)
|
|||||||
|
|
||||||
bool wxGetStockGtkAccelerator(const char *id, GdkModifierType *mod, guint *key)
|
bool wxGetStockGtkAccelerator(const char *id, GdkModifierType *mod, guint *key)
|
||||||
{
|
{
|
||||||
|
if (!id)
|
||||||
|
return false;
|
||||||
|
|
||||||
GtkStockItem stock_item;
|
GtkStockItem stock_item;
|
||||||
if (gtk_stock_lookup (id, &stock_item))
|
if (gtk_stock_lookup (id, &stock_item))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user