diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-04 22:19:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-04 22:19:32 +0100 |
| commit | 6d7b419d42aa8a5df91836dee3c4b3b7a8849bf8 (patch) | |
| tree | c4b83b1332dea9df19a73ef79241a0f811d37b90 /src/wx/wx_util.h | |
| parent | 78c78cdb5c4c6c62ba98fa54c9ba54812149ef7b (diff) | |
Use non-faulty DirPicker for config dialog too if required.
Diffstat (limited to 'src/wx/wx_util.h')
| -rw-r--r-- | src/wx/wx_util.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wx/wx_util.h b/src/wx/wx_util.h index 00a625e1c..464aa1752 100644 --- a/src/wx/wx_util.h +++ b/src/wx/wx_util.h @@ -17,10 +17,16 @@ */ +#ifndef DVDOMATIC_WX_UTIL_H +#define DVDOMATIC_WX_UTIL_H + #include <wx/wx.h> #include <wx/gbsizer.h> #include <boost/function.hpp> #include <boost/thread.hpp> +#ifdef __WXGTK__ +#include <gtk/gtk.h> +#endif class wxFilePickerCtrl; class wxSpinCtrl; @@ -69,3 +75,12 @@ extern void checked_set (wxTextCtrl* widget, std::string value); extern void checked_set (wxCheckBox* widget, bool value); extern void checked_set (wxRadioButton* widget, bool value); extern void checked_set (wxStaticText* widget, std::string value); + +/* GTK 2.24.17 has a buggy GtkFileChooserButton and it was put in Ubuntu 13.04. + Use our own dir picker as this is the least bad option I can think of. +*/ +#if defined(__WXMSW__) || (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 24 && GTK_MICRO_VERSION == 17) +#define DVDOMATIC_USE_OWN_DIR_PICKER +#endif + +#endif |
