mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
GTKOSX is not a valid check. Use __APPLE__
This commit is contained in:
parent
f54f270627
commit
5200885fb8
3 changed files with 4 additions and 4 deletions
|
|
@ -132,7 +132,7 @@ ARDOUR_UI::connect_dependents_to_session (ARDOUR::Session *s)
|
||||||
gint
|
gint
|
||||||
ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
|
ARDOUR_UI::exit_on_main_window_close (GdkEventAny * /*ev*/)
|
||||||
{
|
{
|
||||||
#ifdef GTKOSX
|
#ifdef __APPLE__
|
||||||
/* just hide the window, and return - the top menu stays up */
|
/* just hide the window, and return - the top menu stays up */
|
||||||
editor->hide ();
|
editor->hide ();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
|
||||||
|
|
@ -700,7 +700,7 @@ ARDOUR_UI::build_menu_bar ()
|
||||||
format_label.set_name ("Format");
|
format_label.set_name ("Format");
|
||||||
format_label.set_use_markup ();
|
format_label.set_use_markup ();
|
||||||
|
|
||||||
#ifdef GTKOSX
|
#ifdef __APPLE__
|
||||||
use_menubar_as_top_menubar ();
|
use_menubar_as_top_menubar ();
|
||||||
#else
|
#else
|
||||||
menu_hbox.pack_start (*menu_bar, false, false);
|
menu_hbox.pack_start (*menu_bar, false, false);
|
||||||
|
|
|
||||||
|
|
@ -224,8 +224,8 @@ static const gchar *_rb_opt_strings[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//Robin says: this should be odd to accomodate cairo drawing offset ( width/2 rounds up to pixel boundary )
|
//Robin says: this should be odd to accomodate cairo drawing offset ( width/2 rounds up to pixel boundary )
|
||||||
#ifdef GTKOSX
|
#ifdef __APPLE__
|
||||||
#define COMBO_TRIANGLE_WIDTH 25 // ArdourButton _diameter (11) + 2 * arrow-padding (2*2) + 2 * text-padding (2*5)
|
#define COMBO_TRIANGLE_WIDTH 19 // ArdourButton _diameter (11) + 2 * arrow-padding (2*2) + 2 * text-padding (2*5)
|
||||||
#else
|
#else
|
||||||
#define COMBO_TRIANGLE_WIDTH 11 // as-measured for win/linux.
|
#define COMBO_TRIANGLE_WIDTH 11 // as-measured for win/linux.
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue