lib/gtk4/scrolled-window.rb in gtk4-4.0.3 vs lib/gtk4/scrolled-window.rb in gtk4-4.0.4

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright (C) 2014 Ruby-GNOME2 Project Team +# Copyright (C) 2014-2022 Ruby-GNOME Project Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. @@ -16,9 +16,11 @@ module Gtk class ScrolledWindow alias_method :initialize_raw, :initialize def initialize(hadjustment=nil, vadjustment=nil) - initialize_raw(hadjustment, vadjustment) + initialize_raw + set_hadjustment(hadjustment) if hadjustment + set_vadjustment(vadjustment) if vadjustment end end end