Lock ~/.recently-used. The lack of locking sometimes caused the

"Places -> Recent Documents" menu to be empty.

Reference:	http://bugzilla.gnome.org/show_bug.cgi?id=324710
This commit is contained in:
Jean-Yves Lefort 2005-12-21 16:13:23 +00:00
parent ade78ba123
commit 1b0b309078
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151766
4 changed files with 42 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= gnomepanel
PORTVERSION= 2.12.2
PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-panel/2.12

View File

@ -0,0 +1,20 @@
--- gnome-panel/egg-recent-model.c.orig Wed Dec 21 16:58:46 2005
+++ gnome-panel/egg-recent-model.c Wed Dec 21 16:59:03 2005
@@ -942,7 +942,7 @@
static gboolean
egg_recent_model_lock_file (FILE *file)
{
-#ifdef F_TLOCK
+#ifdef HAVE_LOCKF
int fd;
gint try = 5;
@@ -980,7 +980,7 @@
static gboolean
egg_recent_model_unlock_file (FILE *file)
{
-#ifdef F_TLOCK
+#ifdef HAVE_LOCKF
int fd;
rewind (file);

View File

@ -8,6 +8,7 @@
PORTNAME= gnomepanel
PORTVERSION= 2.12.2
PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-panel/2.12

View File

@ -0,0 +1,20 @@
--- gnome-panel/egg-recent-model.c.orig Wed Dec 21 16:58:46 2005
+++ gnome-panel/egg-recent-model.c Wed Dec 21 16:59:03 2005
@@ -942,7 +942,7 @@
static gboolean
egg_recent_model_lock_file (FILE *file)
{
-#ifdef F_TLOCK
+#ifdef HAVE_LOCKF
int fd;
gint try = 5;
@@ -980,7 +980,7 @@
static gboolean
egg_recent_model_unlock_file (FILE *file)
{
-#ifdef F_TLOCK
+#ifdef HAVE_LOCKF
int fd;
rewind (file);