diff --git a/AUTHORS b/AUTHORS index 2a892ef92..fd7d3e1e0 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,7 +5,7 @@ Documentation: psonek2@seznam.cz Duncan Mak Miguel de Icaza - jluke + John Luke Marques Johansson Iain McCoy eric@extremeboredom.net (Eric Butler) diff --git a/ChangeLog b/ChangeLog index 34d3c8ba0..2a65fbe7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-08-18 John Luke + + * AUTHORS: fix my name + * glade/XML.custom: remove doc comments (in monodoc) + add overload ctor for the most common case so far + [Fixes #62238] + 2004-08-18 John Luke * pango/Pango.metadata : hide a couple methods on Layout. diff --git a/glade/XML.custom b/glade/XML.custom index 722f845fd..a354e9ac1 100644 --- a/glade/XML.custom +++ b/glade/XML.custom @@ -39,9 +39,6 @@ [DllImport("gladesharpglue")] static extern IntPtr gtksharp_glade_xml_get_filename (IntPtr raw); - /// Filename Property - /// Gets the filename used to create this GladeXML object - /// public string Filename { get { string ret; @@ -59,8 +56,6 @@ } } - /// Indexer of widgets - /// Acts like GetWidget public Gtk.Widget this [string name] { get { return GetWidget (name); @@ -94,9 +89,6 @@ [DllImport("libglade-2.0-0.dll")] static extern IntPtr glade_xml_new_from_buffer(byte[] buffer, int size, string root, string domain); - /// Creates a Glade.XML object from a Stream - /// Reads the contents of the stream and parses it. It must be in - /// correct Glade format public XML (System.IO.Stream s, string root, string domain) : base (IntPtr.Zero) { if (GetType() != typeof (XML)) @@ -111,15 +103,14 @@ Raw = glade_xml_new_from_buffer(buffer, size, root, domain); } - /// Creates a Glade.XML object from a resource - /// Reads the contents of the resource in the - /// given assembly and parses it. If the assembly is null, - /// the current assembly will be used. It must be in - /// correct Glade format + public XML (string resource_name, string root) : this (System.Reflection.Assembly.GetEntryAssembly (), resource_name, root, null) + { + } + public XML (System.Reflection.Assembly assembly, string resource_name, string root, string domain) : base (IntPtr.Zero) { if (GetType() != typeof (XML)) - throw new InvalidOperationException ("Can't chain to this constructor from subclasses."); + throw new InvalidOperationException ("Cannot chain to this constructor from subclasses."); if (assembly == null) assembly = System.Reflection.Assembly.GetCallingAssembly (); @@ -137,10 +128,6 @@ } /* signal autoconnection using reflection */ - - /// Automatically connect signals - /// Connects the signals defined in the glade file with handler methods - /// provided by the given object. public void Autoconnect (object handler) { BindFields (handler); @@ -148,9 +135,6 @@ sc.Autoconnect (); } - /// Automatically connect signals - /// Connects the signals defined in the glade file with static handler - /// methods provided by the given type. public void Autoconnect (Type handler_class) { BindFields (handler_class);