Skip to content

Add gio::File, gio::FileEnumerator, gio::FileMonitor, gio::Vfs subclasses#1676

Merged
sdroege merged 4 commits into
gtk-rs:mainfrom
fbrouille:gio_file_subclass
Jan 17, 2026
Merged

Add gio::File, gio::FileEnumerator, gio::FileMonitor, gio::Vfs subclasses#1676
sdroege merged 4 commits into
gtk-rs:mainfrom
fbrouille:gio_file_subclass

Conversation

@fbrouille

Copy link
Copy Markdown
Contributor

Allow custom implementation of gio::Vfs, gio::File, gio::FileEnumerator and gio::FileMonitor

@sdroege

sdroege commented Mar 4, 2025

Copy link
Copy Markdown
Member

Very interesting, thanks! OOC, what are you planning to implement with this?

Comment thread gio/src/subclass/file_enumerator.rs Outdated
Comment thread gio/src/subclass/file_monitor.rs Outdated
Comment thread gio/src/subclass/vfs.rs Outdated
@sdroege

sdroege commented Mar 4, 2025

Copy link
Copy Markdown
Member

Just shortly looked over it, will do a proper review one of these days but generally it looks correct.

@fbrouille fbrouille force-pushed the gio_file_subclass branch from 94aacc1 to bbfa6db Compare March 4, 2025 13:03
Comment thread gio/src/subclass/vfs.rs Outdated
@fbrouille fbrouille force-pushed the gio_file_subclass branch from bbfa6db to ce47c8b Compare March 5, 2025 18:52
@fbrouille

Copy link
Copy Markdown
Contributor Author

OOC I'm planning to implement some nautilus extension in Rust (very challenging 😅)

Comment thread gio/src/subclass/vfs.rs Outdated
@bilelmoussaoui

Copy link
Copy Markdown
Member

would you mind rebasing & finishing the small remaining bits here?

@fbrouille

Copy link
Copy Markdown
Contributor Author

Yes, I'm adding subclass/file.rs (with almost all vfuncs), tests and a complete example to show how to implement a custom Vfs. I will share it during next week.

@fbrouille fbrouille changed the title Add gio::FileEnumerator, gio::FileMonitor, gio::Vfs subclasses Add gio::File, gio::FileEnumerator, gio::FileMonitor, gio::Vfs subclasses Apr 26, 2025
@fbrouille fbrouille force-pushed the gio_file_subclass branch 9 times, most recently from e9842cc to 10bb6d0 Compare April 30, 2025 11:12
Comment thread gio/src/subclass/file_monitor.rs Outdated
Comment thread gio/src/subclass/file_enumerator.rs Outdated
Comment thread gio/src/file.rs
Comment thread gio/tests/file_monitor.rs Outdated
Comment thread gio/tests/file_monitor.rs Outdated
@fbrouille fbrouille force-pushed the gio_file_subclass branch 2 times, most recently from 260cf0e to 0cb4a44 Compare May 3, 2025 07:38
@fbrouille fbrouille force-pushed the gio_file_subclass branch from 0cb4a44 to a0345a9 Compare May 20, 2025 15:54
Comment thread gio/src/subclass/file_monitor.rs
Comment thread gio/src/subclass/vfs.rs Outdated
@sdroege

sdroege commented Dec 29, 2025

Copy link
Copy Markdown
Member

What's the status of this? Is this ready?

@fbrouille

Copy link
Copy Markdown
Contributor Author

Rebased and ready. Let me know if you’d prefer I split this into separate PRs.

@fbrouille

Copy link
Copy Markdown
Contributor Author

Intermittent failure in the CI / docs embed check. Is this a known issue with the current CI ?

Comment thread examples/gio_vfs/file.rs
Comment thread examples/gio_vfs/lib.rs Outdated
Comment thread examples/gio_vfs/vfs.rs Outdated
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/subclass/file.rs Outdated

@sdroege sdroege left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks overall OK to me :)

@fbrouille fbrouille force-pushed the gio_file_subclass branch 2 times, most recently from cf37a47 to 8638234 Compare January 15, 2026 18:33
@fbrouille

Copy link
Copy Markdown
Contributor Author

Rebased and ready.

Comment thread gio/src/file.rs
Comment thread gio/Gir.toml
sdroege
sdroege previously approved these changes Jan 17, 2026

@sdroege sdroege left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good for me apart from what @bilelmoussaoui already wrote.

Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
@sdroege sdroege merged commit 265bf69 into gtk-rs:main Jan 17, 2026
58 checks passed
@fbrouille fbrouille deleted the gio_file_subclass branch January 17, 2026 15:39
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