Skip to content

Commit

Permalink
Regen bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
A6GibKm committed Jun 22, 2024
1 parent f0e1d9e commit fa070a0
Show file tree
Hide file tree
Showing 37 changed files with 169 additions and 97 deletions.
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @ 961b85395d46)
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 @@ -3995,6 +3995,9 @@ extern "C" {
//=========================================================================
#[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 @@ extern "C" {
//=========================================================================
// GdkToplevelSize
//=========================================================================
pub fn gdk_toplevel_size_get_type() -> GType;
pub fn gdk_toplevel_size_get_bounds(
size: *mut GdkToplevelSize,
bounds_width: *mut c_int,
Expand Down Expand Up @@ -5525,9 +5529,6 @@ extern "C" {
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 @@ extern "C" {
) -> *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 @ 961b85395d46)
2 changes: 1 addition & 1 deletion gir-files
Submodule gir-files updated 3 files
+75 −277 Gdk-4.0.gir
+70 −23 Gsk-4.0.gir
+358 −2,820 Gtk-4.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 @ 961b85395d46)
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 @@ -1855,6 +1855,8 @@ extern "C" {
//=========================================================================
// 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 @ 961b85395d46)
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
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

0 comments on commit fa070a0

Please sign in to comment.