Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[Gtk] Adds EditingFinished event to cell renderers #914

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

netonjm
Copy link
Contributor

@netonjm netonjm commented Jan 25, 2019

This PR allows handle the event when the edition has finished. It's very useful to get real values from the ListStore.

I didn't implemented the Cocoa side because there are no implementation, but this can be added in the future.

values

@Therzok
Copy link
Contributor

Therzok commented Jan 29, 2019

Should we pass over the old/new value in the event args?

@netonjm
Copy link
Contributor Author

netonjm commented Jan 29, 2019

This happens when the value is set in your model, then you can check it here, but yes, we can include it in the args

@Therzok
Copy link
Contributor

Therzok commented Jan 29, 2019

The reason the event args are used is so event handlers do not have to query.

In example, looking up the value in a store or looking up which row changed can be costly, and if 2 event handlers are subscribed, we do potentially expensive lookups instead of doing a cheap one at eventargs construction timem

@netonjm
Copy link
Contributor Author

netonjm commented Jan 29, 2019

It's a good reason to include it 👍

@sevoku
Copy link
Member

sevoku commented Feb 10, 2019

@netonjm are you going to add the event args?

This should fix #795 and we could also fix mono/monodevelop#4075

@netonjm
Copy link
Contributor Author

netonjm commented Feb 10, 2019

@sevoku @Therzok Fixed and ready!

Xwt/Xwt.Backends/IComboBoxCellViewFrontend.cs Outdated Show resolved Hide resolved
Copy link
Member

@sevoku sevoku left a comment

Choose a reason for hiding this comment

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

sry, selected wrong option

@sevoku
Copy link
Member

sevoku commented Feb 11, 2019

LGTM now! cc @slluis for the last API change

@Therzok
Copy link
Contributor

Therzok commented May 1, 2019

We should rebase and merge this. Stumbled upon mono/monodevelop#4075

@netonjm netonjm requested a review from sevoku June 28, 2019 14:47
Base automatically changed from master to main March 9, 2021 14:16
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.

4 participants