[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: gattrib.c



  User: pcjc2   
  Date: 07/06/09 10:54:33

  Modified:    .        gattrib.c
  Log:
  Added call to g_thread_init() in Gschem and Gattrib.
  
  
  
  Gschem and Gattrib aren't threaded, but some of GTK's file chooser
  
  backends uses threading so we need to call g_thread_init().
  
  
  
  
  
  
  Revision  Changes    Path
  1.24                 eda/geda/gaf/gattrib/src/gattrib.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: gattrib.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/gattrib.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- gattrib.c	18 Apr 2007 01:16:10 -0000	1.23
  +++ gattrib.c	9 Jun 2007 14:54:33 -0000	1.24
  @@ -126,7 +126,13 @@
     PAGE *p_local;
     char *logfile;
     
  -
  +#ifdef HAVE_GTHREAD
  +  /* Gattrib isn't threaded, but some of GTK's file chooser
  +   * backends uses threading so we need to call g_thread_init().
  +   * GLib requires threading be initialised before any other GLib
  +   * functions are called. Do it now if its not already setup.  */
  +  if (!g_thread_supported ()) g_thread_init (NULL);
  +#endif
     
     /* Initialize gEDA stuff */
     libgeda_init();
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs