f-spot r3906 - in trunk: . src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3906 - in trunk: . src
- Date: Mon, 12 May 2008 13:25:59 +0100 (BST)
Author: sdelcroix
Date: Mon May 12 12:25:58 2008
New Revision: 3906
URL: http://svn.gnome.org/viewvc/f-spot?rev=3906&view=rev
Log:
2008-05-12 Stephane Delcroix <sdelcroix novell com>
* src/GConfPreferenceBackend.cs: call g_type_init as the binding
does not. Fixes bgo #481741.
Modified:
trunk/ChangeLog
trunk/src/GConfPreferenceBackend.cs
Modified: trunk/src/GConfPreferenceBackend.cs
==============================================================================
--- trunk/src/GConfPreferenceBackend.cs (original)
+++ trunk/src/GConfPreferenceBackend.cs Mon May 12 12:25:58 2008
@@ -6,17 +6,24 @@
*
* This is free software. See COPYING for details.
*/
-
#if !NOGCONF
+using System.Runtime.InteropServices;
+
namespace FSpot
{
public class GConfPreferenceBackend : IPreferenceBackend
{
+ [DllImport("libgobject-2.0-0.dll")]
+ static extern void g_type_init ();
+
private static GConf.Client client;
private GConf.Client Client {
get {
- if (client == null)
+ if (client == null) {
+ //workaround for bgo #481741, but should be fixed upstream
+ g_type_init ();
client = new GConf.Client ();
+ }
return client;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]