-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Reliably open documents from sidebar #1465
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
@elementary/maintainers seems like something is wrong with the CI checks in this pull request. All the checks have already passed but GitHub insists that there's one more required lint check remaining. |
Seems the linting check has stalled for some reason. |
Hmm, after removing automerge and re-running CI it is now failing on Flatpak build. It seems to be looking for Gtk.SourceView. Still not reporting the lint result although it passed. Edit: I confused SourceView and SourceList we still need Gtk.SourceView. |
Looks like the gitlab server is not available atm so SourceView source code not available for building the Flatpak. |
@danirabbit Any idea what is blocking this from merging? CI seems to be passing. Is it OK to bypass the requirements? |
Sorry about that. Made a mistake migrating to the new branch protection rulesets |
Fixes #1403
Fixes #972
Using the
item-selected
signal from the SourceList to open documents causes problems when documents are removed for any reason because this causes unwanted documents to selected and opened. Inmaster
this is fixed by a hack involving some select signals being ignored but this is not reliable. Quite often clicking on an item in the sidebar fails to open it because the signal is falsely ignored.Instead, this PR uses item activation to trigger document opening/tab selection. To maintain the same single click behaviour the SourceList is modified so
activate_on_single_click
is accessible.