diff --git a/src/Views/DiskView.vala b/src/Views/DiskView.vala index e742e2cbe..bfb17395b 100644 --- a/src/Views/DiskView.vala +++ b/src/Views/DiskView.vala @@ -58,7 +58,7 @@ public class Installer.DiskView : AbstractInstallerView { disk_box = new Gtk.Box (VERTICAL, 6); - var disk_scrolled = new Gtk.ScrolledWindow (null, null) { + var disk_scrolled = new Gtk.ScrolledWindow () { child = disk_box, hscrollbar_policy = Gtk.PolicyType.NEVER, propagate_natural_height = true diff --git a/src/Views/PartitioningView.vala b/src/Views/PartitioningView.vala index dd459b8cb..e61fa089e 100644 --- a/src/Views/PartitioningView.vala +++ b/src/Views/PartitioningView.vala @@ -82,7 +82,7 @@ public class Installer.PartitioningView : AbstractInstallerView { valign = Gtk.Align.CENTER }; - var disk_scroller = new Gtk.ScrolledWindow (null, null); + var disk_scroller = new Gtk.ScrolledWindow (); disk_scroller.hexpand = true; disk_scroller.hscrollbar_policy = Gtk.PolicyType.NEVER; disk_scroller.add (disk_list); diff --git a/src/Views/TryInstallView.vala b/src/Views/TryInstallView.vala index df9b969e5..045d629b1 100644 --- a/src/Views/TryInstallView.vala +++ b/src/Views/TryInstallView.vala @@ -67,7 +67,7 @@ public class Installer.TryInstallView : AbstractInstallerView { type_box.append (new Gtk.Separator (Gtk.Orientation.HORIZONTAL)); type_box.append (custom_button); - var type_scrolled = new Gtk.ScrolledWindow (null, null) { + var type_scrolled = new Gtk.ScrolledWindow () { child = type_box, hscrollbar_policy = NEVER, propagate_natural_height = true diff --git a/src/Widgets/DiskBar.vala b/src/Widgets/DiskBar.vala index 3ba956296..e9beafad4 100644 --- a/src/Widgets/DiskBar.vala +++ b/src/Widgets/DiskBar.vala @@ -84,7 +84,7 @@ public class Installer.DiskBar: Gtk.Grid { legend_container.halign = Gtk.Align.CENTER; legend_container.margin_bottom = 9; - var legend = new Gtk.ScrolledWindow (null, null); + var legend = new Gtk.ScrolledWindow (); legend.vscrollbar_policy = Gtk.PolicyType.NEVER; legend.add (legend_container); diff --git a/src/Widgets/VariantWidget.vala b/src/Widgets/VariantWidget.vala index 1d5fc7d89..88264cc3d 100644 --- a/src/Widgets/VariantWidget.vala +++ b/src/Widgets/VariantWidget.vala @@ -29,7 +29,7 @@ public class VariantWidget : Gtk.Frame { construct { main_listbox = new Gtk.ListBox (); - var main_scrolled = new Gtk.ScrolledWindow (null, null) { + var main_scrolled = new Gtk.ScrolledWindow () { child = main_listbox, hscrollbar_policy = NEVER }; @@ -37,7 +37,7 @@ public class VariantWidget : Gtk.Frame { variant_listbox = new Gtk.ListBox (); variant_listbox.activate_on_single_click = false; - var variant_scrolled = new Gtk.ScrolledWindow (null, null) { + var variant_scrolled = new Gtk.ScrolledWindow () { child = variant_listbox, hscrollbar_policy = NEVER, vexpand = true