overwriting classes



I'm to writing my own objects. They overwrite class
functions from parent objects and call the overwritten
functions later. But these functions aren't in the
header's. Is there something like a extendet
gtk+-2.4.2 where these functions are in the headers or
do I have to put them my self in there. If so do I
need to recompile gtk?


example:

struct _AgsXInterface
{
  GtkWindow window;
}

...

static void
ags_xinterface_class_init (AgsXInterfaceClass
*xinterface_class)
{
  GObjectClass *gobject_class = G_OBJECT_CLASS
(xinterface_class);
  GtkObjectClass *object_class = (GtkObjectClass *)
xinterface_class;
  GtkWidgetClass *widget_class = (GtkWidgetClass *)
xinterface_class;

  gobject_class->finalize = ags_xinterface->finalize;
  object_class->destroy = ags_xinterface_destroy;
  widget_class->show = ags_xinterface_show;
}

static void
ags_xinterface_destroy (GtkObject *object)
{
  gtk_window_destroy (object);
}

static void
ags_xinterface_finalize (GObject *gobject)
{
  gtk_window_finalize (object);
}

static void
ags_xinterface_show (GtkWidget *widget)
{
  gtk_window_show (widget);
}




        

        
                
___________________________________________________________
Bestellen Sie Y! DSL und erhalten Sie die AVM "FritzBox SL" für 0?.
Sie sparen 119? und bekommen 2 Monate Grundgebührbefreiung.
http://de.adsl.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]