mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Rachel Hestilow](/assets/img/avatar_default.png)
* configure.in: Conditionally compile Gnome. * parser/gapi_pp.pl: Handle line breaks in function declarations. * parser/gapi2xml.pl: Handle non-literals in property definitions. * glue/program.c: Added. * glue/Makefile.am: Add program.c (conditionally compiled). Update INCLUDES. * gnome/Makefile.in: Conditionally compile this. * gnome/Program.custom, Modules.cs: Added. * samples/Makefile.in: Conditionally compile gnome example. * samples/GnomeHelloWorld.cs: Use Gnome.Program. svn path=/trunk/gtk-sharp/; revision=5609
23 lines
495 B
C#
23 lines
495 B
C#
namespace Gnome
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
class Modules
|
|
{
|
|
[DllImport("libgnome-2.so.0")]
|
|
static extern System.IntPtr libgnome_module_info_get ();
|
|
[DllImport("libgnomeui-2.so.0")]
|
|
static extern System.IntPtr libgnomeui_module_info_get ();
|
|
|
|
public static ModuleInfo LibGnome {
|
|
get { return new ModuleInfo (libgnome_module_info_get ()); }
|
|
}
|
|
|
|
public static ModuleInfo UI {
|
|
get { return new ModuleInfo (libgnomeui_module_info_get ()); }
|
|
}
|
|
}
|
|
}
|
|
|