diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-11 03:06:33 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-11 03:06:33 +0800 |
commit | 8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6 (patch) | |
tree | 7ef8f72f080304bb0fb8e5dac88cb0e845b34482 /devel/gio-fam-backend/files | |
parent | 1cfe030f4afd1b8f12c49a6858885fc206de22bb (diff) | |
download | marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar.gz marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar.bz2 marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar.lz marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar.xz marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.tar.zst marcuscom-ports-8e29d6a3255eb013f67eaa9b4d2c06feab61f0a6.zip |
Update to 2.16.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10656 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gio-fam-backend/files')
-rw-r--r-- | devel/gio-fam-backend/files/patch-fam | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/devel/gio-fam-backend/files/patch-fam b/devel/gio-fam-backend/files/patch-fam new file mode 100644 index 000000000..ebd87f218 --- /dev/null +++ b/devel/gio-fam-backend/files/patch-fam @@ -0,0 +1,53 @@ +--- gio/fam/fam-helper.c.orig 2008-03-10 13:50:08.000000000 -0400 ++++ gio/fam/fam-helper.c 2008-03-10 13:50:29.000000000 -0400 +@@ -181,6 +185,18 @@ _fam_sub_startup (void) + return TRUE; + } + ++void ++_fam_sub_shutdown (void) ++{ ++ if (fam_connection != NULL) { ++ FAMClose (fam_connection); ++ g_free (fam_connection); ++ g_source_remove (fam_watch_id); ++ fam_watch_id = 0; ++ fam_connection = NULL; ++ } ++} ++ + fam_sub* + _fam_sub_add (const gchar* pathname, + gboolean directory, +--- gio/fam/fam-helper.h.orig 2008-03-10 13:50:12.000000000 -0400 ++++ gio/fam/fam-helper.h 2008-03-10 13:50:29.000000000 -0400 +@@ -28,6 +28,7 @@ + typedef struct _fam_sub fam_sub; + + gboolean _fam_sub_startup (void); ++void _fam_sub_shutdown (void); + fam_sub* _fam_sub_add (const gchar* pathname, + gboolean directory, + gpointer user_data); +--- gio/fam/gfamdirectorymonitor.c.orig 2008-03-10 13:50:21.000000000 -0400 ++++ gio/fam/gfamdirectorymonitor.c 2008-03-10 13:50:29.000000000 -0400 +@@ -53,6 +53,8 @@ g_fam_directory_monitor_finalize (GObjec + fam_monitor->sub = NULL; + } + ++ _fam_sub_shutdown (); ++ + if (G_OBJECT_CLASS (g_fam_directory_monitor_parent_class)->finalize) + (*G_OBJECT_CLASS (g_fam_directory_monitor_parent_class)->finalize) (object); + } +--- gio/fam/gfamfilemonitor.c.orig 2008-03-10 13:50:18.000000000 -0400 ++++ gio/fam/gfamfilemonitor.c 2008-03-10 13:50:29.000000000 -0400 +@@ -52,6 +52,8 @@ g_fam_file_monitor_finalize (GObject *ob + fam_monitor->sub = NULL; + } + ++ _fam_sub_shutdown (); ++ + if (G_OBJECT_CLASS (g_fam_file_monitor_parent_class)->finalize) + (*G_OBJECT_CLASS (g_fam_file_monitor_parent_class)->finalize) (object); + } |