From 687d733769cc797102a52c7cad8edd32be5a2f89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Sat, 9 Jan 1999 18:00:30 +0000 Subject: [PATCH] wxComboBox included (removed dependency on wxUSE_COMBOBOX which was never defined). intl.h only defines _() macro if WXINTL_NO_GETTEXT_MACRO is not defined. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gtk/combobox.h | 6 ------ include/wx/gtk1/combobox.h | 6 ------ include/wx/intl.h | 2 ++ src/gtk/combobox.cpp | 5 ----- src/gtk1/combobox.cpp | 5 ----- 5 files changed, 2 insertions(+), 22 deletions(-) diff --git a/include/wx/gtk/combobox.h b/include/wx/gtk/combobox.h index 5e9e341fb3..7d7822f941 100644 --- a/include/wx/gtk/combobox.h +++ b/include/wx/gtk/combobox.h @@ -18,8 +18,6 @@ #include "wx/defs.h" -#if wxUSE_COMBOBOX - #include "wx/object.h" #include "wx/control.h" @@ -119,10 +117,6 @@ public: DECLARE_EVENT_TABLE() }; -#endif - - // wxUSE_COMBOBOX - #endif // __GTKCOMBOBOXH__ diff --git a/include/wx/gtk1/combobox.h b/include/wx/gtk1/combobox.h index 5e9e341fb3..7d7822f941 100644 --- a/include/wx/gtk1/combobox.h +++ b/include/wx/gtk1/combobox.h @@ -18,8 +18,6 @@ #include "wx/defs.h" -#if wxUSE_COMBOBOX - #include "wx/object.h" #include "wx/control.h" @@ -119,10 +117,6 @@ public: DECLARE_EVENT_TABLE() }; -#endif - - // wxUSE_COMBOBOX - #endif // __GTKCOMBOBOXH__ diff --git a/include/wx/intl.h b/include/wx/intl.h index fd26e1054c..8b7acb076b 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -36,7 +36,9 @@ typedef unsigned long size_t32; // ---------------------------------------------------------------------------- // gettext() style macro +#ifndef WXINTL_NO_GETTEXT_MACRO #define _(str) wxGetTranslation(str) +#endif // ---------------------------------------------------------------------------- // forward decls diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index 302a6f5dff..499e2153d9 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -14,8 +14,6 @@ #include "wx/combobox.h" -#if wxUSE_COMBOBOX - #include #include "gdk/gdk.h" @@ -543,6 +541,3 @@ bool wxComboBox::IsOwnGtkWindow( GdkWindow *window ) (window == GTK_COMBO(m_widget)->button->window ) ); } -#endif - - // wxUSE_COMBOBOX \ No newline at end of file diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index 302a6f5dff..499e2153d9 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -14,8 +14,6 @@ #include "wx/combobox.h" -#if wxUSE_COMBOBOX - #include #include "gdk/gdk.h" @@ -543,6 +541,3 @@ bool wxComboBox::IsOwnGtkWindow( GdkWindow *window ) (window == GTK_COMBO(m_widget)->button->window ) ); } -#endif - - // wxUSE_COMBOBOX \ No newline at end of file -- 2.45.2