Logo Search packages:      
Sourcecode: ardour version File versions  Download package

data.cc

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

}

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

namespace Gtk {
Data_Class Data::data_class = {0};

Object* Data_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Data((GtkData*)(o)));
    return cpp;
  }

bool Data::isA( Object *checkcast)
  {
    return GTK_IS_DATA(checkcast->gtkobj());
  }

GtkType Data::get_type()
  {
    return data_class.get_type();
  }

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

const char* const Data::signal_names[]={
   "disconnect",
   0};

void Data::initialize_class()
  {

     data_self=this;

  }

void Data_Class::class_init_function(GtkDataClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
    klass->disconnect=disconnect_callback;
  }

void Data_Class::object_init_function(GtkData *)
  {}

}

Gtk::Data::Data(GtkData *castitem)
  :     Gtk::Object((GtkObject*)(castitem))
  {
    initialize_class();
  }

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

Gtk::Data::Data()
  :     Gtk::Object((GtkObject*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

void Gtk::Data_Class::disconnect_callback(GtkData* o_)
  {
    CppObjectType *obj=
      static_cast<CppObjectType *>(static_cast<Gtk::Object *>(
        gtk_object_get_data_by_id((GtkObject*)o_,Gtk::quark_)));

    if (obj)
      obj->disconnect_impl();
    else
      {
        BaseClassType* base=
          static_cast<BaseClassType*>(
            gtk_type_parent_class(((GtkObject*)o_)->klass->type));
        if (base->disconnect)
          (base->disconnect)(o_);
      }

  }

void Gtk::Data::disconnect_impl()
  {
    BaseClassType* base=
      static_cast<BaseClassType*>(
        gtk_type_parent_class(gtkobject->klass->type));
    if (base->disconnect)
      (base->disconnect)(gtkobj());

  }

Generated by  Doxygen 1.6.0   Back to index