[chronojump/different_glades_2: 3/8] Adds new Glade files in the build system and instructions.



commit 03ac6e7568185260f160f9c9f6957a46ae07f1e1
Author: Carles Pina i Estany <carles pina cat>
Date:   Thu Oct 13 11:15:23 2016 +0200

    Adds new Glade files in the build system and instructions.

 Makefile.am                   |    2 +-
 glade/howto_add_new_glade.txt |    7 +++++++
 src/Makefile.am               |    2 ++
 src/gui/about.cs              |    2 +-
 4 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 415b6a8..08328cb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-EXTRA_DIST = win32/chronojump_innosetup.iss.in win32/Makefile.in glade/chronojump.glade 
src/chronojump-importer/chronojump_importer.py
+EXTRA_DIST = win32/chronojump_innosetup.iss.in win32/Makefile.in glade/*.glade 
src/chronojump-importer/chronojump_importer.py
 CLEANFILES = win32/Makefile win32/chronojump_innosetup.iss
 
 ACLOCAL_AMFLAGS = -I build/m4 -I build/m4/shave -I build/m4/shamrock
diff --git a/glade/howto_add_new_glade.txt b/glade/howto_add_new_glade.txt
new file mode 100644
index 0000000..090a911
--- /dev/null
+++ b/glade/howto_add_new_glade.txt
@@ -0,0 +1,7 @@
+When adding a new glade file add it next to existing glade files in:
+src/Makefile.am
+po/POTFILES
+
+And if using Monodevelop:
+chronojump.csproj (using Monodevelop and closing Monodevelop, editing the XML file and opening it again)
+
diff --git a/src/Makefile.am b/src/Makefile.am
index 0ce5e44..08f4308 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -194,6 +194,8 @@ SOURCES = \
 
 RESOURCES = \
        ../glade/chronojump.glade\
+       ../glade/session_load.glade\
+       ../glade/dialog_about.glade\
        ../images/mini/no_image.png,mini/no_image.png \
        ../images/chronojump-jumps-small.png,chronojump-jumps-small.png \
        ../images/chronojump-runs-small.png,chronojump-runs-small.png \
diff --git a/src/gui/about.cs b/src/gui/about.cs
index a9bdb99..57fbe84 100644
--- a/src/gui/about.cs
+++ b/src/gui/about.cs
@@ -42,7 +42,7 @@ public class About
        public About (string version, string translators)
        {
                Glade.XML gladeXML;
-               gladeXML = Glade.XML.FromAssembly (Util.GetGladePath() + "chronojump.glade", "dialog_about", 
"chronojump");
+               gladeXML = Glade.XML.FromAssembly (Util.GetGladePath() + "dialog_about.glade", 
"dialog_about", "chronojump");
                gladeXML.Autoconnect(this);
        
                /*      


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