diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-24 13:31:51 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-24 16:18:54 +0200 |
| commit | 6ea0becd89bb223f26196aa9db13371990f5a1a8 (patch) | |
| tree | 300c7dbc3368a93ce2992299e6af428fea6ab1ea /src | |
| parent | 90b78d5477e4ca51b96cd22e7e81de50da486132 (diff) | |
Ubuntu 20.04 packaging.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timing_panel.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index c7268e8a5..af62b557c 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -36,7 +36,7 @@ #include "lib/dcp_content.h" #include "lib/ffmpeg_content.h" #include <dcp/locale_convert.h> -#ifdef __WXGTK__ +#ifndef __WXGTK3__ #include <gtk/gtk.h> #endif #include <boost/foreach.hpp> @@ -68,23 +68,23 @@ TimingPanel::TimingPanel (ContentPanel* p, weak_ptr<FilmViewer> viewer) //// TRANSLATORS: this is an abbreviation for "hours" _h_label = new StaticText (this, _("h"), wxDefaultPosition, size, wxALIGN_CENTRE_HORIZONTAL); -#ifdef DCPOMATIC_LINUX +#ifndef __WXGTK3__ /* Hack to work around failure to centre text on GTK */ gtk_label_set_line_wrap (GTK_LABEL(_h_label->GetHandle()), FALSE); #endif //// TRANSLATORS: this is an abbreviation for "minutes" _m_label = new StaticText (this, _("m"), wxDefaultPosition, size, wxALIGN_CENTRE_HORIZONTAL); -#ifdef DCPOMATIC_LINUX +#ifndef __WXGTK3__ gtk_label_set_line_wrap (GTK_LABEL (_m_label->GetHandle()), FALSE); #endif //// TRANSLATORS: this is an abbreviation for "seconds" _s_label = new StaticText (this, _("s"), wxDefaultPosition, size, wxALIGN_CENTRE_HORIZONTAL); -#ifdef DCPOMATIC_LINUX +#ifndef __WXGTK3__ gtk_label_set_line_wrap (GTK_LABEL(_s_label->GetHandle()), FALSE); #endif //// TRANSLATORS: this is an abbreviation for "frames" _f_label = new StaticText (this, _("f"), wxDefaultPosition, size, wxALIGN_CENTRE_HORIZONTAL); -#ifdef DCPOMATIC_LINUX +#ifndef __WXGTK3__ gtk_label_set_line_wrap (GTK_LABEL(_f_label->GetHandle()), FALSE); #endif |
