2004-08-18 John Luke <john.luke@gmail.com>
* AUTHORS: fix my name * glade/XML.custom: remove doc comments (in monodoc) add overload ctor for the most common case so far [Fixes #62238] svn path=/trunk/gtk-sharp/; revision=32503
This commit is contained in:
parent
95bccc89f3
commit
8566d2376a
3 changed files with 13 additions and 22 deletions
2
AUTHORS
2
AUTHORS
|
@ -5,7 +5,7 @@ Documentation:
|
||||||
psonek2@seznam.cz
|
psonek2@seznam.cz
|
||||||
Duncan Mak
|
Duncan Mak
|
||||||
Miguel de Icaza
|
Miguel de Icaza
|
||||||
jluke
|
John Luke <john.luke@gmail.com>
|
||||||
Marques Johansson <marques@displague.com>
|
Marques Johansson <marques@displague.com>
|
||||||
Iain McCoy <iain@mccoy.id.au>
|
Iain McCoy <iain@mccoy.id.au>
|
||||||
eric@extremeboredom.net (Eric Butler)
|
eric@extremeboredom.net (Eric Butler)
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2004-08-18 John Luke <john.luke@gmail.com>
|
||||||
|
|
||||||
|
* 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 <john.luke@gmail.com>
|
2004-08-18 John Luke <john.luke@gmail.com>
|
||||||
|
|
||||||
* pango/Pango.metadata : hide a couple methods on Layout.
|
* pango/Pango.metadata : hide a couple methods on Layout.
|
||||||
|
|
|
@ -39,9 +39,6 @@
|
||||||
[DllImport("gladesharpglue")]
|
[DllImport("gladesharpglue")]
|
||||||
static extern IntPtr gtksharp_glade_xml_get_filename (IntPtr raw);
|
static extern IntPtr gtksharp_glade_xml_get_filename (IntPtr raw);
|
||||||
|
|
||||||
/// <summary>Filename Property</summary>
|
|
||||||
/// <remarks>Gets the filename used to create this GladeXML object
|
|
||||||
/// </remarks>
|
|
||||||
public string Filename {
|
public string Filename {
|
||||||
get {
|
get {
|
||||||
string ret;
|
string ret;
|
||||||
|
@ -59,8 +56,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Indexer of widgets</summary>
|
|
||||||
/// <remarks>Acts like GetWidget</remarks>
|
|
||||||
public Gtk.Widget this [string name] {
|
public Gtk.Widget this [string name] {
|
||||||
get {
|
get {
|
||||||
return GetWidget (name);
|
return GetWidget (name);
|
||||||
|
@ -94,9 +89,6 @@
|
||||||
[DllImport("libglade-2.0-0.dll")]
|
[DllImport("libglade-2.0-0.dll")]
|
||||||
static extern IntPtr glade_xml_new_from_buffer(byte[] buffer, int size, string root, string domain);
|
static extern IntPtr glade_xml_new_from_buffer(byte[] buffer, int size, string root, string domain);
|
||||||
|
|
||||||
/// <summary>Creates a Glade.XML object from a Stream</summary>
|
|
||||||
/// <remarks>Reads the contents of the stream and parses it. It must be in
|
|
||||||
/// correct Glade format</remarks>
|
|
||||||
public XML (System.IO.Stream s, string root, string domain) : base (IntPtr.Zero)
|
public XML (System.IO.Stream s, string root, string domain) : base (IntPtr.Zero)
|
||||||
{
|
{
|
||||||
if (GetType() != typeof (XML))
|
if (GetType() != typeof (XML))
|
||||||
|
@ -111,15 +103,14 @@
|
||||||
Raw = glade_xml_new_from_buffer(buffer, size, root, domain);
|
Raw = glade_xml_new_from_buffer(buffer, size, root, domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Creates a Glade.XML object from a resource</summary>
|
public XML (string resource_name, string root) : this (System.Reflection.Assembly.GetEntryAssembly (), resource_name, root, null)
|
||||||
/// <remarks>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</remarks>
|
|
||||||
public XML (System.Reflection.Assembly assembly, string resource_name, string root, string domain) : base (IntPtr.Zero)
|
public XML (System.Reflection.Assembly assembly, string resource_name, string root, string domain) : base (IntPtr.Zero)
|
||||||
{
|
{
|
||||||
if (GetType() != typeof (XML))
|
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)
|
if (assembly == null)
|
||||||
assembly = System.Reflection.Assembly.GetCallingAssembly ();
|
assembly = System.Reflection.Assembly.GetCallingAssembly ();
|
||||||
|
@ -137,10 +128,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* signal autoconnection using reflection */
|
/* signal autoconnection using reflection */
|
||||||
|
|
||||||
/// <summary>Automatically connect signals</summary>
|
|
||||||
/// <remarks>Connects the signals defined in the glade file with handler methods
|
|
||||||
/// provided by the given object.</remarks>
|
|
||||||
public void Autoconnect (object handler)
|
public void Autoconnect (object handler)
|
||||||
{
|
{
|
||||||
BindFields (handler);
|
BindFields (handler);
|
||||||
|
@ -148,9 +135,6 @@
|
||||||
sc.Autoconnect ();
|
sc.Autoconnect ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Automatically connect signals</summary>
|
|
||||||
/// <remarks>Connects the signals defined in the glade file with static handler
|
|
||||||
/// methods provided by the given type.</remarks>
|
|
||||||
public void Autoconnect (Type handler_class)
|
public void Autoconnect (Type handler_class)
|
||||||
{
|
{
|
||||||
BindFields (handler_class);
|
BindFields (handler_class);
|
||||||
|
|
Loading…
Reference in a new issue