2009-07-14 18:36:13 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2009 David A. Schleef <ds@schleef.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-08 11:53:56 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2009-07-14 18:36:13 +00:00
|
|
|
*/
|
2013-07-10 09:24:34 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2009-04-13 03:03:30 +00:00
|
|
|
|
|
|
|
#include "gstgtk.h"
|
|
|
|
|
|
|
|
#if defined(GDK_WINDOWING_WIN32)
|
|
|
|
#include <gdk/gdkwin32.h>
|
|
|
|
#elif defined(GDK_WINDOWING_X11)
|
|
|
|
#include <gdk/gdkx.h>
|
|
|
|
#elif defined(GDK_WINDOWING_QUARTZ)
|
|
|
|
#include <gdk/gdkquartz.h>
|
|
|
|
#else
|
|
|
|
#error unimplemented GTK backend
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2012-06-06 14:51:47 +00:00
|
|
|
gst_video_overlay_set_gtk_window (GstVideoOverlay * videooverlay,
|
|
|
|
GtkWidget * window)
|
2009-04-13 03:03:30 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
#if defined(GDK_WINDOWING_WIN32)
|
2012-06-06 14:51:47 +00:00
|
|
|
gst_video_overlay_set_window_handle (videooverlay,
|
2010-09-16 12:00:29 +00:00
|
|
|
(gulong) GDK_WINDOW_HWND (window->window));
|
2009-04-13 03:03:30 +00:00
|
|
|
#elif defined(GDK_WINDOWING_QUARTZ)
|
2012-06-06 14:51:47 +00:00
|
|
|
gst_video_overlay_set_window_handle (videooverlay,
|
2010-09-16 12:00:29 +00:00
|
|
|
(gulong) gdk_quartz_window_get_nswindow (window->window));
|
2009-04-13 03:03:30 +00:00
|
|
|
#elif defined(GDK_WINDOWING_X11)
|
2012-06-06 14:51:47 +00:00
|
|
|
gst_video_overlay_set_window_handle (videooverlay,
|
2010-09-16 12:00:29 +00:00
|
|
|
GDK_WINDOW_XWINDOW (window->window));
|
2009-04-13 03:03:30 +00:00
|
|
|
#else
|
|
|
|
#error unimplemented GTK backend
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|