Skip to content

Implement gio::File::set_attribute#1713

Merged
sdroege merged 2 commits into
gtk-rs:mainfrom
fbrouille:g_file_set_attribute
May 20, 2025
Merged

Implement gio::File::set_attribute#1713
sdroege merged 2 commits into
gtk-rs:mainfrom
fbrouille:g_file_set_attribute

Conversation

@fbrouille

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
@fbrouille fbrouille force-pushed the g_file_set_attribute branch 3 times, most recently from 91b8c29 to 2deef12 Compare May 5, 2025 07:35
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
@bilelmoussaoui

Copy link
Copy Markdown
Member

i guess you could also easily add https://docs.gtk.org/gio/method.FileInfo.set_attribute.html ?

@fbrouille fbrouille force-pushed the g_file_set_attribute branch from 2deef12 to ef65bb7 Compare May 7, 2025 16:04
@fbrouille

Copy link
Copy Markdown
Contributor Author

sure, when we'll be aligned

Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
@fbrouille fbrouille force-pushed the g_file_set_attribute branch from ef65bb7 to e53d619 Compare May 7, 2025 20:03
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
Comment thread gio/src/file.rs Outdated
@fbrouille fbrouille force-pushed the g_file_set_attribute branch from e53d619 to 7520fd3 Compare May 8, 2025 21:24
Comment thread gio/src/file.rs
Comment thread gio/src/file.rs Outdated
sdroege
sdroege previously approved these changes May 13, 2025

@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 good to me then, is there any other place where this new type can be used?

@bilelmoussaoui

Copy link
Copy Markdown
Member

i guess you could also easily add https://docs.gtk.org/gio/method.FileInfo.set_attribute.html ?

@sdroege see ^

@fbrouille

Copy link
Copy Markdown
Contributor Author

i guess you could also easily add https://docs.gtk.org/gio/method.FileInfo.set_attribute.html ?

done

@fbrouille fbrouille force-pushed the g_file_set_attribute branch from 01585a6 to 427d793 Compare May 13, 2025 12:29
Comment thread gio/src/file.rs
// Take a look at the license at the top of the repository in the LICENSE file.

use std::{cell::RefCell, ffi::CStr, mem, pin::Pin, ptr};
use std::{cell::RefCell, mem, pin::Pin, ptr};

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.

Can you add a closes #40 to this commit?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added to the other commit because issue is for FileInfo

Comment thread gio/src/file_attribute_value.rs
@fbrouille fbrouille force-pushed the g_file_set_attribute branch from 427d793 to 25eb318 Compare May 18, 2025 18:07
@sdroege

sdroege commented May 20, 2025

Copy link
Copy Markdown
Member

If you rebase this on top of #1724 (i.e. latest main) then the CI should pass

fbrouille added 2 commits May 20, 2025 15:53
Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
Closes gtk-rs#40

Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
@sdroege

sdroege commented May 20, 2025

Copy link
Copy Markdown
Member

Actually let me just do that now.

@sdroege sdroege force-pushed the g_file_set_attribute branch from 25eb318 to ed44365 Compare May 20, 2025 12:53
@sdroege sdroege merged commit b5f93cb into gtk-rs:main May 20, 2025
48 checks passed
@fbrouille fbrouille deleted the g_file_set_attribute branch May 20, 2025 14:08
@fbrouille

Copy link
Copy Markdown
Contributor Author

thank you for all your remarks

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