[gjs/gnome-3-36] overrides/Gtk: Adjust gtk_container_child_set_property() check



commit 12fba8c6092971eeb223b744c54107554c9664db
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri May 15 00:09:31 2020 +0200

    overrides/Gtk: Adjust gtk_container_child_set_property() check
    
    GTK4 now removed GtkContainer altogether rather than just child
    properties.

 modules/core/overrides/Gtk.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/core/overrides/Gtk.js b/modules/core/overrides/Gtk.js
index dde10db7..9839c0ba 100644
--- a/modules/core/overrides/Gtk.js
+++ b/modules/core/overrides/Gtk.js
@@ -37,7 +37,7 @@ function _init() {
     let {GtkWidgetClass} = Legacy.defineGtkLegacyObjects(GObject, Gtk);
     Gtk.Widget.prototype.__metaclass__ = GtkWidgetClass;
 
-    if (Gtk.Container.prototype.child_set_property) {
+    if (Gtk.Container && Gtk.Container.prototype.child_set_property) {
         Gtk.Container.prototype.child_set_property = function (child, property, value) {
             GjsPrivate.gtk_container_child_set_property(this, child, property, value);
         };


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]