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

Manually add typed & with_type methods #1415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bilelmoussaoui
Copy link
Member

Fixes #1384
Replaces #1386

Copy link
Member Author

@bilelmoussaoui bilelmoussaoui left a comment

Choose a reason for hiding this comment

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

help with naming is needed


#[doc(alias = "gdk_content_formats_new_for_gtype")]
#[doc(alias = "new_for_gtype")]
pub fn for_type_with_type(type_: glib::Type) -> Self {
Copy link
Member Author

Choose a reason for hiding this comment

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

here


#[doc(alias = "gdk_content_formats_contain_gtype")]
#[doc(alias = "contain_gtype")]
pub fn contains_type_with_type(&self, type_: glib::types::Type) -> bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

here


#[doc(alias = "gdk_content_formats_builder_add_gtype")]
#[must_use]
pub fn add_with_type(self, type_: glib::types::Type) -> Self {
Copy link
Member Author

Choose a reason for hiding this comment

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

here maybe?

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.

New and with_type methods as in gtk-rs-core
1 participant