]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/tbargtk.cpp
pywrap should be treated as a gui script
[wxWidgets.git] / src / gtk / tbargtk.cpp
index 62aa329954726343a37faf55406a090c9f49b82a..458e5f12997e6be57a117eba0ad87fffe7daff7d 100644 (file)
@@ -365,7 +365,7 @@ bool wxToolBar::DoInsertTool(size_t pos, wxToolBarToolBase *toolBase)
             wxCHECK_MSG( bitmap.Ok(), false,
                          wxT("invalid bitmap for wxToolBar icon") );
 
-            wxCHECK_MSG( bitmap.GetBitmap() == NULL, false,
+            wxCHECK_MSG( bitmap.GetDepth() != 1, false,
                          wxT("wxToolBar doesn't support GdkBitmap") );
 
             wxCHECK_MSG( bitmap.GetPixmap() != NULL, false,