]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/fontpickerg.cpp
Fix resizing of wxGrid columns when they were reordered.
[wxWidgets.git] / src / generic / fontpickerg.cpp
index 971f1cbdbbb28a61f870e99a3493d57614423a88..e78f3588ebf19c1d50bb0f8fe5faa1095580c575 100644 (file)
@@ -47,8 +47,8 @@ bool wxGenericFontButton::Create( wxWindow *parent, wxWindowID id,
                         const wxValidator& validator, const wxString &name)
 {
     wxString label = (style & wxFNTP_FONTDESC_AS_LABEL) ?
-                        wxEmptyString : // label will be updated by UpdateFont
-                        wxT("Choose font");
+                        wxString() : // label will be updated by UpdateFont
+                        _("Choose font");
 
     // create this button
     if (!wxButton::Create( parent, id, label, pos,
@@ -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);