GTKOSX is not a valid check. Use __APPLE__

This commit is contained in:
Ben Loftis 2018-02-15 16:32:37 -06:00
parent f54f270627
commit 5200885fb8
3 changed files with 4 additions and 4 deletions

View File

@ -132,7 +132,7 @@ ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
gint
ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
{
#ifdef GTKOSX
#ifdef __APPLE__
/* just hide the window, and return - the top menu stays up */
editor->hide ();
return TRUE;

View File

@ -700,7 +700,7 @@ ARDOUR_UI::build_menu_bar ()
format_label.set_name ("Format");
format_label.set_use_markup ();
#ifdef GTKOSX
#ifdef __APPLE__
use_menubar_as_top_menubar ();
#else
menu_hbox.pack_start (*menu_bar, false, false);

View File

@ -224,8 +224,8 @@ static const gchar *_rb_opt_strings[] = {
#endif
//Robin says: this should be odd to accomodate cairo drawing offset ( width/2 rounds up to pixel boundary )
#ifdef GTKOSX
#define COMBO_TRIANGLE_WIDTH 25 // ArdourButton _diameter (11) + 2 * arrow-padding (2*2) + 2 * text-padding (2*5)
#ifdef __APPLE__
#define COMBO_TRIANGLE_WIDTH 19 // ArdourButton _diameter (11) + 2 * arrow-padding (2*2) + 2 * text-padding (2*5)
#else
#define COMBO_TRIANGLE_WIDTH 11 // as-measured for win/linux.
#endif