]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/fontpickerg.cpp
use IMPLEMENT_APP_CONSOLE and not IMPLEMENT_APP for console apps
[wxWidgets.git] / src / generic / fontpickerg.cpp
index 971f1cbdbbb28a61f870e99a3493d57614423a88..56963130797c12d8ab1da306e74a726cb3d5bc9f 100644 (file)
@@ -59,7 +59,7 @@ bool wxGenericFontButton::Create( wxWindow *parent, wxWindowID id,
     }
 
     // and handle user clicks on it
-    Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+    Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
             wxCommandEventHandler(wxGenericFontButton::OnButtonClick),
             NULL, this);