[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sat Sep 23 17:12:49 UTC 2006
SVN commit 587695 by rdale:
* Fixed crash when a class didn't have any signals defined
CCMAIL: kde-bindings at kde.org
M +4 -0 ChangeLog
M +3 -4 qyoto/Qyoto.cs
--- trunk/playground/bindings/kimono/ChangeLog #587694:587695
@@ -1,3 +1,7 @@
+2006-09-23 Richard Dale <rdale at foton.es>
+
+ * Fixed crash when a class didn't have any signals defined
+
2006-09-23 Arno Rehn <arno at arnorehn.de>
* The signatures for slots and signals are now autogenerated, so it's not necessary
--- trunk/playground/bindings/kimono/qyoto/Qyoto.cs #587694:587695
@@ -163,7 +163,7 @@
public static Hashtable GetSignalSignatures(Type t) {
Hashtable signals = new Hashtable();
if (IsSmokeClass(t)) {
- return null;
+ return signals;
}
Type iface;
@@ -171,13 +171,13 @@
iface = GetSignalsInterface(t);
}
catch {
- return null;
+ return signals;
}
MethodInfo[] mis = iface.GetMethods();
/// the interface has no signals...
if (mis.Length == 0)
- return null;
+ return signals;
foreach (MethodInfo mi in mis) {
object[] attributes = mi.GetCustomAttributes(typeof(Q_SIGNAL), false);
@@ -308,7 +308,6 @@
string className = t.ToString();
Hashtable slotTable = (Hashtable)classes[className];
-
ICollection slots;
if (slotTable != null)
More information about the Kde-bindings
mailing list