class My:Person from G:Object {
/* the name of the person */
- private char *name = {g_strdup(_("Nobody"))}
+ private char *name = {g_strdup("Nobody")}
destroywith g_free;
property STRING name
- (nick = _("Name"),
- blurb = _("Name of the person"),
- default_value = _("Nobody"),
+ (nick = "Name",
+ blurb = "Name of the person",
+ default_value = "Nobody",
/* Export get/set functions for this property */
export,
/* link to the data memeber 'name' */
/* date of birth as a time_t */
private long dob = 0;
property LONG dob
- (nick = _("Date of birth"),
- blurb = _("Date of birth of the person"),
+ (nick = "Date of birth",
+ blurb = "Date of birth of the person",
minimum = 0,
maximum = LONG_MAX,
default_value = 0,
/* date of death as a time_t */
private long dod = 0;
property LONG dod
- (nick = _("Date of death"),
- blurb = _("Date of death of the person"),
+ (nick = "Date of death",
+ blurb = "Date of death of the person",
minimum = 0,
maximum = LONG_MAX,
default_value = 0,
birth (self, long dob)
{
g_object_set (G_OBJECT (self),
- "dob", dob);
+ "dob", dob,
+ NULL);
}
/* when the person dies, sends out a signal, the caller
death (self, long dod)
{
g_object_set (G_OBJECT (self),
- "dod", dod);
+ "dod", dod,
+ NULL);
}
public
shoot_oneself_in_the_head (self)
{
if (self->_priv->rounds_in_shotgun == 0) {
- g_warning (_("No rounds in the shotgun!"));
+ g_warning ("No rounds in the shotgun!");
return;
}
self->_priv->rounds_in_shotgun--;
/* death is imminent if we shoot oneself in the head */
- death (self, (long)time (NULL));
+ self_death (self, (long)time (NULL));
}
public GObject *