Skip to content
This repository has been archived by the owner on Nov 11, 2018. It is now read-only.

Issue #381 clickable autocomplete #383

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Eugene-msc
Copy link

Made autocomplete to work with mouse.
I know the issue was created just a few hours ago. And was not yet approved by p-e-w. But I decided to implement it anyway.



autocompletion.run_command.connect(on_autocomplete_run_command);

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary blank lines (there should be only one on top and none on bottom).

@@ -122,7 +124,7 @@ public class Autocompletion : Object {
return scrollable_list_view.is_valid_item_index(selected_index);
}

public string? get_selected_command() {
public string? scrollable_list_view.get_item(selected_index).text {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the weirdest construct I have ever seen in Vala. I am completely unfamiliar with such syntax. How does this compile?!? Can you enlighten me?

It's not a method (no parentheses, unless the ones around selected_text are somehow counted), it's not a property (no get/set blocks), so what is it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants