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

Regen bindings #1775

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gdk4-wayland/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ libc = "0.2"
workspace = true

[build-dependencies]
system-deps = "6"
system-deps = "7"

[dev-dependencies]
shell-words = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
4 changes: 2 additions & 2 deletions gdk4-win32/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gdk4-win32/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ workspace = true
workspace = true

[build-dependencies]
system-deps = "6"
system-deps = "7"

[dev-dependencies]
shell-words = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions gdk4-win32/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
4 changes: 2 additions & 2 deletions gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gdk4-x11/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ workspace = true
workspace = true

[build-dependencies]
system-deps = "6"
system-deps = "7"

[dev-dependencies]
shell-words = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions gdk4-x11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
4 changes: 2 additions & 2 deletions gdk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ status = "generate"
version = "4.8"
[[object.member]]
name = "event_last"
alias = true # not useful
ignore = true # not useful

[[object]]
name = "Gdk.FileList"
Expand Down Expand Up @@ -556,7 +556,7 @@ status = "generate"
version = "4.6"
[[object.member]]
name = "n_formats"
alias = true # not useful
ignore = true # not useful

[[object]]
name = "Gdk.MemoryTexture"
Expand Down
4 changes: 2 additions & 2 deletions gdk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gdk4/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ workspace = true
workspace = true

[build-dependencies]
system-deps = "6"
system-deps = "7"
pkg-config = "0.3.30"

[dev-dependencies]
Expand Down
8 changes: 4 additions & 4 deletions gdk4/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3236,7 +3236,7 @@
}

#[repr(C)]
pub struct GdkDeleteEvent {

Check warning on line 3239 in gdk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GdkDeleteEvent` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -3299,7 +3299,7 @@
}

#[repr(C)]
pub struct GdkDmabufTexture {

Check warning on line 3302 in gdk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GdkDmabufTexture` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -3487,7 +3487,7 @@
}

