Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for vlang/v PR #10033 #349

Merged
merged 1 commit into from
May 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion listbox.v
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ fn (mut lb ListBox) append_item(id string, text string, draw_to int) {
y: lb.item_height * lb.items.len
id: id
text: text
list: lb
list: unsafe { lb }
draw_text: text[0..draw_to]
}
}
4 changes: 2 additions & 2 deletions stack.v
Original file line number Diff line number Diff line change
@@ -132,8 +132,8 @@ fn (mut s Stack) init(parent Layout) {
}

if parent is Window {
ui.window = parent
mut window := parent
ui.window = unsafe { parent }
mut window := unsafe { parent }
window.root_layout = s
window.update_layout() // i.e s.update_all_children_recursively(parent)
}
2 changes: 1 addition & 1 deletion transition.v
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ pub fn transition(c TransitionConfig) &Transition {
}

pub fn (mut t Transition) set_value(animated_value &int) {
t.animated_value = animated_value
t.animated_value = unsafe { animated_value }
t.start_value = *animated_value
t.target_value = *animated_value
t.last_draw_target = *animated_value