Skip to content

Commit 2ea9777

Browse files
author
Jeremy Wootten
committed
merge single use function calculate_total_width
1 parent dc355f7 commit 2ea9777

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/View/MultiSlot.vala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class Files.MultiSlot : Gtk.Box {
120120
to_unparent.unparent ();
121121
}
122122

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

137137
scrolled_window.min_content_width = total_width;
138-
}
139-
140-
public void update_total_width () {
141-
calculate_total_width ();
142138
warning ("setting total width %i", total_width);
143139
viewport.set_size_request (total_width, -1);
144140
}

0 commit comments

Comments
 (0)