diff --git a/ChangeLog b/ChangeLog index e20f334ca..5d9866be5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-07-07 Dan Winship + + * gnome/Gnome.metadata: opaquify ModuleInfo and hide the types + that are only used inside ModuleInfo, so we don't marshal the + function pointers into (incorrect) delegates. + + * gnome/Modules.cs: + * gnome/Program.custom: update for ModuleInfo being a class rather + than a struct now + 2005-07-02 Mike Kestner * generator/StructField.cs : fix name exception throw conditional. diff --git a/doc/en/Gnome/ModuleClassInitHook.xml b/doc/en/Gnome/ModuleClassInitHook.xml deleted file mode 100644 index 1c5d0eed3..000000000 --- a/doc/en/Gnome/ModuleClassInitHook.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - gnome-sharp - 2.6.0.0 - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - Called to perform any class specific setup that is required by each module. - To be added. - - - System.Delegate - - - - - - System.Void - - diff --git a/doc/en/Gnome/ModuleHook.xml b/doc/en/Gnome/ModuleHook.xml deleted file mode 100644 index faeb2fbd9..000000000 --- a/doc/en/Gnome/ModuleHook.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - gnome-sharp - 2.6.0.0 - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - - Called to perform some initialization in a module - (which could be either the main init function or the pre or post argument parsing phase). - - The instance which is being initialized. - The current module's structure. - To be added. - - - System.Delegate - - - - - - - - System.Void - - diff --git a/doc/en/Gnome/ModuleInfo.xml b/doc/en/Gnome/ModuleInfo.xml index 2389870b5..8a5aebe74 100644 --- a/doc/en/Gnome/ModuleInfo.xml +++ b/doc/en/Gnome/ModuleInfo.xml @@ -1,5 +1,5 @@ - + gnome-sharp @@ -12,50 +12,13 @@ To be added - System.ValueType + GLib.Opaque - - - Field - - Gnome.ModuleInfo - - - - To be added - To be added - - - - - Method - - Gnome.ModuleInfo - - - - - - To be added - To be added: an object of type 'IntPtr' - To be added: an object of type 'Gnome.ModuleInfo' - To be added - - - - - Property - - Gnome.ModuleRequirement - - - To be added - To be added: an object of type 'Gnome.ModuleRequirement' - To be added - - + + + Property @@ -69,95 +32,34 @@ Returns the native value for . - - - Field - - System.String - + + + + + + + + + + + + + + Constructor + - To be added - To be added - - - - - Field - - System.String - - - - - To be added - To be added - - - - - Field - - System.String - - - - - To be added - To be added - - - - - Field - - System.String - - - - - To be added - To be added - - - - - Method - - GLib.Value - - - - - - To be added. + To be added. To be added. - To be added. To be added. - - - Method - - Gnome.ModuleInfo - - - - - - To be added. - To be added. - To be added. - To be added. - - - - + + Property - Gnome.ModuleHook + System.String To be added. @@ -165,11 +67,11 @@ To be added. - - + + Property - Gnome.ModuleHook + System.String To be added. @@ -177,35 +79,11 @@ To be added. - - + + Property - Gnome.ModuleHook - - - To be added. - To be added. - To be added. - - - - - Property - - Gnome.ModuleInitHook - - - To be added. - To be added. - To be added. - - - - - Property - - Gnome.ModuleClassInitHook + System.String To be added. diff --git a/doc/en/Gnome/ModuleInitHook.xml b/doc/en/Gnome/ModuleInitHook.xml deleted file mode 100644 index b9cf2df1a..000000000 --- a/doc/en/Gnome/ModuleInitHook.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - gnome-sharp - 2.6.0.0 - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - - Called to allow a module to do any pre-initialization it might need to do - prior to having arguments parsed by the controlling parent module. - - The current module's structure. - - The parent module will do the argument parsing for all modules in the hierarchy. - - - - System.Delegate - - - - - - - System.Void - - diff --git a/doc/en/Gnome/ModuleRequirement.xml b/doc/en/Gnome/ModuleRequirement.xml deleted file mode 100644 index 89212a23c..000000000 --- a/doc/en/Gnome/ModuleRequirement.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - gnome-sharp - - - 2.6.0.0 - - Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. - - To be added - To be added - - - System.ValueType - - - - - - Field - - Gnome.ModuleRequirement - - - - To be added - To be added - - - - - Method - - Gnome.ModuleRequirement - - - - - - To be added - To be added: an object of type 'IntPtr' - To be added: an object of type 'Gnome.ModuleRequirement' - To be added - - - - - Property - - Gnome.ModuleInfo - - - To be added - To be added: an object of type 'Gnome.ModuleInfo' - To be added - - - - - Field - - System.String - - - - - To be added - To be added - - - - diff --git a/doc/en/index.xml b/doc/en/index.xml index cffa1b85f..2bf831e9e 100644 --- a/doc/en/index.xml +++ b/doc/en/index.xml @@ -1408,7 +1408,6 @@ - @@ -1496,9 +1495,6 @@ - - - diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 5ecf9a9b5..eafc4fed7 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -1,5 +1,8 @@ + 1 + 1 + 1 (int)Gtk.ResponseType.Cancel 1 public @@ -16,6 +19,10 @@ 1 1 const-gchar* + 1 + public + public + public const-gchar* Base const-char* @@ -139,6 +146,7 @@ GObject GObject 1 + 1 const-gchar* 1 1 @@ -153,7 +161,7 @@ GnomeCanvasPathDef* true true - private + 1 const-gchar* - 1 + private diff --git a/gnome/Modules.cs b/gnome/Modules.cs index be1ada352..470fb769a 100644 --- a/gnome/Modules.cs +++ b/gnome/Modules.cs @@ -29,13 +29,13 @@ namespace Gnome public static ModuleInfo LibGnome { get { - return ModuleInfo.New (libgnome_module_info_get ()); + return new ModuleInfo (libgnome_module_info_get ()); } } public static ModuleInfo UI { get { - return ModuleInfo.New (libgnomeui_module_info_get ()); + return new ModuleInfo (libgnomeui_module_info_get ()); } } } diff --git a/gnome/Program.custom b/gnome/Program.custom index 853f378ec..5b2997496 100644 --- a/gnome/Program.custom +++ b/gnome/Program.custom @@ -34,7 +34,7 @@ struct PropertyArg { [DllImport("gnomesharpglue-2")] static extern System.IntPtr -gtksharp_gnome_program_init (string app_id, string app_version, ref ModuleInfo module, int argc, string[] argv, int nargs, PropertyArg[] args); +gtksharp_gnome_program_init (string app_id, string app_version, IntPtr module, int argc, string[] argv, int nargs, PropertyArg[] args); public Program (string app_id, string app_version, ModuleInfo module, string[] argv, params object[] props) : base (IntPtr.Zero) { @@ -68,7 +68,7 @@ public Program (string app_id, string app_version, ModuleInfo module, string[] a /* FIXME: Is there a way to access this in .NET? */ new_argv[0] = app_id; Array.Copy (argv, 0, new_argv, 1, argv.Length); - Raw = gtksharp_gnome_program_init (app_id, app_version, ref module, new_argv.Length, new_argv, nargs, args); + Raw = gtksharp_gnome_program_init (app_id, app_version, module.Handle, new_argv.Length, new_argv, nargs, args); // // Dynamically reset the signal handlers, because Gnome overwrites them