2005-02-03 Mike Kestner <mkestner@novell.com>
* glib/ObjectManager.cs (GetValidParentType): return null if G_TYPE_INVALID is returned from glue. [Fixes #72150] svn path=/trunk/gtk-sharp/; revision=40063
This commit is contained in:
parent
5ea462cee4
commit
f120479d88
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-02-03 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* glib/ObjectManager.cs (GetValidParentType): return null if
|
||||||
|
G_TYPE_INVALID is returned from glue. [Fixes #72150]
|
||||||
|
|
||||||
2005-02-02 Mike Kestner <mkestner@novell.com>
|
2005-02-02 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* generator/Signal.cs : kill unnecessary BaseName prop.
|
* generator/Signal.cs : kill unnecessary BaseName prop.
|
||||||
|
|
|
@ -139,6 +139,8 @@ namespace GLib {
|
||||||
// We will always end up at GObject and will break this loop
|
// We will always end up at GObject and will break this loop
|
||||||
while (true) {
|
while (true) {
|
||||||
type_id = gtksharp_get_parent_type (type_id);
|
type_id = gtksharp_get_parent_type (type_id);
|
||||||
|
if (type_id == 0)
|
||||||
|
return null;
|
||||||
typename = Marshal.PtrToStringAnsi (gtksharp_get_type_name_for_id (type_id));
|
typename = Marshal.PtrToStringAnsi (gtksharp_get_type_name_for_id (type_id));
|
||||||
if (types.ContainsKey (typename))
|
if (types.ContainsKey (typename))
|
||||||
mangled = (string)types[typename];
|
mangled = (string)types[typename];
|
||||||
|
|
Loading…
Reference in a new issue