Might aswell show the compile- and runtime versions of GTK+ in the ctrl+alt+mclick dialog in case of wxGTK.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2005-11-13 19:44:15 +00:00
parent 94e8d77cbb
commit 0118b60be6

View File

@ -82,6 +82,19 @@
#include "wx/sysopt.h" #include "wx/sysopt.h"
#endif #endif
// For reporting compile- and runtime version of GTK+ in the ctrl+alt+mclick dialog.
// The gtk includes donn't pull any other header in, at least not on my system - MR
#ifdef __WXGTK__
#ifdef __WXGTK20__
#include <gtk/gtkversion.h>
#else
#include <gtk/gtkfeatures.h>
#endif
extern const unsigned int gtk_major_version;
extern const unsigned int gtk_minor_version;
extern const unsigned int gtk_micro_version;
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// static data // static data
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@ -2280,7 +2293,7 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
wxMessageBox(wxString::Format( wxMessageBox(wxString::Format(
_T( _T(
" wxWidgets Library (%s port)\nVersion %d.%d.%d%s%s, compiled at %s %s\n Copyright (c) 1995-2005 wxWidgets team" " wxWidgets Library (%s port)\nVersion %d.%d.%d%s%s, compiled at %s %s%s\n Copyright (c) 1995-2005 wxWidgets team"
), ),
port.c_str(), port.c_str(),
wxMAJOR_VERSION, wxMAJOR_VERSION,
@ -2297,7 +2310,12 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
wxEmptyString, wxEmptyString,
#endif #endif
__TDATE__, __TDATE__,
__TTIME__ __TTIME__,
#ifdef __WXGTK__
wxString::Format(_T("\nagainst GTK+ %d.%d.%d. Runtime GTK+ version: %d.%d.%d"), GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION, gtk_major_version, gtk_minor_version, gtk_micro_version).c_str()
#else
""
#endif
), ),
_T("wxWidgets information"), _T("wxWidgets information"),
wxICON_INFORMATION | wxOK, wxICON_INFORMATION | wxOK,