Skip to content

Commit

Permalink
Regenerate with latest gir-files
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Nov 19, 2024
1 parent 3ca4657 commit 2c4c152
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 14 deletions.
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion gdk4/src/auto/dmabuf_texture_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl DmabufTextureBuilder {
#[doc(alias = "color-state")]
pub fn color_state(&self) -> Option<ColorState> {
unsafe {
from_glib_full(ffi::gdk_dmabuf_texture_builder_get_color_state(
from_glib_none(ffi::gdk_dmabuf_texture_builder_get_color_state(
self.to_glib_none().0,
))
}
Expand Down
2 changes: 1 addition & 1 deletion gdk4/src/auto/gl_texture_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl GLTextureBuilder {
#[doc(alias = "color-state")]
pub fn color_state(&self) -> ColorState {
unsafe {
from_glib_full(ffi::gdk_gl_texture_builder_get_color_state(
from_glib_none(ffi::gdk_gl_texture_builder_get_color_state(
self.to_glib_none().0,
))
}
Expand Down
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
2 changes: 1 addition & 1 deletion 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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
4 changes: 4 additions & 0 deletions gtk4/src/auto/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@ bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[doc(alias = "GtkIconLookupFlags")]
pub struct IconLookupFlags: u32 {
#[cfg(feature = "v4_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
#[doc(alias = "GTK_ICON_LOOKUP_NONE")]
const NONE = ffi::GTK_ICON_LOOKUP_NONE as _;
#[doc(alias = "GTK_ICON_LOOKUP_FORCE_REGULAR")]
const FORCE_REGULAR = ffi::GTK_ICON_LOOKUP_FORCE_REGULAR as _;
#[doc(alias = "GTK_ICON_LOOKUP_FORCE_SYMBOLIC")]
Expand Down
17 changes: 17 additions & 0 deletions gtk4/src/auto/text_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,23 @@ pub trait TextViewExt: IsA<TextView> + 'static {
unsafe { ffi::gtk_text_view_get_top_margin(self.as_ref().to_glib_none().0) }
}

#[cfg(feature = "v4_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
#[doc(alias = "gtk_text_view_get_visible_offset")]
#[doc(alias = "get_visible_offset")]
fn visible_offset(&self) -> (f64, f64) {
unsafe {
let mut x_offset = std::mem::MaybeUninit::uninit();
let mut y_offset = std::mem::MaybeUninit::uninit();
ffi::gtk_text_view_get_visible_offset(
self.as_ref().to_glib_none().0,
x_offset.as_mut_ptr(),
y_offset.as_mut_ptr(),
);
(x_offset.assume_init(), y_offset.assume_init())
}
}

#[doc(alias = "gtk_text_view_get_visible_rect")]
#[doc(alias = "get_visible_rect")]
fn visible_rect(&self) -> gdk::Rectangle {
Expand Down
2 changes: 1 addition & 1 deletion gtk4/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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)
10 changes: 10 additions & 0 deletions gtk4/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,9 @@ pub const GTK_FONT_CHOOSER_LEVEL_VARIATIONS: GtkFontChooserLevel = 4;
pub const GTK_FONT_CHOOSER_LEVEL_FEATURES: GtkFontChooserLevel = 8;

pub type GtkIconLookupFlags = c_uint;
#[cfg(feature = "v4_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
pub const GTK_ICON_LOOKUP_NONE: GtkIconLookupFlags = 0;
pub const GTK_ICON_LOOKUP_FORCE_REGULAR: GtkIconLookupFlags = 1;
pub const GTK_ICON_LOOKUP_FORCE_SYMBOLIC: GtkIconLookupFlags = 2;
pub const GTK_ICON_LOOKUP_PRELOAD: GtkIconLookupFlags = 4;
Expand Down Expand Up @@ -19013,6 +19016,13 @@ extern "C" {
pub fn gtk_text_view_get_rtl_context(text_view: *mut GtkTextView) -> *mut pango::PangoContext;
pub fn gtk_text_view_get_tabs(text_view: *mut GtkTextView) -> *mut pango::PangoTabArray;
pub fn gtk_text_view_get_top_margin(text_view: *mut GtkTextView) -> c_int;
#[cfg(feature = "v4_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
pub fn gtk_text_view_get_visible_offset(
text_view: *mut GtkTextView,
x_offset: *mut c_double,
y_offset: *mut c_double,
);
pub fn gtk_text_view_get_visible_rect(
text_view: *mut GtkTextView,
visible_rect: *mut gdk::GdkRectangle,
Expand Down
1 change: 1 addition & 0 deletions gtk4/sys/tests/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,7 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GTK_GRAPHICS_OFFLOAD_ENABLED", "0"),
("(guint) GTK_ICON_LOOKUP_FORCE_REGULAR", "1"),
("(guint) GTK_ICON_LOOKUP_FORCE_SYMBOLIC", "2"),
("(guint) GTK_ICON_LOOKUP_NONE", "0"),
("(guint) GTK_ICON_LOOKUP_PRELOAD", "4"),
("(gint) GTK_ICON_SIZE_INHERIT", "0"),
("(gint) GTK_ICON_SIZE_LARGE", "2"),
Expand Down
1 change: 1 addition & 0 deletions gtk4/sys/tests/constant.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ int main() {
PRINT_CONSTANT((gint) GTK_GRAPHICS_OFFLOAD_ENABLED);
PRINT_CONSTANT((guint) GTK_ICON_LOOKUP_FORCE_REGULAR);
PRINT_CONSTANT((guint) GTK_ICON_LOOKUP_FORCE_SYMBOLIC);
PRINT_CONSTANT((guint) GTK_ICON_LOOKUP_NONE);
PRINT_CONSTANT((guint) GTK_ICON_LOOKUP_PRELOAD);
PRINT_CONSTANT((gint) GTK_ICON_SIZE_INHERIT);
PRINT_CONSTANT((gint) GTK_ICON_SIZE_LARGE);
Expand Down
2 changes: 1 addition & 1 deletion gtk4/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 @ 1307f50c19e8)
from gir-files (https://github.com/gtk-rs/gir-files @ 3e07ae5a14c7)
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

0 comments on commit 2c4c152

Please sign in to comment.