GtkSharp/gnome/Modules.cs
Rachel Hestilow 9693ee998e 2002-07-05 Rachel Hestilow <hestilow@ximian.com>
* 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
2002-07-05 20:22:21 +00:00

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 ()); }
}
}
}