Skip to content

Commit

Permalink
ScrolledWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed May 14, 2024
1 parent 1be7169 commit dd54b59
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Views/DiskView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Views/PartitioningView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Views/TryInstallView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/DiskBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/Widgets/VariantWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ 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
};

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
Expand Down

0 comments on commit dd54b59

Please sign in to comment.