[four-in-a-row/KaKnife/four-in-a-row-vala: 16/65] added warning to some potentially pointless code



commit 78bd8ed45c0c27617e5157c8333b97e0f4935da3
Author: Jacob Humphrey <jacob ryan humphrey gmail com>
Date:   Sun Nov 25 11:49:25 2018 -0600

    added warning to some potentially pointless code

 src/prefs.vala | 4 ++++
 src/theme.vala | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/src/prefs.vala b/src/prefs.vala
index ef1081a..557fa08 100644
--- a/src/prefs.vala
+++ b/src/prefs.vala
@@ -31,6 +31,10 @@ Gtk.Dialog? prefsbox = null;
 Gtk.ComboBox combobox;
 Gtk.ComboBoxText combobox_theme;
 Gtk.CheckButton checkbutton_sound;
+/*
+ * Needed to force vala to include headers in the correct order.
+ * See https://gitlab.gnome.org/GNOME/vala/issues/98
+ */
 const string GETTEXT_PACKAGE_CONTENT = Config.GETTEXT_PACKAGE;
 Prefs p;
 
diff --git a/src/theme.vala b/src/theme.vala
index c52efc1..714f87f 100644
--- a/src/theme.vala
+++ b/src/theme.vala
@@ -32,6 +32,10 @@ struct Theme {
     public string player2_turn;
 }
 
+/*
+ * Needed to force vala to include headers in the correct order.
+ * See https://gitlab.gnome.org/GNOME/vala/issues/98
+ */
 const string theme_gettext_package = Config.GETTEXT_PACKAGE;
 
 string theme_get_title (int id) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]