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] Move External App Actions Logic To Utils #1455

Merged
merged 11 commits into from
Jul 25, 2024

Conversation

colinkiama
Copy link
Member

Part of of "Replace Gtk.MenuItem with GLib.MenuModel" task in #1157

@colinkiama colinkiama requested a review from a team July 24, 2024 19:04
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Seems sensible. Just one question and a couple comments about extra whitespace

src/Utils.vala Outdated Show resolved Hide resolved
src/Utils.vala Show resolved Hide resolved
src/Utils.vala Show resolved Hide resolved
@colinkiama colinkiama force-pushed the colinkiama/move-external-app-actions-logic-to-utils branch from b57bf1a to f1d903e Compare July 24, 2024 21:09
@colinkiama
Copy link
Member Author

I've made new changes that should resolve all the issues now.

src/Utils.vala Outdated
var menu = new Gtk.Menu ();

try {
var contracts = Granite.Services.ContractorProxy.get_contracts_by_mime (file_type);
Copy link
Member

Choose a reason for hiding this comment

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

Should this be https://valadoc.org/granite-7/Granite.Services.ContractorProxy.get_contracts_for_file.html so we don't have to manually get file type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. That makes the code more concise. Thanks!

src/Utils.vala Outdated
var file = GLib.File.new_for_path (path);

try {
var contracts = Granite.Services.ContractorProxy.get_contracts_by_mime (file_type);
Copy link
Member

Choose a reason for hiding this comment

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

Same here

Copy link
Member Author

Choose a reason for hiding this comment

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

This has been updated now too.

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Nice work!

@danirabbit danirabbit merged commit 59f3b66 into master Jul 25, 2024
6 checks passed
@danirabbit danirabbit deleted the colinkiama/move-external-app-actions-logic-to-utils branch July 25, 2024 14:50
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.

2 participants