astro/foxtrotgps: fix run crash

- Fix crash, retrieved from upstream

PR:		ports/179919
Submitted by:	Craig Whipp <crwhipp@gmail.com> (maintainer)
This commit is contained in:
William Grzybowski 2013-06-24 14:33:05 +00:00
parent 7fe96c1093
commit 8605273338
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321685
2 changed files with 22 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= foxtrotgps
PORTVERSION= 1.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= astro geography
MASTER_SITES= http://www.foxtrotgps.org/releases/

View file

@ -0,0 +1,21 @@
=== modified file 'src/main.c'
--- src/main.c 2013-01-06 01:48:33 +0000
+++ src/main.c 2013-06-12 04:48:57 +0000
@@ -77,7 +77,7 @@
if (!g_thread_supported ())
g_thread_init (NULL);
gdk_threads_init ();
-
+ gdk_threads_enter ();
gtk_init (&argc, &argv);
setlocale (LC_NUMERIC, "C");
@@ -203,7 +203,7 @@
gtk_main ();
-
+ gdk_threads_leave ();
return 0;
}