openbsd-ports/games/crack-attack/patches/patch-src_gtk-gui_gui_main_cxx
ajacoutot e706554bf8 Import crack-attack-1.1.14
A free OpenGL game based on the Super Nintendo classic Tetris Attack.
Slowly, your stack of blocks grows from the bottom, and you've got to
make sure it never reaches the top. Because, once it does, you lose!
To eliminate blocks from the stack, line up at least three of one color,
horizontally or vertically.
To add to the excitement, chunks of red garbage will fall from above. It
is impossible to eliminate this garbage directly. However, if you
eliminate any blocks which are touching the garbage, the garbage will
shatter into normal, run-of-the-mill blocks.


from Mattieu Baptiste <mattieu.b at free dot fr> with some tweaks by me
2007-10-19 19:31:33 +00:00

24 lines
774 B
Plaintext

$OpenBSD: patch-src_gtk-gui_gui_main_cxx,v 1.1.1.1 2007/10/19 19:31:33 ajacoutot Exp $
--- src/gtk-gui/gui_main.cxx.orig Sun May 1 05:04:12 2005
+++ src/gtk-gui/gui_main.cxx Fri Oct 19 14:26:56 2007
@@ -50,6 +50,10 @@ using namespace std;
int glut_argc;
char **glut_argv;
+static void destroy_window(GtkObject *object, gpointer data) {
+ gtk_main_quit();
+}
+
/*
* Documentation
* html tables don't work right in explorer
@@ -76,6 +80,8 @@ int gui_main ( int argc, char **argv )
winCrackAttackSplash = create_winCrackAttackSplash ();
gui_data_read(winCrackAttackSplash);
gtk_widget_show (winCrackAttackSplash);
+ g_signal_connect(GTK_OBJECT(winCrackAttackSplash), "destroy",
+ G_CALLBACK(destroy_window), NULL);
gtk_main ();
return 0;