#include <gdk/gdkkeysyms.h>
#include <pthread.h>
+#if defined(__MINGW32__)
+#include <winsock2.h>
+#endif
+
#include "instance.h"
#include "ui.h"
#include "opts.h"
#include "player.h"
#include "library.h"
#include "playlist.h"
+#include "control.h"
GtkTargetEntry drag_targets[] = { { (char*) "application/playlist_item_t", 0, 0 } };
};
break;
case GDK_KEY_space:
-// omnplay_ctl(app, BUTTON_PLAYER_PLAY);
+ control_route(app, BUTTON_PLAYER_PLAY);
return TRUE;
case GDK_KEY_Return:
-// omnplay_ctl(app, BUTTON_PLAYER_CUE);
+ control_route(app, BUTTON_PLAYER_CUE);
return TRUE;
case GDK_KEY_Insert:
// omnplay_playlist_item_add(app, 0);
case BUTTON_PLAYER_PLAY:
case BUTTON_PLAYER_PAUSE:
case BUTTON_PLAYER_STOP:
-// omnplay_ctl(app, button);
+ control_route(app, button);
break;
case BUTTON_LIBRARY_ADD:
playlist_item_add_from_library(app, 0);
int i;
pthread_mutexattr_t attr;
+#if defined(__MINGW32__)
+ WORD wVersionRequested;
+ WSADATA wsaData;
+ wVersionRequested = MAKEWORD(2, 2);
+ WSAStartup(wVersionRequested, &wsaData);
+#endif
+
gtk_signal_connect( GTK_OBJECT( app->window ), "delete-event",
GTK_SIGNAL_FUNC(on_main_window_delete_event), app);