2005-10-08 Ben Maurer <bmaurer@ximian.com>

* glade/XML.custom: Do not look at inherited custom
	attrs. Increases performance.

	* glib/SignalAttribute.cs: Add AttributeUsage attr to increase
	perf and compiler checking


svn path=/trunk/gtk-sharp/; revision=51481
This commit is contained in:
Ben Maurer 2005-10-08 21:08:04 +00:00
parent 8900d1ccd7
commit 1be96c843d
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2005-10-08 Ben Maurer <bmaurer@ximian.com>
* glade/XML.custom: Do not look at inherited custom
attrs. Increases performance.
* glib/SignalAttribute.cs: Add AttributeUsage attr to increase
perf and compiler checking
2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* glib/MainContext.cs: added a Depth property to p/invoke g_main_depth.

View File

@ -270,7 +270,7 @@
static bool SignalFilter (System.Reflection.MemberInfo m, object filterCriteria)
{
string signame = (filterCriteria as string);
object[] attrs = m.GetCustomAttributes (typeof (GLib.SignalAttribute), true);
object[] attrs = m.GetCustomAttributes (typeof (GLib.SignalAttribute), false);
if (attrs.Length > 0)
{
foreach (GLib.SignalAttribute a in attrs)
@ -307,7 +307,7 @@
foreach (System.Reflection.FieldInfo field in fields)
{
object[] attrs = field.GetCustomAttributes (typeof (WidgetAttribute), true);
object[] attrs = field.GetCustomAttributes (typeof (WidgetAttribute), false);
if (attrs == null || attrs.Length == 0)
continue;
// The widget to field binding must be 1:1, so only check

View File

@ -25,6 +25,7 @@ namespace GLib {
using System;
[Serializable]
[AttributeUsage (AttributeTargets.Event, Inherited=false)]
public sealed class SignalAttribute : Attribute
{
private string cname;