Skip to content

Commit

Permalink
merge single use function calculate_total_width
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten committed Nov 17, 2022
1 parent dc355f7 commit 2ea9777
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/View/MultiSlot.vala
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public class Files.MultiSlot : Gtk.Box {
to_unparent.unparent ();
}

private void calculate_total_width () {
public void update_total_width () {
total_width = 300; // Extra space to allow increasing the size of columns by dragging the edge
var host = (Gtk.Paned)(viewport.child);
while (host != null && (host is Gtk.Paned)) {
Expand All @@ -135,10 +135,6 @@ public class Files.MultiSlot : Gtk.Box {
}

scrolled_window.min_content_width = total_width;
}

public void update_total_width () {
calculate_total_width ();
warning ("setting total width %i", total_width);
viewport.set_size_request (total_width, -1);
}
Expand Down

0 comments on commit 2ea9777

Please sign in to comment.