File: notifying-string.gob

package info (click to toggle)
pioneers 15.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,588 kB
  • sloc: ansic: 43,583; sh: 4,353; makefile: 874; xml: 24
file content (24 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
requires 2.0.0

class Notifying:String from G:Object {
	private gchar *value = { NULL }
	destroywith g_free;

	signal last NONE(NONE)
	    void
	 changed(self) {
	}

	public GObject *new(void) {
		return (GObject *) GET_NEW;
	}

	public void set(self, const gchar * value) {
		self->_priv->value = g_strdup(value);
		self_changed(self);
	}

	public gchar *get(self) {
		return g_strdup(self->_priv->value);
	}
}