2003-10-07 Mike Kestner <mkestner@ximian.com>

* generator/ObjectGen.cs (Generate): check sigs.Count in addition
	to the null check to determine if the signals hash should be
	generated.

svn path=/trunk/gtk-sharp/; revision=18718
This commit is contained in:
Mike Kestner 2003-10-07 22:21:45 +00:00
parent ec59bb6398
commit c9580f2355
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2003-10-07 Mike Kestner <mkestner@ximian.com>
* generator/ObjectGen.cs (Generate): check sigs.Count in addition
to the null check to determine if the signals hash should be
generated.
2003-10-07 Mike Kestner <mkestner@ximian.com>
* parser/gapi2xml.pl : look for ");" at the end of property

View file

@ -112,11 +112,11 @@ namespace GtkSharp.Generation {
GenCtors (gen_info);
GenProperties (gen_info);
bool has_sigs = (sigs != null);
if (!has_sigs) {
bool has_sigs = (sigs != null && sigs.Count > 0);
if (!has_sigs && interfaces != null) {
foreach (string iface in interfaces) {
ClassBase igen = table.GetClassGen (iface);
if (igen.Signals != null) {
if (igen != null && igen.Signals != null) {
has_sigs = true;
break;
}