--- alsa_plugin/Makefile.old 2005-02-28 20:54:40.718370614 -0800 +++ alsa_plugin/Makefile 2005-02-28 20:55:54.048853201 -0800 @@ -4,6 +4,11 @@ GUILDFLAGS = `gtk-config --libs` OBJECTS = gtk1_gui.o endif +ifeq ($(GRAPHICAL_INTERFACE),gtk2) + GUICFLAGS = -D_GTK2 `pkg-config --cflags gtk+-2.0` + GUILDFLAGS = `pkg-config --libs gtk+-2.0` + OBJECTS = gtk1_gui.o +endif ifeq ($(GRAPHICAL_INTERFACE),qt3) GUICFLAGS = -DUSE_QT -I$(QTDIR)/include -I$(QTDIR)/mkspecs/linux-g++ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT GUILDFLAGS = -L$(QTDIR)/lib -lqt-mt @@ -46,7 +51,6 @@ $(PLUGIN): $(OBJECTS) $(LD) $(LDFLAGS) -o $@ $(OBJECTS) - strip --strip-all $@ instructions: $(warning please copy $(PLUGIN) in the plugins/ folder of the emulator) --- alsa_plugin/gtk1_gui.cpp.old 2005-02-28 20:54:50.072190695 -0800 +++ alsa_plugin/gtk1_gui.cpp 2005-02-28 20:55:45.015049773 -0800 @@ -56,7 +56,7 @@ void CreateGUIObject( Plugin_Graphical_Interface **GUI, Plugin_Audio_Driver *drv ) { - ( ( GTK1_Interface * )( *GUI ) ) = new GTK1_Interface( drv ); + *GUI = dynamic_cast(new GTK1_Interface( drv )); } void DeleteGUIObject( Plugin_Graphical_Interface **GUI )