summaryrefslogtreecommitdiffstats
path: root/games/gnome-games/files/patch-aisleriot::sol.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-06 04:54:18 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-04-06 04:54:18 +0800
commit638b97f5a5d741cee963b662efa43f26ddf9d04c (patch)
treec4dfb23a4708ce0260562560cd232bdef6bb6711 /games/gnome-games/files/patch-aisleriot::sol.c
parent9062210343a87551bd420e59ca2d4e52f1365fe3 (diff)
downloadmarcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.gz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.bz2
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.lz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.xz
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.tar.zst
marcuscom-ports-638b97f5a5d741cee963b662efa43f26ddf9d04c.zip
Garbage collection GNOME 2.5. Next stop, GNOME 2.7.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2260 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'games/gnome-games/files/patch-aisleriot::sol.c')
-rw-r--r--games/gnome-games/files/patch-aisleriot::sol.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/games/gnome-games/files/patch-aisleriot::sol.c b/games/gnome-games/files/patch-aisleriot::sol.c
deleted file mode 100644
index 7a281c20a..000000000
--- a/games/gnome-games/files/patch-aisleriot::sol.c
+++ /dev/null
@@ -1,37 +0,0 @@
---- aisleriot/sol.c.orig Wed Oct 1 20:19:36 2003
-+++ aisleriot/sol.c Tue Nov 25 16:30:44 2003
-@@ -83,6 +83,15 @@
- #define DEFAULT_VARIATION "klondike.scm"
- #define GNOME_SESSION_BUG
-
-+gchar* game_file_to_variation (const gchar* file)
-+{
-+ char* p, *buf = g_path_get_basename(file);
-+
-+ if ((p = strrchr (buf, '.'))) *p = '\0';
-+
-+ return buf;
-+}
-+
- gchar* game_file_to_name (const gchar* file)
- {
- char* p, *buf = g_path_get_basename(file);
-@@ -545,14 +554,14 @@
- n_games = 0;
-
- for (i = 0; i < n_games; i++) {
-- gchar *game_name = game_file_to_name (game_dents[i]->d_name);
-- if (!strcasecmp (variation, game_name)) {
-+ gchar *game_variation = game_file_to_variation (game_dents[i]->d_name);
-+ if (!strcasecmp (variation, game_variation)) {
- dont_save = TRUE;
- start_game = g_strdup ((gchar*) game_dents[i]->d_name);
-- g_free (game_name);
-+ g_free (game_variation);
- break;
- }
-- g_free (game_name);
-+ g_free (game_variation);
- }
-
- gh_enter(argc, argv, main_prog);