// -*- c++ -*-
//  Generated by gtkmmproc from ./../socket.gen_h -- DO NOT MODIFY!
#include <gtk--/socket.h>
#include <gtk--/private/socket_p.h>
namespace Gtk
{

}

namespace Gtk {
Gtk::Socket *wrap (GtkSocket *o)
  {
    return static_cast<Gtk::Socket *> (Gtk::wrap_auto ((GtkObject *) (o)));
  }
}

namespace Gtk {
Socket_Class Socket::socket_class = {0};

Object* Socket_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Socket((GtkSocket*)(o)));
    return cpp;
  }

bool Socket::isA( Object *checkcast)
  {
    return GTK_IS_SOCKET(checkcast->gtkobj());
  }

GtkType Socket::get_type()
  {
    return socket_class.get_type();
  }

GtkType Socket_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__Socket",
            sizeof(BaseObjectType),
            sizeof(BaseClassType),
            (GtkClassInitFunc) class_init_function,
            (GtkObjectInitFunc) object_init_function,
            /* reserved_1 */ NULL,
            /* reserved_2 */ NULL,
            /*base_class_init_func */ (GtkClassInitFunc) NULL
          };
        type=gtk_type_unique(gtk_socket_get_type(), &info);
      }
    return type;
  }

const char* const Socket::signal_names[]={
   0};

void Socket::initialize_class()
  {

  }

void Socket_Class::class_init_function(GtkSocketClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Socket_Class::object_init_function(GtkSocket *)
  {}

}

Gtk::Socket::Socket()
  :     Gtk::Container((GtkContainer*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

Gtk::Socket::Socket(GtkSocket *castitem)
  :     Gtk::Container((GtkContainer*)(castitem))
  {
    initialize_class();
  }

Gtk::Socket::~Socket() { destroy_(); }

void Gtk::Socket::steal(guint32 wid)
  {
    gtk_socket_steal(gtkobj(),wid);
  }