#[repr(C)]
pub struct GdkMotionEvent {

Check warning on line 3490 in gdk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GdkMotionEvent` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand All @@ -3512,7 +3512,7 @@
}

#[repr(C)]
pub struct GdkProximityEvent {

Check warning on line 3515 in gdk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GdkProximityEvent` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -3995,6 +3995,9 @@
//=========================================================================
#[cfg(feature = "v4_12")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
pub fn gdk_drag_surface_size_get_type() -> GType;
#[cfg(feature = "v4_12")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
pub fn gdk_drag_surface_size_set_size(
size: *mut GdkDragSurfaceSize,
width: c_int,
Expand Down Expand Up @@ -4206,6 +4209,7 @@
//=========================================================================
// GdkToplevelSize
//=========================================================================
pub fn gdk_toplevel_size_get_type() -> GType;
Copy link
Member

Choose a reason for hiding this comment

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

This lacks v4_12 as it wasn't exposed before that causing build breaks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean manually?

Copy link
Member

Choose a reason for hiding this comment

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

yeah

pub fn gdk_toplevel_size_get_bounds(
size: *mut GdkToplevelSize,
bounds_width: *mut c_int,
Expand Down Expand Up @@ -5525,9 +5529,6 @@
result: *mut gio::GAsyncResult,
error: *mut *mut glib::GError,
) -> gboolean;
#[cfg(feature = "v4_12")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
pub fn gdk_drag_surface_size_get_type() -> GType;
pub fn gdk_events_get_angle(
event1: *mut GdkEvent,
event2: *mut GdkEvent,
Expand Down Expand Up @@ -5576,7 +5577,6 @@
) -> *mut gdk_pixbuf::GdkPixbuf;
pub fn gdk_pixbuf_get_from_texture(texture: *mut GdkTexture) -> *mut gdk_pixbuf::GdkPixbuf;
pub fn gdk_set_allowed_backends(backends: *const c_char);
pub fn gdk_toplevel_size_get_type() -> GType;
pub fn gdk_unicode_to_keyval(wc: u32) -> c_uint;

}
4 changes: 2 additions & 2 deletions gdk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 7 files
+5 −3 Atk-1.0.gir
+65 −27 Gdk-4.0.gir
+16 −13 Gio-2.0.gir
+71 −16 Gsk-4.0.gir
+8 −8 Gtk-3.0.gir
+335 −68 Gtk-4.0.gir
+2 −2 Pango-1.0.gir
4 changes: 0 additions & 4 deletions gsk4/src/auto/gl_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// DO NOT EDIT

use crate::{ffi, Renderer};
#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
use glib::{prelude::*, translate::*};

glib::wrapper! {
Expand All @@ -17,8 +15,6 @@ glib::wrapper! {
}

impl GLRenderer {
#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
#[doc(alias = "gsk_gl_renderer_new")]
pub fn new() -> GLRenderer {
assert_initialized_main_thread!();
Expand Down
4 changes: 4 additions & 0 deletions gsk4/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ mod fill_node;
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
pub use self::fill_node::FillNode;

#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
mod gl_renderer;
#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
pub use self::gl_renderer::GLRenderer;

mod gl_shader;
Expand Down
4 changes: 2 additions & 2 deletions gsk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
2 changes: 1 addition & 1 deletion gsk4/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ workspace = true
workspace = true

[build-dependencies]
system-deps = "6"
system-deps = "7"

[dev-dependencies]
shell-words = "1.0.0"
Expand Down
2 changes: 2 additions & 0 deletions gsk4/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
#[cfg(feature = "broadway")]
#[cfg_attr(docsrs, doc(cfg(feature = "broadway")))]
#[repr(C)]
pub struct GskBroadwayRenderer {

Check warning on line 494 in gsk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GskBroadwayRenderer` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand All @@ -518,7 +518,7 @@
}

#[repr(C)]
pub struct GskCairoRenderer {

Check warning on line 521 in gsk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GskCairoRenderer` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -631,7 +631,7 @@
}

#[repr(C)]
pub struct GskGLRenderer {

Check warning on line 634 in gsk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GskGLRenderer` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -707,7 +707,7 @@
}

#[repr(C)]
pub struct GskNglRenderer {

Check warning on line 710 in gsk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GskNglRenderer` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -928,7 +928,7 @@
#[cfg(feature = "vulkan")]
#[cfg_attr(docsrs, doc(cfg(feature = "vulkan")))]
#[repr(C)]
pub struct GskVulkanRenderer {

Check warning on line 931 in gsk4/sys/src/lib.rs

View workflow job for this annotation

GitHub Actions / build

struct `GskVulkanRenderer` is never constructed
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
Expand Down Expand Up @@ -1855,6 +1855,8 @@
//=========================================================================
// GskGLRenderer
//=========================================================================
#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
pub fn gsk_gl_renderer_get_type() -> GType;
#[cfg(feature = "v4_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))]
Expand Down
4 changes: 2 additions & 2 deletions gsk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ d26d8f60b97d)
from gir-files (https://github.com/gtk-rs/gir-files @ 74aa91d9063d)
Generated by gir (https://github.com/gtk-rs/gir @ cbffeb655c48)
from gir-files (https://github.com/gtk-rs/gir-files @ 6dc3ae6d2820)
3 changes: 3 additions & 0 deletions gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,9 @@ generate_builder = false # use glib::Priority
name = "Gtk.DragIcon"
status = "generate"
generate_builder = false
[[object.function]]
name = "get_for_drag"
rename = "for_drag"

[[object]]
name = "Gtk.DrawingArea"
Expand Down
8 changes: 0 additions & 8 deletions gtk4/src/auto/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ impl ApplicationBuilder {
}
}

pub fn action_group(self, action_group: &impl IsA<gio::ActionGroup>) -> Self {
A6GibKm marked this conversation as resolved.
Show resolved Hide resolved
Self {
builder: self
.builder
.property("action-group", action_group.clone().upcast()),
}
}

pub fn application_id(self, application_id: impl Into<glib::GString>) -> Self {
Self {
builder: self
Expand Down
17 changes: 10 additions & 7 deletions gtk4/src/auto/drag_icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ glib::wrapper! {
}

impl DragIcon {
#[doc(alias = "gtk_drag_icon_get_for_drag")]
#[doc(alias = "get_for_drag")]
pub fn for_drag(drag: &gdk::Drag) -> DragIcon {
assert_initialized_main_thread!();
unsafe {
Widget::from_glib_none(ffi::gtk_drag_icon_get_for_drag(drag.to_glib_none().0))
.unsafe_cast()
}
}

#[doc(alias = "gtk_drag_icon_get_child")]
#[doc(alias = "get_child")]
pub fn child(&self) -> Option<Widget> {
Expand Down Expand Up @@ -47,13 +57,6 @@ impl DragIcon {
}
}

#[doc(alias = "gtk_drag_icon_get_for_drag")]
#[doc(alias = "get_for_drag")]
pub fn for_drag(drag: &gdk::Drag) -> Widget {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::gtk_drag_icon_get_for_drag(drag.to_glib_none().0)) }
}

#[doc(alias = "gtk_drag_icon_set_from_paintable")]
pub fn set_from_paintable(
drag: &gdk::Drag,
Expand Down
Loading
Loading