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

ImapDialog: use Adw.NavigationView #283

Merged
merged 8 commits into from
Jul 3, 2024

Conversation

danirabbit
Copy link
Member

Replaces deprecated Leaflet

@danirabbit danirabbit requested a review from a team June 19, 2024 20:04
src/Dialogs/Imap/ImapDialog.vala Outdated Show resolved Hide resolved
src/Dialogs/Imap/ImapDialog.vala Outdated Show resolved Hide resolved
src/Dialogs/Imap/ImapDialog.vala Show resolved Hide resolved
@leolost2605
Copy link
Member

I've left some comments about possible mem leaks. Because this is not a continually running process mem leaks aren't that bad here but I think we should kinda get aware of them because e.g. in dock we probably have quite a bunch since it starts with 200mb and after an hour or two of normal use it has 800mb :(

@danirabbit danirabbit requested a review from leolost2605 June 28, 2024 18:16
@danirabbit
Copy link
Member Author

@leolost2605 How's that? :)

Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Still not quite perfect I left a few comments.
I'm still trying to write a somewhat good explanation but for a start I left some more info here elementary/terminal#760 (comment).
To test it you can add a destructor and put a warning in it to see if it gets destroyed on close. Note though that on master it also doesn't get destroyed currently and only if you comment out a lot of the signal connections so for this class this might not be the best test.
To see whether the things you touched are problematic you can open the c file and make sure the lambdas that are handling signals that you worked on are connected with g_signal_connect_object and not g_signal_connect_full.
Kinda annoying I know :/

src/Dialogs/Imap/ImapDialog.vala Outdated Show resolved Hide resolved
src/Dialogs/Imap/ImapDialog.vala Outdated Show resolved Hide resolved
@danirabbit danirabbit requested a review from leolost2605 July 2, 2024 17:37
@danirabbit
Copy link
Member Author

@leolost2605 okay how's this? I don't see any signal_connect_full in the generated C

@leolost2605
Copy link
Member

Sorry I typed it on my phone without checking, it should have been g_signal_connect_data 😖

@danirabbit
Copy link
Member Author

@leolost2605 it looks like there was only one of those so I went ahead of fixed it even though it's not related to this branch :)

Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Nice!

@danirabbit danirabbit merged commit 35f89ed into main Jul 3, 2024
3 of 5 checks passed
@danirabbit danirabbit deleted the danirabbit/imagedialog-adwnavigationview branch July 3, 2024 15:58
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.

3 participants