From: Matthias Braun Date: Mon, 22 Nov 2004 01:58:47 +0000 (+0000) Subject: embed glade file so that you can run the tilemanager from every dir X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=94f162ad9e676f3b326c5fec44f0bb69bd9e72a7;p=supertux.git embed glade file so that you can run the tilemanager from every dir SVN-Revision: 2130 --- diff --git a/contrib/tilemanager/Application.cs b/contrib/tilemanager/Application.cs index 31957be51..66550e54c 100644 --- a/contrib/tilemanager/Application.cs +++ b/contrib/tilemanager/Application.cs @@ -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) diff --git a/contrib/tilemanager/Makefile b/contrib/tilemanager/Makefile index 90c8c9be2..948bebae3 100644 --- a/contrib/tilemanager/Makefile +++ b/contrib/tilemanager/Makefile @@ -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: