diff options
Diffstat (limited to 'crack-attack-1.1.14-rhbz1065649.patch')
-rw-r--r-- | crack-attack-1.1.14-rhbz1065649.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/crack-attack-1.1.14-rhbz1065649.patch b/crack-attack-1.1.14-rhbz1065649.patch new file mode 100644 index 000000000000..318016a1f345 --- /dev/null +++ b/crack-attack-1.1.14-rhbz1065649.patch @@ -0,0 +1,30 @@ +--- crack-attack-1.1.14/src/gtk-gui/gui_main.cxx~ 2005-05-13 21:55:24.000000000 +0200 ++++ crack-attack-1.1.14/src/gtk-gui/gui_main.cxx 2014-06-14 10:24:32.738154080 +0200 +@@ -50,6 +50,18 @@ + int glut_argc; + char **glut_argv; + ++/* ++ * Call this when the window is unexpectedly destroyed to make sure the ++ * hidden gui process doesn't hang around in the background. ++ */ ++static void destroy_window(GtkObject *object, gpointer data) { ++#ifdef DEVELOPMENT ++ g_print("\nOh no! We've been nexpectedly destroyed! :(\n"); ++#endif ++ gtk_main_quit(); ++} ++ ++ + /* + * Documentation + * html tables don't work right in explorer +@@ -76,6 +88,8 @@ + 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; |