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

Replace deprecated Gtk.TreeView with ListView: Activity Parameter Nodes #2329

Merged
merged 8 commits into from
Jun 14, 2023

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented May 28, 2023

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Gtk.TreeView is deprecated. GTK 4 has a much nicer tree widget: Gtk.ListVIew. It's already used for the model browser. We should also use it in the property editor, for both consistency and ease of use.

Issue: #2231

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Gtk.ListView has no header. This will be introduced in GTK 4.12. So we may want to postpone changing to ListViews.

@amolenaar amolenaar marked this pull request as draft May 28, 2023 21:18
@github-actions github-actions bot added the python Pull requests that update Python code label May 28, 2023
@amolenaar amolenaar changed the title Replace deprecated TreeViews with ListView Replace deprecated Gtk.TreeView with ListView May 30, 2023
@amolenaar amolenaar force-pushed the listview branch 2 times, most recently from 47bf0db to b51782a Compare June 12, 2023 11:45
@amolenaar amolenaar marked this pull request as ready for review June 12, 2023 12:27
@amolenaar
Copy link
Member Author

This PR now has replaced the activity parameter property page with a new style list view.

I think it reached feature parity, with keybindings and easy-adding features in place.

Let's do the other TreeView's via different PR's, so we can keep the change manageable.

@amolenaar amolenaar changed the title Replace deprecated Gtk.TreeView with ListView Replace deprecated Gtk.TreeView with ListView: Activity Parameter Nodes Jun 12, 2023
@amolenaar amolenaar requested a review from danyeaw June 12, 2023 12:31
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

Really nice update to use ListView @amolenaar!

gaphor/UML/actions/tests/test_activitypropertypage.py Outdated Show resolved Hide resolved
@danyeaw danyeaw added the chore Maintenance related PR label Jun 14, 2023
@amolenaar amolenaar merged commit c291034 into main Jun 14, 2023
@amolenaar amolenaar deleted the listview branch June 14, 2023 09:23
amolenaar added a commit that referenced this pull request Jul 7, 2023
This reverts commit c291034, reversing
changes made to d7ee475.
danyeaw added a commit that referenced this pull request Jul 8, 2023
danyeaw added a commit that referenced this pull request Dec 22, 2023
Reapply #2329 - Gtk.ListView for Activity Parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants