-
-
Notifications
You must be signed in to change notification settings - Fork 194
Automated PR: Changes from updating gir/gir-files #2155
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
Open
github-actions
wants to merge
4
commits into
main
Choose a base branch
from
auto-pr-branch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
Submodule gir
updated
5 files
| +4 −4 | Cargo.lock | |
| +1 −1 | Cargo.toml | |
| +2 −2 | book/src/tutorial/finding_gir_files.md | |
| +3 −1 | src/analysis/functions.rs | |
| +3 −0 | src/codegen/general.rs |
Submodule gir-files
updated
11 files
| +1 −1 | .github/workflows/auto-update.yml | |
| +31 −0 | GLib-2.0.gir | |
| +10 −0 | GLibUnix-2.0.gir | |
| +24 −6 | GObject-2.0.gir | |
| +22 −5 | Gdk-4.0.gir | |
| +62 −32 | GdkPixbuf-2.0.gir | |
| +49 −16 | Gio-2.0.gir | |
| +2 −2 | GioUnix-2.0.gir | |
| +29 −6 | Gsk-4.0.gir | |
| +1,100 −205 | Gtk-4.0.gir | |
| +46 −4 | HarfBuzz-0.0.gir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| Generated by gir (https://github.com/gtk-rs/gir @ be9aa145267c) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ e121d92cee84) | ||
| Generated by gir (https://github.com/gtk-rs/gir @ 85fe8474df07) | ||
| from gir-files (https://github.com/gtk-rs/gir-files @ 7f4d93e87b6e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,13 +54,21 @@ impl ApplicationBuilder { | |
| } | ||
| } | ||
|
|
||
| #[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")] | ||
| #[cfg_attr(feature = "v4_22", deprecated = "Since 4.22")] | ||
| pub fn register_session(self, register_session: bool) -> Self { | ||
| Self { | ||
| builder: self.builder.property("register-session", register_session), | ||
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| pub fn support_save(self, support_save: bool) -> Self { | ||
| Self { | ||
| builder: self.builder.property("support-save", support_save), | ||
| } | ||
| } | ||
|
|
||
| pub fn application_id(self, application_id: impl Into<glib::GString>) -> Self { | ||
| Self { | ||
| builder: self | ||
|
|
@@ -122,6 +130,15 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| #[doc(alias = "gtk_application_forget")] | ||
| fn forget(&self) { | ||
| unsafe { | ||
| ffi::gtk_application_forget(self.as_ref().to_glib_none().0); | ||
| } | ||
| } | ||
|
|
||
| #[doc(alias = "gtk_application_get_accels_for_action")] | ||
| #[doc(alias = "get_accels_for_action")] | ||
| fn accels_for_action(&self, detailed_action_name: &str) -> Vec<glib::GString> { | ||
|
|
@@ -233,6 +250,15 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| #[doc(alias = "gtk_application_save")] | ||
| fn save(&self) { | ||
| unsafe { | ||
| ffi::gtk_application_save(self.as_ref().to_glib_none().0); | ||
| } | ||
| } | ||
|
|
||
| #[doc(alias = "gtk_application_set_accels_for_action")] | ||
| fn set_accels_for_action(&self, detailed_action_name: &str, accels: &[&str]) { | ||
| unsafe { | ||
|
|
@@ -262,13 +288,13 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| } | ||
| } | ||
|
|
||
| #[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")] | ||
| #[cfg_attr(feature = "v4_22", deprecated = "Since 4.22")] | ||
| #[doc(alias = "register-session")] | ||
| fn is_register_session(&self) -> bool { | ||
| ObjectExt::property(self.as_ref(), "register-session") | ||
| } | ||
|
|
||
| #[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")] | ||
| #[cfg_attr(feature = "v4_22", deprecated = "Since 4.22")] | ||
| #[doc(alias = "register-session")] | ||
| fn set_register_session(&self, register_session: bool) { | ||
| ObjectExt::set_property(self.as_ref(), "register-session", register_session) | ||
|
|
@@ -279,6 +305,20 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| ObjectExt::property(self.as_ref(), "screensaver-active") | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| #[doc(alias = "support-save")] | ||
| fn supports_save(&self) -> bool { | ||
| ObjectExt::property(self.as_ref(), "support-save") | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| #[doc(alias = "support-save")] | ||
| fn set_support_save(&self, support_save: bool) { | ||
| ObjectExt::set_property(self.as_ref(), "support-save", support_save) | ||
| } | ||
|
|
||
| #[doc(alias = "query-end")] | ||
| fn connect_query_end<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { | ||
| unsafe extern "C" fn query_end_trampoline<P: IsA<Application>, F: Fn(&P) + 'static>( | ||
|
|
@@ -301,6 +341,27 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| } | ||
| } | ||
|
|
||
| //#[cfg(feature = "v4_22")] | ||
| //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| //#[doc(alias = "restore-state")] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This signal lacks a Since annotation
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| //fn connect_restore_state<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { | ||
| // Ignored reason: Gtk.RestoreReason | ||
| //} | ||
|
|
||
| //#[cfg(feature = "v4_22")] | ||
| //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| //#[doc(alias = "restore-window")] | ||
| //fn connect_restore_window<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { | ||
| // Ignored reason: Gtk.RestoreReason | ||
| //} | ||
|
|
||
| //#[cfg(feature = "v4_22")] | ||
| //#[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| //#[doc(alias = "save-state")] | ||
| //fn connect_save_state<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId { | ||
| // Ignored dict: GLib.VariantDict | ||
| //} | ||
|
|
||
| #[doc(alias = "window-added")] | ||
| fn connect_window_added<F: Fn(&Self, &Window) + 'static>(&self, f: F) -> SignalHandlerId { | ||
| unsafe extern "C" fn window_added_trampoline< | ||
|
|
@@ -408,7 +469,7 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| } | ||
| } | ||
|
|
||
| #[cfg_attr(feature = "v4_20", deprecated = "Since 4.20")] | ||
| #[cfg_attr(feature = "v4_22", deprecated = "Since 4.22")] | ||
| #[doc(alias = "register-session")] | ||
| fn connect_register_session_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { | ||
| unsafe extern "C" fn notify_register_session_trampoline< | ||
|
|
@@ -460,6 +521,34 @@ pub trait GtkApplicationExt: IsA<Application> + 'static { | |
| ) | ||
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "v4_22")] | ||
| #[cfg_attr(docsrs, doc(cfg(feature = "v4_22")))] | ||
| #[doc(alias = "support-save")] | ||
| fn connect_support_save_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { | ||
| unsafe extern "C" fn notify_support_save_trampoline< | ||
| P: IsA<Application>, | ||
| F: Fn(&P) + 'static, | ||
| >( | ||
| this: *mut ffi::GtkApplication, | ||
| _param_spec: glib::ffi::gpointer, | ||
| f: glib::ffi::gpointer, | ||
| ) { | ||
| let f: &F = &*(f as *const F); | ||
| f(Application::from_glib_borrow(this).unsafe_cast_ref()) | ||
| } | ||
| unsafe { | ||
| let f: Box_<F> = Box_::new(f); | ||
| connect_raw( | ||
| self.as_ptr() as *mut _, | ||
| c"notify::support-save".as_ptr() as *const _, | ||
| Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( | ||
| notify_support_save_trampoline::<Self, F> as *const (), | ||
| )), | ||
| Box_::into_raw(f), | ||
| ) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| impl<O: IsA<Application>> GtkApplicationExt for O {} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to manually implement this and mark the previous values as deprecated, or just not backport this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think either is OK. Deprecation would be more friendly to users as it simplifies the update next time.