From cd7e0d98120a41502791442e082027eb9ab1ff30 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 2 Jan 2013 23:53:46 +0100 Subject: WixIcon: use Id too --- src/wixl.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/wixl.vala b/src/wixl.vala index ea85518..5c329a4 100644 --- a/src/wixl.vala +++ b/src/wixl.vala @@ -12,10 +12,10 @@ namespace Wixl { name = "Icon"; } - public void add (string filename) throws GLib.Error { + public void add (string id, string filename) throws GLib.Error { var rec = new Libmsi.Record (2); - if (!rec.set_string (1, filename) || + if (!rec.set_string (1, id) || !rec.load_stream (2, filename)) throw new Wixl.Error.FAILED ("failed to add record"); @@ -630,7 +630,7 @@ namespace Wixl { } public override void visit_icon (WixIcon icon) throws GLib.Error { - db.table_icon.add (icon.SourceFile); + db.table_icon.add (icon.Id, icon.SourceFile); } } -- cgit