9693ee998e
* 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
22 lines
495 B
C#
22 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 ()); }
|
|
}
|
|
}
|
|
}
|
|
|