public long dod; /* date of death as a time_t */
private int rounds_in_shotgun; /* number of rounds in our shotgun */
-
+
argument POINTER (type char *) name
get {
- /* note that strdup handles NULL correctly */
+ /* note that g_strdup handles NULL correctly */
ARG = g_strdup(self->name);
}
set {
- /* note that strdup handles NULL correctly */
+ /* note that g_free and g_strdup handles NULL correctly */
g_free(self->name);
self->name = g_strdup(ARG);
};
g_free(MY_PERSON(self)->name);
PARENT_HANDLER(self);
}
+
+ public GtkObject *
+ new(void)
+ {
+ return (GtkObject *)GET_NEW;
+ }
}