Don't use GetStandardCmdLineOptions() under non-Unix platforms.
The GTK+ standard options are only available under Unix. Closes #15131. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -401,6 +401,8 @@ wxString wxGUIAppTraits::GetDesktopEnvironment() const
|
|||||||
|
|
||||||
#endif // __UNIX__ || __OS2__
|
#endif // __UNIX__ || __OS2__
|
||||||
|
|
||||||
|
#ifdef __UNIX__
|
||||||
|
|
||||||
// see the hack below in wxCmdLineParser::GetUsageString().
|
// see the hack below in wxCmdLineParser::GetUsageString().
|
||||||
// TODO: replace this hack with a g_option_group_get_entries()
|
// TODO: replace this hack with a g_option_group_get_entries()
|
||||||
// call as soon as such function exists;
|
// call as soon as such function exists;
|
||||||
@@ -427,6 +429,7 @@ struct _GOptionGroup
|
|||||||
GOptionErrorFunc error_func;
|
GOptionErrorFunc error_func;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static
|
||||||
wxString wxGetNameFromGtkOptionEntry(const GOptionEntry *opt)
|
wxString wxGetNameFromGtkOptionEntry(const GOptionEntry *opt)
|
||||||
{
|
{
|
||||||
wxString ret;
|
wxString ret;
|
||||||
@@ -446,8 +449,6 @@ wxString wxGetNameFromGtkOptionEntry(const GOptionEntry *opt)
|
|||||||
return wxT(" ") + ret;
|
return wxT(" ") + ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __UNIX__
|
|
||||||
|
|
||||||
wxString
|
wxString
|
||||||
wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
|
wxGUIAppTraits::GetStandardCmdLineOptions(wxArrayString& names,
|
||||||
wxArrayString& desc) const
|
wxArrayString& desc) const
|
||||||
|
Reference in New Issue
Block a user