7c3b168202
Atomix is a little mind game where you have to build molecules out of single atoms. These are laying around between the walls and obstacles on the playfield. Once you have pushed an atom in one direction it moves until it hits an obstacle or another atom. It needs some thinking how to construct complex molecules with this atom behaviour. The game is inspired by the original Amiga version. tested by Markus Lude feedback & ok merdely@
26 lines
948 B
Plaintext
26 lines
948 B
Plaintext
$OpenBSD: patch-src_main_c,v 1.1.1.1 2008/01/14 23:21:04 simon Exp $
|
|
--- src/main.c.orig Sun Jan 13 01:47:06 2008
|
|
+++ src/main.c Sun Jan 13 01:53:34 2008
|
|
@@ -149,6 +149,11 @@ static void verb_EditPreferences_cb (BonoboUIComponent
|
|
#endif
|
|
}
|
|
|
|
+static void verb_CloseAbout_cb (GtkWidget *dialog, gpointer user_data)
|
|
+{
|
|
+ gtk_widget_destroy (dialog);
|
|
+}
|
|
+
|
|
static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data,
|
|
const char *cname)
|
|
{
|
|
@@ -175,6 +180,9 @@ static void verb_HelpAbout_cb (BonoboUIComponent *uic,
|
|
gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors);
|
|
gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists);
|
|
gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits"));
|
|
+
|
|
+ g_signal_connect (dlg, "close", G_CALLBACK(verb_CloseAbout_cb), NULL);
|
|
+ g_signal_connect (dlg, "response", G_CALLBACK(verb_CloseAbout_cb), NULL);
|
|
|
|
gtk_widget_show (dlg);
|
|
}
|