From 186049b3ed33f025eeb87eb34c19a28e1d5ba70a Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Tue, 2 Oct 2012 01:05:51 +0200 Subject: restructure code, switch from GTK to Web based UI - move barcode generation scripts into generation/ - move code to src/ - remove database analysis from invoice/graph - put database creation sql files into sql/ - remove glade builder file - add new templates/ directory, which contains files used by the Web-UI --- src/price.vapi | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/price.vapi (limited to 'src/price.vapi') diff --git a/src/price.vapi b/src/price.vapi new file mode 100644 index 0000000..b60e2a6 --- /dev/null +++ b/src/price.vapi @@ -0,0 +1,9 @@ +[SimpleType] +[GIR (name = "gint")] +[CCode (cname = "gint", cheader_filename = "glib.h", type_id = "G_TYPE_INT", marshaller_type_name = "INT", get_value_function = "g_value_get_int", set_value_function = "g_value_set_int", default_value = "0", type_signature = "i")] +[IntegerType (rank = 6)] +public struct Price : int { + public new string to_string() { + return "%d.%02d".printf(this / 100, this % 100); + } +} -- cgit v1.2.3