@@ -0,0 +1,1417 @@
+from gi.repository import Gtk%0Afrom gi.repository import GObject%0A%0A%0Aclass coalaScrolledWindow(Gtk.ScrolledWindow):%0A%0A    __gtype_name__ = 'coalaScrolledWindow'%0A%0A    max_contentwidth = GObject.property(type=int,%0A                                       default=-1,%0A                                       flags=GObject.PARAM_READWRITE)%0A    max_contentheight = GObject.property(type=int,%0A                                        default=-1,%0A                                        flags=GObject.PARAM_READWRITE)%0A%0A    def __init__(self, *args, **kwargs):%0A        Gtk.ScrolledWindow.__init__(self, *args, **kwargs)%0A        self.max_content_width = -1%0A        self.max_content_height = -1%0A        self.connect(%22notify::max-contentheight%22,%0A                     self.on_notify_max_height_changed)%0A        self.connect(%22notify::max-contentwidth%22,%0A                     self.on_notify_max_width_changed)%0A%0A    @staticmethod%0A    def on_notify_max_height_changed(obj, gparamstring):%0A        print(%22Success%22)%0A        obj.max_content_height = obj.get_property(%22max-contentheight%22)%0A        obj.set_size_request(obj.get_allocated_width(), obj.max_content_height)%0A%0A    @staticmethod%0A    def on_notify_max_width_changed(obj, gparamstring):%0A        print(%22Success%22)%0A        obj.max_content_width = obj.get_property(%22max-contentwidth%22)%0A        obj.set_size_request(obj.max_content_width,%0A                             obj.get_allocated_height())%0A

Add coalaScrolledWinodw