From 16e179b235ec38c7a2ae660c612400fa330af2d7 Mon Sep 17 00:00:00 2001 From: jylefort Date: Wed, 21 Dec 2005 16:13:23 +0000 Subject: 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 --- x11/gnome-panel/Makefile | 1 + .../files/patch-gnome-panel_egg-recent-model.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 x11/gnome-panel/files/patch-gnome-panel_egg-recent-model.c (limited to 'x11/gnome-panel') diff --git a/x11/gnome-panel/Makefile b/x11/gnome-panel/Makefile index 0b16b0d85cd..3341f4311e6 100644 --- a/x11/gnome-panel/Makefile +++ b/x11/gnome-panel/Makefile @@ -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 diff --git a/x11/gnome-panel/files/patch-gnome-panel_egg-recent-model.c b/x11/gnome-panel/files/patch-gnome-panel_egg-recent-model.c new file mode 100644 index 00000000000..c74812db845 --- /dev/null +++ b/x11/gnome-panel/files/patch-gnome-panel_egg-recent-model.c @@ -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); -- cgit