/* This is called when an item is selected (what is the
* GTK+ term? prelight?)
*/
- //g_print ("kEventClassMenu/kEventMenuTargetItem\n");
+ //g_print ("kEventClassMenu/kEventMenuTargetItem\n");
break;
case kEventMenuOpening:
c.set_rgb((rgb >> 16)*256, ((rgb & 0xff00) >> 8)*256, (rgb & 0xff)*256);
}
+#ifdef GTKOSX
+extern "C" {
+ gboolean gdk_quartz_possibly_forward (GdkEvent*);
+}
+#endif
+
bool
key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev)
{
#ifdef DEBUG_ACCELERATOR_HANDLING
bool debug = (getenv ("ARDOUR_DEBUG_ACCELERATOR_HANDLING") != 0);
#endif
-
if (focus) {
if (GTK_IS_ENTRY(focus) || Keyboard::some_magic_widget_has_focus()) {
special_handling_of_unmodified_accelerators = true;
if (debug) {
cerr << "\tactivate, then propagate\n";
}
+#endif
+#ifdef GTKOSX
+ if (gdk_quartz_possibly_forward ((GdkEvent*) ev)) {
+ return true;
+ }
#endif
if (!gtk_window_activate_key (win, ev)) {
return gtk_window_propagate_key_event (win, ev);
if (debug) {
cerr << "\tpropagation didn't handle, so activate\n";
}
+#endif
+#ifdef GTKOSX
+ if (gdk_quartz_possibly_forward ((GdkEvent*) ev)) {
+ return true;
+ }
#endif
return gtk_window_activate_key (win, ev);
} else {
#ifndef __ardour_svn_revision_h__
#define __ardour_svn_revision_h__
-static const char* ardour_svn_revision = "2496";
+static const char* ardour_svn_revision = "2513";
#endif
SAE=
WITH_JACK=1
WITH_LADSPA=1
+STRIP=1
while [ $# -gt 0 ] ; do
echo "arg = $1"
--sae) SAE=1 ; shift ;;
--nojack) WITH_JACK= ; shift ;;
--noladpsa) WITH_LADSPA= ; shift ;;
+ --nostrip) STRIP= ; shift ;;
esac
done
echo "Copying ardour executable ...."
cp ../../gtk2_ardour/ardour-$version $APPROOT/MacOS/Ardour2
-strip $APPROOT/MacOS/Ardour2
+if test x$STRIP != x ; then
+ strip $APPROOT/MacOS/Ardour2
+fi
if test x$WITH_JACK != x ; then
cp /usr/local/lib/jack/jack_coreaudio.so $Frameworks
cp /usr/local/bin/jackd $APPROOT/MacOS