summaryrefslogtreecommitdiff
path: root/codegen/valagtkmodule.vala
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@debian.org>2015-10-19 23:56:36 +0300
committerRico Tzschichholz <ricotz@ubuntu.com>2017-03-02 11:23:02 +0100
commit0056ea4e8d0e25dba13a856fc0aa18646217e4c6 (patch)
treeacb4d4005065d45262094d057b34abc55e3f12b8 /codegen/valagtkmodule.vala
parent2542bd846fdab3b1bea80eb16f1b6b341dd7df1a (diff)
downloadvala-0056ea4e8d0e25dba13a856fc0aa18646217e4c6.tar.gz
gtkmodule: Preserve order of required-gtype-classes for reproducibility
The elements of current_required_app_classes end up in the generated code in g_type_ensure() statements. The order of these can vary between builds when using a HashSet, breaking reproducibilty. See https://wiki.debian.org/ReproducibleBuilds https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802528
Diffstat (limited to 'codegen/valagtkmodule.vala')
-rw-r--r--codegen/valagtkmodule.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valagtkmodule.vala b/codegen/valagtkmodule.vala
index 07c022e28..1558469a8 100644
--- a/codegen/valagtkmodule.vala
+++ b/codegen/valagtkmodule.vala
@@ -32,7 +32,7 @@ public class Vala.GtkModule : GSignalModule {
/* GtkBuilder xml child to Vala class mapping */
private HashMap<string, Class> current_child_to_class_map = new HashMap<string, Class>(str_hash, str_equal);
/* Required custom application-specific gtype classes to be ref'd before initializing the template */
- private HashSet<Class> current_required_app_classes = new HashSet<Class>();
+ private List<Class> current_required_app_classes = new ArrayList<Class>();
private void ensure_cclass_to_vala_map () {
// map C name of gtypeinstance classes to Vala classes