File: DocProp.custom

package info (click to toggle)
gsf-sharp 0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,548 kB
  • ctags: 19
  • sloc: sh: 8,694; makefile: 66; ansic: 33
file content (25 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

		[DllImport("libgsfglue")]
		static extern void gsf_doc_prop_glue_get_val(IntPtr raw, out GLib.GType type, ref GLib.Value gvalue);

		[DllImport("libgsfglue")]
		static extern void gsf_doc_prop_glue_set_val(IntPtr raw, ref GLib.Value val);

		public object Val { 
			get {
				GLib.GType type;
				GLib.Value gvalue = GLib.Value.Empty;

				gsf_doc_prop_glue_get_val(Handle, out type, ref gvalue);

				if (type != GLib.GType.None)
					return gvalue.Val;
				else
					return null;
			}
			set {
				GLib.Value gvalue = new GLib.Value (value);
				gsf_doc_prop_glue_set_val(Handle, ref gvalue);
			}
		}