summaryrefslogtreecommitdiff
path: root/gtk/gtksocket.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-01-28 10:47:34 +0100
committerBenjamin Otte <otte@redhat.com>2011-01-28 17:06:06 +0100
commit3860af516c0119d93ccfa5c138f32e20e490c2a9 (patch)
tree0fae98a2bf13102910339407e4046e9e57d67fd7 /gtk/gtksocket.h
parentd2540893086c46bad4c12071d31dfe86750949fe (diff)
downloadgtk+-3860af516c0119d93ccfa5c138f32e20e490c2a9.tar.gz
plug/socket: Make GtkPlug and GtkSocket X11-specific
People agreed that it doesn't make sense to make an xembed implementation like plug/socket does not make sense on anything but X11. And as GdkNativeWindow is going away for multibackend portability reasons, we'd either need API fixes in the plug-socket codee or constrain the widgets to a single backend. We chose the latter.
Diffstat (limited to 'gtk/gtksocket.h')
-rw-r--r--gtk/gtksocket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtksocket.h b/gtk/gtksocket.h
index 139d6a247f..c823d50887 100644
--- a/gtk/gtksocket.h
+++ b/gtk/gtksocket.h
@@ -30,6 +30,10 @@
#ifndef __GTK_SOCKET_H__
#define __GTK_SOCKET_H__
+#include <gdk/gdk.h>
+
+#ifdef GDK_WINDOWING_X11
+
#include <gtk/gtkcontainer.h>
G_BEGIN_DECLS
@@ -78,4 +82,6 @@ GdkWindow* gtk_socket_get_plug_window (GtkSocket *socket_);
G_END_DECLS
+#endif /* GDK_WINDOWING_X11 */
+
#endif /* __GTK_SOCKET_H__ */