From 94f162ad9e676f3b326c5fec44f0bb69bd9e72a7 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 22 Nov 2004 01:58:47 +0000 Subject: [PATCH] embed glade file so that you can run the tilemanager from every dir SVN-Revision: 2130 --- contrib/tilemanager/Application.cs | 2 +- contrib/tilemanager/Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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: -- 2.11.0