mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 15:15:39 +00:00
d33dd8a15f
* gconf, sample/gconf: Added. * glue/combo.c: This was never added, add it now. * configure.in, makefile, sample/Makefile.in: Build new gconf bindings if gnome is enabled. svn path=/trunk/gtk-sharp/; revision=8389
32 lines
457 B
C#
32 lines
457 B
C#
namespace GConf
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
internal struct _NativeEntry
|
|
{
|
|
public string key;
|
|
public IntPtr value;
|
|
}
|
|
|
|
internal class _Entry
|
|
{
|
|
_NativeEntry native;
|
|
|
|
public _Entry (IntPtr raw)
|
|
{
|
|
native = (_NativeEntry) Marshal.PtrToStructure (raw, typeof (_NativeEntry));
|
|
}
|
|
|
|
public string Key
|
|
{
|
|
get { return native.key; }
|
|
}
|
|
|
|
internal IntPtr ValuePtr
|
|
{
|
|
get { return native.value; }
|
|
}
|
|
}
|
|
}
|