diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-01 00:48:04 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-06-01 00:48:04 +0000 |
commit | 4cf4c8f57ee76ae6aa83d914870e96c74a0e61db (patch) | |
tree | e746af9784ff450c657a0c8f0fa8d84b2e451b8b /games/gnome-games/files/patch-gnect_src_prefs.c | |
parent | 7257e1c4a50ec4ef6645a88128b30ff8ffdabd3c (diff) |
Notes
Diffstat (limited to 'games/gnome-games/files/patch-gnect_src_prefs.c')
-rw-r--r-- | games/gnome-games/files/patch-gnect_src_prefs.c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games/gnome-games/files/patch-gnect_src_prefs.c b/games/gnome-games/files/patch-gnect_src_prefs.c new file mode 100644 index 000000000000..2737e28846a7 --- /dev/null +++ b/games/gnome-games/files/patch-gnect_src_prefs.c @@ -0,0 +1,51 @@ +--- gnect/src/prefs.c.orig Sun May 25 14:21:05 2003 ++++ gnect/src/prefs.c Sun May 25 14:21:15 2003 +@@ -264,40 +264,6 @@ + + + +-static void +-sanity_check(void) +-{ +- gchar *tileset; +- GError *error = NULL; +- +- tileset = gconf_client_get_string (gnect_gconf_client, +- "/apps/gnect/theme", &error); +- if (error) { +- GtkWidget *dialog; +- dialog = gtk_message_dialog_new (NULL, +- 0, +- GTK_MESSAGE_ERROR, +- GTK_BUTTONS_CLOSE, +- _("There was an error accessing GConf: %s"), +- error->message); +- gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); +- gtk_dialog_run(GTK_DIALOG(dialog)); +- exit(1); +- } else if (!tileset) { +- GtkWidget *dialog; +- dialog = gtk_message_dialog_new (NULL, +- 0, +- GTK_MESSAGE_ERROR, +- GTK_BUTTONS_CLOSE, +- _("The default configuration values could not be retrieved correctly. Please check your GConf configuration, specifically that the schemas are installed correctly")); +- gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); +- gtk_dialog_run(GTK_DIALOG(dialog)); +- exit(1); +- } else { +- g_free (tileset); +- } +-} +- + void + prefs_init (gint argc, gchar **argv) + { +@@ -313,7 +279,6 @@ + + gconf_init (argc, argv, NULL); + gnect_gconf_client = gconf_client_get_default (); +- sanity_check(); + gconf_client_add_dir (gnect_gconf_client, "/apps/gnect", + GCONF_CLIENT_PRELOAD_NONE, NULL); + |