+require 0.92.1
+
%{
#include <time.h>
#include "my-person.h"
+#include "my-person-private.h"
%}
class My:Person from Gtk:Object {
private int rounds_in_shotgun; /* number of rounds in our shotgun */
- argument POINTER name
+ argument POINTER (type char *) name
get {
if(self->name)
ARG = g_strdup(self->name);
argument LONG dob get { ARG = self->dob; } set { self->dob = ARG; };
argument LONG dod get { ARG = self->dod; } set { self->dod = ARG; };
- init(person)
+ init(self)
{
- person->name = g_strdup("Nobody");
- person->dob = 0;
- person->dod = 0;
+ self->name = g_strdup("Nobody");
+ self->dob = 0;
+ self->dod = 0;
/* initially we have no rounds in the shotgun */
- person->_priv->rounds_in_shotgun = 0;
+ self->_priv->rounds_in_shotgun = 0;
}
/* when the person gets born, sends out a signal, the caller