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

[GTK4 Prep] Update DocumentView to use Hdy.TabView #1424

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

Conversation

colinkiama
Copy link
Sponsor Member

@colinkiama colinkiama commented Feb 29, 2024

DocumentView widget has been rewritten to use the Hdy.TabView widget.

The majority of the work is done. There are a few more things that left to do but I haven't figured out how to do these yet (Any help would be very appreciated!):

  • Add "Open in a New Window" menu option to tab view in DocumentView.
  • Support opening drag and drop operations with tabs
    • Drag tab out of window to open tab in new window
    • Drag tab into window to move tab from one window to another

Part of #1157

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Just a few initial comment from looking at the code.

src/Services/Document.vala Outdated Show resolved Hide resolved
src/Services/Document.vala Outdated Show resolved Hide resolved
src/Widgets/DocumentView.vala Outdated Show resolved Hide resolved
@colinkiama colinkiama marked this pull request as ready for review March 22, 2024 01:24
@colinkiama colinkiama requested review from a team and jeremypw and removed request for a team March 22, 2024 01:25
@colinkiama colinkiama changed the title WIP: [GTK4 Prep] Update DocumentView to use Hdy.TabView [GTK4 Prep] Update DocumentView to use Hdy.TabView Mar 22, 2024
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Thanks for working on this. It mostly works now, just a couple of things I notice:

  1. The tab background colour does not follow the "solarized light" theme (unlike main).
  2. The tab_history button is not connected up. This button does not seem to be working in main either but if we are going to add it again here we might as well have it working.

@colinkiama
Copy link
Sponsor Member Author

I've addressed the additional feedback you had.

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

Successfully merging this pull request may close these issues.

None yet

2 participants