Skip to content

Commit

Permalink
Regen bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
A6GibKm committed Jun 27, 2024
1 parent f0e1d9e commit 3de1d6d
Show file tree
Hide file tree
Showing 36 changed files with 176 additions and 102 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 @ 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 @@ -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 @ 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 @@ -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 @ 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 {
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

0 comments on commit 3de1d6d

Please sign in to comment.