/* By Owen Taylor <otaylor@gtk.org> 98/4/4 */
-#include "gdk/gdkx.h"
+/*
+ * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#include "gdkx.h"
#include "gdk/gdkkeysyms.h"
#include "gtkwindow.h"
#include "gtksignal.h"
#include "gtksocket.h"
#include "gtkdnd.h"
+#ifdef GDK_WINDOWING_X11
+
/* Forward declararations */
static void gtk_socket_class_init (GtkSocketClass *klass);
static GtkWidgetClass *parent_class = NULL;
-guint
+GtkType
gtk_socket_get_type ()
{
- static guint socket_type = 0;
+ static GtkType socket_type = 0;
if (!socket_type)
{
gdk_error_trap_pop ();
}
- requisition->width = socket->request_width;
- requisition->height = socket->request_height;
+ requisition->width = MAX (socket->request_width, 1);
+ requisition->height = MAX (socket->request_height, 1);
}
static void
return return_val;
}
+
+#elif defined (GDK_WINDOWING_WIN32)
+
+guint
+gtk_socket_get_type ()
+{
+ g_error ("GtkSocket not implemented");
+ return 42;
+}
+
+GtkWidget*
+gtk_socket_new ()
+{
+ g_error ("GtkSocket not implemented");
+ return NULL;
+}
+
+void
+gtk_socket_steal (GtkSocket *socket, guint32 id)
+{
+ g_error ("GtkSocket not implemented");
+}
+
+#endif /* GDK_WINDOWING */