From 4a0c68a70be35dcf42e9ff1d43f0a4e444cf8e50 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 3 Jan 2000 18:41:14 +0000 Subject: [PATCH] Distrib things. Readded resource support. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/forty/makefile.unx | 4 ++-- samples/grid/makefile.unx | 2 +- src/gtk/app.cpp | 19 +++++++++---------- src/gtk1/app.cpp | 19 +++++++++---------- 4 files changed, 21 insertions(+), 23 deletions(-) diff --git a/samples/forty/makefile.unx b/samples/forty/makefile.unx index e3bf7df3e0..0a689e8f1e 100644 --- a/samples/forty/makefile.unx +++ b/samples/forty/makefile.unx @@ -13,9 +13,9 @@ # under Linux. # -CC = gcc +CC = g++ -PROGRAM = drawing +PROGRAM = forty OBJECTS = $(PROGRAM).o canvas.o card.o game.o pile.o playerdg.o scoredg.o scorefil.o diff --git a/samples/grid/makefile.unx b/samples/grid/makefile.unx index 3c5fee199e..21cab3c677 100644 --- a/samples/grid/makefile.unx +++ b/samples/grid/makefile.unx @@ -15,7 +15,7 @@ CC = gcc -PROGRAM = grid +PROGRAM = test OBJECTS = $(PROGRAM).o diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 7bc83fdbd7..ba0fd8ed6b 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -476,17 +476,16 @@ bool wxApp::Initialize() wxPendingEventsLocker = new wxCriticalSection(); #endif -/* - wxTheFontNameDirectory = new wxFontNameDirectory; - wxTheFontNameDirectory->Initialize(); -*/ - wxTheColourDatabase = new wxColourDatabase( wxKEY_STRING ); wxTheColourDatabase->Initialize(); wxInitializeStockLists(); wxInitializeStockObjects(); +#if wxUSE_WX_RESOURCES + wxInitializeResourceSystem(); +#endif + wxModule::RegisterModules(); if (!wxModule::InitializeModules()) return FALSE; @@ -497,15 +496,15 @@ void wxApp::CleanUp() { wxModule::CleanUpModules(); +#if wxUSE_WX_RESOURCES + wxCleanUpResourceSystem(); +#endif + if (wxTheColourDatabase) delete wxTheColourDatabase; + wxTheColourDatabase = (wxColourDatabase*) NULL; -/* - if (wxTheFontNameDirectory) delete wxTheFontNameDirectory; - wxTheFontNameDirectory = (wxFontNameDirectory*) NULL; -*/ - wxDeleteStockObjects(); wxDeleteStockLists(); diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 7bc83fdbd7..ba0fd8ed6b 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -476,17 +476,16 @@ bool wxApp::Initialize() wxPendingEventsLocker = new wxCriticalSection(); #endif -/* - wxTheFontNameDirectory = new wxFontNameDirectory; - wxTheFontNameDirectory->Initialize(); -*/ - wxTheColourDatabase = new wxColourDatabase( wxKEY_STRING ); wxTheColourDatabase->Initialize(); wxInitializeStockLists(); wxInitializeStockObjects(); +#if wxUSE_WX_RESOURCES + wxInitializeResourceSystem(); +#endif + wxModule::RegisterModules(); if (!wxModule::InitializeModules()) return FALSE; @@ -497,15 +496,15 @@ void wxApp::CleanUp() { wxModule::CleanUpModules(); +#if wxUSE_WX_RESOURCES + wxCleanUpResourceSystem(); +#endif + if (wxTheColourDatabase) delete wxTheColourDatabase; + wxTheColourDatabase = (wxColourDatabase*) NULL; -/* - if (wxTheFontNameDirectory) delete wxTheFontNameDirectory; - wxTheFontNameDirectory = (wxFontNameDirectory*) NULL; -*/ - wxDeleteStockObjects(); wxDeleteStockLists(); -- 2.45.2