]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_combo.cpp
Hacks for wine.
[wxWidgets.git] / src / xrc / xh_combo.cpp
index 119afc17fe793f5c50fd60627426f8f3a5604afe..99c037055926eb8a44a5e64a45b0808eeca8ad70 100644 (file)
@@ -34,7 +34,6 @@ wxComboBoxXmlHandler::wxComboBoxXmlHandler()
     XRC_ADD_STYLE(wxCB_SORT);
     XRC_ADD_STYLE(wxCB_READONLY);
     XRC_ADD_STYLE(wxCB_DROPDOWN);
-    XRC_ADD_STYLE(wxCB_FILENAME);
     AddWindowStyles();
 }
 
@@ -88,7 +87,7 @@ wxObject *wxComboBoxXmlHandler::DoCreateResource()
         // add to the list
         wxString str = GetNodeContent(m_node);
         if (m_resource->GetFlags() & wxXRC_USE_LOCALE)
-            str = wxGetTranslation(str);
+            str = wxGetTranslation(str, m_resource->GetDomain());
         strList.Add(str);
 
         return NULL;