summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-10-28 21:06:06 +0100
committerSebastian Reichel <sre@ring0.de>2015-10-28 21:06:06 +0100
commitcfa34430b907f7598c55e2353301a853fc4f5c7f (patch)
treecd61b38a25c7812a18703138e63bff0ea39dbb65
parentdbcace5e7de23a48e8686171c7a412a950acc764 (diff)
downloadserial-barcode-scanner-cfa34430b907f7598c55e2353301a853fc4f5c7f.tar.bz2
simplify string building by using vala's template system
-rw-r--r--src/web/web.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web.vala b/src/web/web.vala
index 30dbcf8..1b8ba8c 100644
--- a/src/web/web.vala
+++ b/src/web/web.vala
@@ -496,7 +496,7 @@ public class WebServer {
string categories = "";
foreach(var c in db.get_category_list()) {
- categories += "<option value=\"%lld\">%s</option>".printf(c.id, c.name);
+ categories += @"<option value=\"$(c.id)\">$(c.name)</option>";
}
t.replace("CATEGORIES", categories);