mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 20:25:35 +00:00
Gtk.Container.gtksharp_container_base_forall & CellRenderer.gtksharp_cellrenderer_base_get_size: check if obj is null
This commit is contained in:
parent
ede043d466
commit
79db23fd80
|
@ -127,6 +127,8 @@ namespace Gtk
|
|||
}
|
||||
|
||||
var obj = TryGetObject (cell);
|
||||
if (obj == default)
|
||||
return;
|
||||
var parent = obj.NativeType;
|
||||
while ((parent = parent.GetBaseType ()) != GLib.GType.None) {
|
||||
|
||||
|
|
|
@ -137,6 +137,9 @@ namespace Gtk
|
|||
return;
|
||||
|
||||
var obj = TryGetObject(container);
|
||||
if (obj == default)
|
||||
return;
|
||||
|
||||
var parent = obj.NativeType;
|
||||
while ((parent = parent.GetBaseType()) != GLib.GType.None) {
|
||||
if (parent.ToString().StartsWith("__gtksharp_")) {
|
||||
|
|
Loading…
Reference in a new issue