embed glade file so that you can run the tilemanager from every dir
authorMatthias Braun <matze@braunis.de>
Mon, 22 Nov 2004 01:58:47 +0000 (01:58 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 22 Nov 2004 01:58:47 +0000 (01:58 +0000)
SVN-Revision: 2130

contrib/tilemanager/Application.cs
contrib/tilemanager/Makefile

index 31957be..66550e5 100644 (file)
@@ -66,7 +66,7 @@ public class Application {
     }
 
     public Application() {
-        Glade.XML gxml = new Glade.XML("tiler.glade", null, null);
+        Glade.XML gxml = new Glade.XML(null, "tiler.glade", null, null);
         gxml.Autoconnect(this);
 
         if(MainWindow == null || DrawingArea == null || AppBar == null)
index 90c8c9b..948beba 100644 (file)
@@ -1,8 +1,10 @@
 GOAL=tilemanager.exe
 SOURCES=$(wildcard *.cs)
 CSFLAGS=-debug -pkg:gtk-sharp -pkg:glade-sharp -pkg:gnome-sharp -r:System.Drawing
+RESOURCES=tiler.glade
+CSFLAGS+=$(foreach file,$(RESOURCES),-resource:$(file) )
 
-$(GOAL): $(SOURCES)
+$(GOAL): $(SOURCES) $(RESOURCES)
        mcs $(CSFLAGS) $(SOURCES) -out:$(GOAL)
 
 clean: