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


Plug::Plug(guint32 socket_id)
  : Window((GtkWindow*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  gtk_plug_construct(gtkobj(), socket_id);
}


}

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

namespace Gtk {
Plug_Class Plug::plug_class = {0};

Object* Plug_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Plug((GtkPlug*)(o)));
    return cpp;
  }

bool Plug::isA( Object *checkcast)
  {
    return GTK_IS_PLUG(checkcast->gtkobj());
  }

GtkType Plug::get_type()
  {
    return plug_class.get_type();
  }

GtkType Plug_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__Plug",
            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_plug_get_type(), &info);
      }
    return type;
  }

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

void Plug::initialize_class()
  {

  }

void Plug_Class::class_init_function(GtkPlugClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Plug_Class::object_init_function(GtkPlug *)
  {}

}

Gtk::Plug::Plug(GtkPlug *castitem)
  :     Gtk::Window((GtkWindow*)(castitem))
  {
    initialize_class();
  }

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