> =
+ Box_::from_raw(user_data as *mut _);
+ let callback: P = callback.into_inner();
+ callback(result);
+ }
+ let callback = open_multiple_text_files_trampoline::;
+ unsafe {
+ ffi::gtk_file_dialog_open_multiple_text_files(
+ self.to_glib_none().0,
+ parent.map(|p| p.as_ref()).to_glib_none().0,
+ cancellable.map(|p| p.as_ref()).to_glib_none().0,
+ Some(callback),
+ Box_::into_raw(user_data) as *mut _,
+ );
+ }
+ }
+
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn open_multiple_text_files_future(
+ &self,
+ parent: Option<&(impl IsA + Clone + 'static)>,
+ ) -> Pin<
+ Box_<
+ dyn std::future::Future<
+ Output = Result<(Option, glib::GString), glib::Error>,
+ > + 'static,
+ >,
+ > {
+ let parent = parent.map(ToOwned::to_owned);
+ Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
+ obj.open_multiple_text_files(
+ parent.as_ref().map(::std::borrow::Borrow::borrow),
+ Some(cancellable),
+ move |res| {
+ send.resolve(res);
+ },
+ );
+ }))
+ }
+
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ #[doc(alias = "gtk_file_dialog_open_text_file")]
+ pub fn open_text_file<
+ P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static,
+ >(
+ &self,
+ parent: Option<&impl IsA>,
+ cancellable: Option<&impl IsA>,
+ callback: P,
+ ) {
+ let main_context = glib::MainContext::ref_thread_default();
+ let is_main_context_owner = main_context.is_owner();
+ let has_acquired_main_context = (!is_main_context_owner)
+ .then(|| main_context.acquire().ok())
+ .flatten();
+ assert!(
+ is_main_context_owner || has_acquired_main_context.is_some(),
+ "Async operations only allowed if the thread is owning the MainContext"
+ );
+
+ let user_data: Box_> =
+ Box_::new(glib::thread_guard::ThreadGuard::new(callback));
+ unsafe extern "C" fn open_text_file_trampoline<
+ P: FnOnce(Result<(Option, glib::GString), glib::Error>) + 'static,
+ >(
+ _source_object: *mut glib::gobject_ffi::GObject,
+ res: *mut gio::ffi::GAsyncResult,
+ user_data: glib::ffi::gpointer,
+ ) {
+ let mut error = std::ptr::null_mut();
+ let mut encoding = std::ptr::null();
+ let ret = ffi::gtk_file_dialog_open_text_file_finish(
+ _source_object as *mut _,
+ res,
+ &mut encoding,
+ &mut error,
+ );
+ let result = if error.is_null() {
+ Ok((from_glib_full(ret), from_glib_none(encoding)))
+ } else {
+ Err(from_glib_full(error))
+ };
+ let callback: Box_> =
+ Box_::from_raw(user_data as *mut _);
+ let callback: P = callback.into_inner();
+ callback(result);
+ }
+ let callback = open_text_file_trampoline::;
+ unsafe {
+ ffi::gtk_file_dialog_open_text_file(
+ self.to_glib_none().0,
+ parent.map(|p| p.as_ref()).to_glib_none().0,
+ cancellable.map(|p| p.as_ref()).to_glib_none().0,
+ Some(callback),
+ Box_::into_raw(user_data) as *mut _,
+ );
+ }
+ }
+
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn open_text_file_future(
+ &self,
+ parent: Option<&(impl IsA + Clone + 'static)>,
+ ) -> Pin<
+ Box_<
+ dyn std::future::Future<
+ Output = Result<(Option, glib::GString), glib::Error>,
+ > + 'static,
+ >,
+ > {
+ let parent = parent.map(ToOwned::to_owned);
+ Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
+ obj.open_text_file(
+ parent.as_ref().map(::std::borrow::Borrow::borrow),
+ Some(cancellable),
+ move |res| {
+ send.resolve(res);
+ },
+ );
+ }))
+ }
+
#[doc(alias = "gtk_file_dialog_save")]
pub fn save) + 'static>(
&self,
@@ -299,6 +467,97 @@ impl FileDialog {
}))
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ #[doc(alias = "gtk_file_dialog_save_text_file")]
+ pub fn save_text_file<
+ P: FnOnce(Result<(Option, glib::GString, glib::GString), glib::Error>) + 'static,
+ >(
+ &self,
+ parent: Option<&impl IsA>,
+ cancellable: Option<&impl IsA>,
+ callback: P,
+ ) {
+ let main_context = glib::MainContext::ref_thread_default();
+ let is_main_context_owner = main_context.is_owner();
+ let has_acquired_main_context = (!is_main_context_owner)
+ .then(|| main_context.acquire().ok())
+ .flatten();
+ assert!(
+ is_main_context_owner || has_acquired_main_context.is_some(),
+ "Async operations only allowed if the thread is owning the MainContext"
+ );
+
+ let user_data: Box_> =
+ Box_::new(glib::thread_guard::ThreadGuard::new(callback));
+ unsafe extern "C" fn save_text_file_trampoline<
+ P: FnOnce(Result<(Option, glib::GString, glib::GString), glib::Error>)
+ + 'static,
+ >(
+ _source_object: *mut glib::gobject_ffi::GObject,
+ res: *mut gio::ffi::GAsyncResult,
+ user_data: glib::ffi::gpointer,
+ ) {
+ let mut error = std::ptr::null_mut();
+ let mut encoding = std::ptr::null();
+ let mut line_ending = std::ptr::null();
+ let ret = ffi::gtk_file_dialog_save_text_file_finish(
+ _source_object as *mut _,
+ res,
+ &mut encoding,
+ &mut line_ending,
+ &mut error,
+ );
+ let result = if error.is_null() {
+ Ok((
+ from_glib_full(ret),
+ from_glib_none(encoding),
+ from_glib_none(line_ending),
+ ))
+ } else {
+ Err(from_glib_full(error))
+ };
+ let callback: Box_> =
+ Box_::from_raw(user_data as *mut _);
+ let callback: P = callback.into_inner();
+ callback(result);
+ }
+ let callback = save_text_file_trampoline::;
+ unsafe {
+ ffi::gtk_file_dialog_save_text_file(
+ self.to_glib_none().0,
+ parent.map(|p| p.as_ref()).to_glib_none().0,
+ cancellable.map(|p| p.as_ref()).to_glib_none().0,
+ Some(callback),
+ Box_::into_raw(user_data) as *mut _,
+ );
+ }
+ }
+
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn save_text_file_future(
+ &self,
+ parent: Option<&(impl IsA + Clone + 'static)>,
+ ) -> Pin<
+ Box_<
+ dyn std::future::Future<
+ Output = Result<(Option, glib::GString, glib::GString), glib::Error>,
+ > + 'static,
+ >,
+ > {
+ let parent = parent.map(ToOwned::to_owned);
+ Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
+ obj.save_text_file(
+ parent.as_ref().map(::std::borrow::Borrow::borrow),
+ Some(cancellable),
+ move |res| {
+ send.resolve(res);
+ },
+ );
+ }))
+ }
+
#[doc(alias = "gtk_file_dialog_select_folder")]
pub fn select_folder) + 'static>(
&self,
diff --git a/gtk4/src/auto/filter.rs b/gtk4/src/auto/filter.rs
index 4235e80c87cb..34c78a3ee66c 100644
--- a/gtk4/src/auto/filter.rs
+++ b/gtk4/src/auto/filter.rs
@@ -4,6 +4,7 @@
use crate::{ffi, FilterChange, FilterMatch};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/fixed.rs b/gtk4/src/auto/fixed.rs
index 7aa4cde6281f..4d2fa8a6bc16 100644
--- a/gtk4/src/auto/fixed.rs
+++ b/gtk4/src/auto/fixed.rs
@@ -137,6 +137,14 @@ impl FixedBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/flags.rs b/gtk4/src/auto/flags.rs
index 3c7cf5d8e723..c42c033164c8 100644
--- a/gtk4/src/auto/flags.rs
+++ b/gtk4/src/auto/flags.rs
@@ -293,8 +293,8 @@ bitflags! {
const ICONTHEME = ffi::GTK_DEBUG_ICONTHEME as _;
#[doc(alias = "GTK_DEBUG_PRINTING")]
const PRINTING = ffi::GTK_DEBUG_PRINTING as _;
- #[doc(alias = "GTK_DEBUG_BUILDER")]
- const BUILDER = ffi::GTK_DEBUG_BUILDER as _;
+ #[doc(alias = "GTK_DEBUG_BUILDER_TRACE")]
+ const BUILDER_TRACE = ffi::GTK_DEBUG_BUILDER_TRACE as _;
#[doc(alias = "GTK_DEBUG_SIZE_REQUEST")]
const SIZE_REQUEST = ffi::GTK_DEBUG_SIZE_REQUEST as _;
#[doc(alias = "GTK_DEBUG_NO_CSS_CACHE")]
@@ -325,6 +325,8 @@ bitflags! {
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
#[doc(alias = "GTK_DEBUG_CSS")]
const CSS = ffi::GTK_DEBUG_CSS as _;
+ #[doc(alias = "GTK_DEBUG_BUILDER")]
+ const BUILDER = ffi::GTK_DEBUG_BUILDER as _;
}
}
diff --git a/gtk4/src/auto/flow_box.rs b/gtk4/src/auto/flow_box.rs
index d3d46e052005..ef2b654744fe 100644
--- a/gtk4/src/auto/flow_box.rs
+++ b/gtk4/src/auto/flow_box.rs
@@ -7,6 +7,7 @@ use crate::{
LayoutManager, MovementStep, Orientable, Orientation, Overflow, SelectionMode, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -953,6 +954,14 @@ impl FlowBoxBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/flow_box_child.rs b/gtk4/src/auto/flow_box_child.rs
index 8708d8ae7685..14a5346d0216 100644
--- a/gtk4/src/auto/flow_box_child.rs
+++ b/gtk4/src/auto/flow_box_child.rs
@@ -7,6 +7,7 @@ use crate::{
Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -148,6 +149,14 @@ impl FlowBoxChildBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/font_button.rs b/gtk4/src/auto/font_button.rs
index d9e15d4c57f4..c8feba3b6825 100644
--- a/gtk4/src/auto/font_button.rs
+++ b/gtk4/src/auto/font_button.rs
@@ -8,6 +8,7 @@ use crate::{
FontChooserLevel, LayoutManager, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -400,6 +401,14 @@ impl FontButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/font_chooser.rs b/gtk4/src/auto/font_chooser.rs
index 20f7a0d09e19..27bb5c32e4f0 100644
--- a/gtk4/src/auto/font_chooser.rs
+++ b/gtk4/src/auto/font_chooser.rs
@@ -5,6 +5,7 @@
use crate::{ffi, FontChooserLevel};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/font_chooser_dialog.rs b/gtk4/src/auto/font_chooser_dialog.rs
index 8b8952000881..501ad6ac080f 100644
--- a/gtk4/src/auto/font_chooser_dialog.rs
+++ b/gtk4/src/auto/font_chooser_dialog.rs
@@ -308,6 +308,14 @@ impl FontChooserDialogBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/font_chooser_widget.rs b/gtk4/src/auto/font_chooser_widget.rs
index b3676506a355..4dbf6d3c209d 100644
--- a/gtk4/src/auto/font_chooser_widget.rs
+++ b/gtk4/src/auto/font_chooser_widget.rs
@@ -171,6 +171,14 @@ impl FontChooserWidgetBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/font_dialog_button.rs b/gtk4/src/auto/font_dialog_button.rs
index 3f2fab378661..6d9f46420db1 100644
--- a/gtk4/src/auto/font_dialog_button.rs
+++ b/gtk4/src/auto/font_dialog_button.rs
@@ -6,6 +6,9 @@ use crate::{
ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, FontDialog, FontLevel,
LayoutManager, Overflow, Widget,
};
+#[cfg(feature = "v4_14")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
+use glib::object::ObjectType as _;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
@@ -569,6 +572,14 @@ impl FontDialogButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/frame.rs b/gtk4/src/auto/frame.rs
index af23298bbaad..432711daa863 100644
--- a/gtk4/src/auto/frame.rs
+++ b/gtk4/src/auto/frame.rs
@@ -168,6 +168,14 @@ impl FrameBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/gesture.rs b/gtk4/src/auto/gesture.rs
index 0ed6ea7e90eb..c64dfb6790d0 100644
--- a/gtk4/src/auto/gesture.rs
+++ b/gtk4/src/auto/gesture.rs
@@ -5,6 +5,7 @@
use crate::{ffi, EventController, EventSequenceState};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_click.rs b/gtk4/src/auto/gesture_click.rs
index 58aa2367b276..d61ecaa7dcec 100644
--- a/gtk4/src/auto/gesture_click.rs
+++ b/gtk4/src/auto/gesture_click.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_drag.rs b/gtk4/src/auto/gesture_drag.rs
index 6660e34b97f1..8c7935912abb 100644
--- a/gtk4/src/auto/gesture_drag.rs
+++ b/gtk4/src/auto/gesture_drag.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_long_press.rs b/gtk4/src/auto/gesture_long_press.rs
index db998b55a93a..0fb6bd7d1328 100644
--- a/gtk4/src/auto/gesture_long_press.rs
+++ b/gtk4/src/auto/gesture_long_press.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_pan.rs b/gtk4/src/auto/gesture_pan.rs
index 144afa97a631..4841f3dbde5f 100644
--- a/gtk4/src/auto/gesture_pan.rs
+++ b/gtk4/src/auto/gesture_pan.rs
@@ -7,6 +7,7 @@ use crate::{
PropagationLimit, PropagationPhase,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_rotate.rs b/gtk4/src/auto/gesture_rotate.rs
index 52d77a62e064..b7ac71c03b8c 100644
--- a/gtk4/src/auto/gesture_rotate.rs
+++ b/gtk4/src/auto/gesture_rotate.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_stylus.rs b/gtk4/src/auto/gesture_stylus.rs
index b00822d0b13e..38485924a7ac 100644
--- a/gtk4/src/auto/gesture_stylus.rs
+++ b/gtk4/src/auto/gesture_stylus.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_swipe.rs b/gtk4/src/auto/gesture_swipe.rs
index 8842a5faa5a0..9477f2bd90b6 100644
--- a/gtk4/src/auto/gesture_swipe.rs
+++ b/gtk4/src/auto/gesture_swipe.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, GestureSingle, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gesture_zoom.rs b/gtk4/src/auto/gesture_zoom.rs
index a74396ff87c4..845975db29b9 100644
--- a/gtk4/src/auto/gesture_zoom.rs
+++ b/gtk4/src/auto/gesture_zoom.rs
@@ -4,6 +4,7 @@
use crate::{ffi, EventController, Gesture, PropagationLimit, PropagationPhase};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/gl_area.rs b/gtk4/src/auto/gl_area.rs
index fc3df951853a..d2881749d02f 100644
--- a/gtk4/src/auto/gl_area.rs
+++ b/gtk4/src/auto/gl_area.rs
@@ -8,6 +8,7 @@ use crate::{
Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -178,6 +179,14 @@ impl GLAreaBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/graphics_offload.rs b/gtk4/src/auto/graphics_offload.rs
index a12ceaf8dea2..bce2525dc4bb 100644
--- a/gtk4/src/auto/graphics_offload.rs
+++ b/gtk4/src/auto/graphics_offload.rs
@@ -305,6 +305,14 @@ impl GraphicsOffloadBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/grid.rs b/gtk4/src/auto/grid.rs
index 8c809de3e7f9..64ad575d4d8c 100644
--- a/gtk4/src/auto/grid.rs
+++ b/gtk4/src/auto/grid.rs
@@ -174,6 +174,14 @@ impl GridBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/grid_view.rs b/gtk4/src/auto/grid_view.rs
index 9dc3cce36d67..0e5b1b9e52bd 100644
--- a/gtk4/src/auto/grid_view.rs
+++ b/gtk4/src/auto/grid_view.rs
@@ -11,6 +11,7 @@ use crate::{
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
use crate::{ListScrollFlags, ListTabBehavior, ScrollInfo};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -540,6 +541,14 @@ impl GridViewBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/header_bar.rs b/gtk4/src/auto/header_bar.rs
index 1e7c217cdff0..a74dad9a61dd 100644
--- a/gtk4/src/auto/header_bar.rs
+++ b/gtk4/src/auto/header_bar.rs
@@ -319,6 +319,14 @@ impl HeaderBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/icon_theme.rs b/gtk4/src/auto/icon_theme.rs
index c2107da5a19e..940cd5036478 100644
--- a/gtk4/src/auto/icon_theme.rs
+++ b/gtk4/src/auto/icon_theme.rs
@@ -4,6 +4,7 @@
use crate::{ffi, IconLookupFlags, IconPaintable, TextDirection};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/icon_view.rs b/gtk4/src/auto/icon_view.rs
index aac3480fb53f..322625e5b498 100644
--- a/gtk4/src/auto/icon_view.rs
+++ b/gtk4/src/auto/icon_view.rs
@@ -10,6 +10,7 @@ use crate::{
Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -1650,6 +1651,14 @@ impl IconViewBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/im_context.rs b/gtk4/src/auto/im_context.rs
index 948e11403c7d..5b32a32a574e 100644
--- a/gtk4/src/auto/im_context.rs
+++ b/gtk4/src/auto/im_context.rs
@@ -5,6 +5,7 @@
use crate::{ffi, InputHints, InputPurpose, Widget};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/image.rs b/gtk4/src/auto/image.rs
index 9900c36b63e8..ea62dd3eabd4 100644
--- a/gtk4/src/auto/image.rs
+++ b/gtk4/src/auto/image.rs
@@ -609,6 +609,14 @@ impl ImageBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/info_bar.rs b/gtk4/src/auto/info_bar.rs
index e9dcee89ccf4..1921d6ad71fb 100644
--- a/gtk4/src/auto/info_bar.rs
+++ b/gtk4/src/auto/info_bar.rs
@@ -8,6 +8,7 @@ use crate::{
MessageType, Overflow, ResponseType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -432,6 +433,14 @@ impl InfoBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/inscription.rs b/gtk4/src/auto/inscription.rs
index 4c5599d21b63..33f4fb4432d6 100644
--- a/gtk4/src/auto/inscription.rs
+++ b/gtk4/src/auto/inscription.rs
@@ -680,6 +680,14 @@ impl InscriptionBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/label.rs b/gtk4/src/auto/label.rs
index cb69d63576dd..23f7609c616b 100644
--- a/gtk4/src/auto/label.rs
+++ b/gtk4/src/auto/label.rs
@@ -13,6 +13,7 @@ use crate::{
LayoutManager, MovementStep, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -1263,6 +1264,14 @@ impl LabelBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/level_bar.rs b/gtk4/src/auto/level_bar.rs
index a8cba9af79c7..8a73f314e7c4 100644
--- a/gtk4/src/auto/level_bar.rs
+++ b/gtk4/src/auto/level_bar.rs
@@ -10,6 +10,7 @@ use crate::{
LevelBarMode, Orientable, Orientation, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -453,6 +454,14 @@ impl LevelBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/link_button.rs b/gtk4/src/auto/link_button.rs
index 4e76b094771d..84a7c3d06615 100644
--- a/gtk4/src/auto/link_button.rs
+++ b/gtk4/src/auto/link_button.rs
@@ -7,6 +7,7 @@ use crate::{
LayoutManager, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -307,6 +308,14 @@ impl LinkButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs
index 2e85ab75ad6a..2ed3c931faa1 100644
--- a/gtk4/src/auto/list_box.rs
+++ b/gtk4/src/auto/list_box.rs
@@ -10,6 +10,7 @@ use crate::{
ListBoxRow, MovementStep, Overflow, SelectionMode, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -908,6 +909,14 @@ impl ListBoxBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/list_box_row.rs b/gtk4/src/auto/list_box_row.rs
index 64620461471b..d3c85575ce3b 100644
--- a/gtk4/src/auto/list_box_row.rs
+++ b/gtk4/src/auto/list_box_row.rs
@@ -7,6 +7,7 @@ use crate::{
Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -160,6 +161,14 @@ impl ListBoxRowBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/list_view.rs b/gtk4/src/auto/list_view.rs
index 9246ee3ba726..cde92e1dd1f4 100644
--- a/gtk4/src/auto/list_view.rs
+++ b/gtk4/src/auto/list_view.rs
@@ -11,6 +11,7 @@ use crate::{
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
use crate::{ListScrollFlags, ListTabBehavior, ScrollInfo};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -560,6 +561,14 @@ impl ListViewBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/lock_button.rs b/gtk4/src/auto/lock_button.rs
index 70011ec3aebc..606cace3e843 100644
--- a/gtk4/src/auto/lock_button.rs
+++ b/gtk4/src/auto/lock_button.rs
@@ -464,6 +464,14 @@ impl LockButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/media_controls.rs b/gtk4/src/auto/media_controls.rs
index 7e3ea43e9993..2bd99d665ab8 100644
--- a/gtk4/src/auto/media_controls.rs
+++ b/gtk4/src/auto/media_controls.rs
@@ -198,6 +198,14 @@ impl MediaControlsBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/menu_button.rs b/gtk4/src/auto/menu_button.rs
index afe5269323b3..e127d2164e6d 100644
--- a/gtk4/src/auto/menu_button.rs
+++ b/gtk4/src/auto/menu_button.rs
@@ -6,6 +6,9 @@ use crate::{
ffi, Accessible, AccessibleRole, Align, ArrowType, Buildable, ConstraintTarget, LayoutManager,
Overflow, Popover, Widget,
};
+#[cfg(feature = "v4_4")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))]
+use glib::object::ObjectType as _;
use glib::{
prelude::*,
signal::{connect_raw, SignalHandlerId},
@@ -807,6 +810,14 @@ impl MenuButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/message_dialog.rs b/gtk4/src/auto/message_dialog.rs
index d83977c0797e..8690a295741e 100644
--- a/gtk4/src/auto/message_dialog.rs
+++ b/gtk4/src/auto/message_dialog.rs
@@ -545,6 +545,14 @@ impl MessageDialogBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/mod.rs b/gtk4/src/auto/mod.rs
index 3659e2117bd3..37668a1eb1cb 100644
--- a/gtk4/src/auto/mod.rs
+++ b/gtk4/src/auto/mod.rs
@@ -849,7 +849,9 @@ pub use self::shortcut_action::ShortcutAction;
mod shortcut_controller;
pub use self::shortcut_controller::ShortcutController;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
mod shortcut_label;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use self::shortcut_label::ShortcutLabel;
mod shortcut_manager;
@@ -858,16 +860,24 @@ pub use self::shortcut_manager::ShortcutManager;
mod shortcut_trigger;
pub use self::shortcut_trigger::ShortcutTrigger;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
mod shortcuts_group;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use self::shortcuts_group::ShortcutsGroup;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
mod shortcuts_section;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use self::shortcuts_section::ShortcutsSection;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
mod shortcuts_shortcut;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use self::shortcuts_shortcut::ShortcutsShortcut;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
mod shortcuts_window;
+#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use self::shortcuts_window::ShortcutsWindow;
mod signal_action;
@@ -1746,10 +1756,15 @@ pub(crate) mod builders {
pub use super::separator::SeparatorBuilder;
pub use super::settings::SettingsBuilder;
pub use super::shortcut::ShortcutBuilder;
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use super::shortcut_label::ShortcutLabelBuilder;
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use super::shortcuts_group::ShortcutsGroupBuilder;
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use super::shortcuts_section::ShortcutsSectionBuilder;
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use super::shortcuts_shortcut::ShortcutsShortcutBuilder;
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub use super::shortcuts_window::ShortcutsWindowBuilder;
pub use super::single_selection::SingleSelectionBuilder;
pub use super::slice_list_model::SliceListModelBuilder;
diff --git a/gtk4/src/auto/native_dialog.rs b/gtk4/src/auto/native_dialog.rs
index bedb5270fabc..07748fcf2ddd 100644
--- a/gtk4/src/auto/native_dialog.rs
+++ b/gtk4/src/auto/native_dialog.rs
@@ -4,6 +4,7 @@
use crate::{ffi, ResponseType, Window};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/notebook.rs b/gtk4/src/auto/notebook.rs
index 0fd688535990..2f92bbae9add 100644
--- a/gtk4/src/auto/notebook.rs
+++ b/gtk4/src/auto/notebook.rs
@@ -7,6 +7,7 @@ use crate::{
LayoutManager, NotebookPage, NotebookTab, Overflow, PackType, PositionType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -959,6 +960,14 @@ impl NotebookBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/overlay.rs b/gtk4/src/auto/overlay.rs
index c2a057f5749e..261b3cc7efb7 100644
--- a/gtk4/src/auto/overlay.rs
+++ b/gtk4/src/auto/overlay.rs
@@ -247,6 +247,14 @@ impl OverlayBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/page_setup_unix_dialog.rs b/gtk4/src/auto/page_setup_unix_dialog.rs
index a22debb272a1..733236dabd58 100644
--- a/gtk4/src/auto/page_setup_unix_dialog.rs
+++ b/gtk4/src/auto/page_setup_unix_dialog.rs
@@ -345,6 +345,14 @@ impl PageSetupUnixDialogBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/paned.rs b/gtk4/src/auto/paned.rs
index 4efee5e3ae51..83f4c330cf8f 100644
--- a/gtk4/src/auto/paned.rs
+++ b/gtk4/src/auto/paned.rs
@@ -10,6 +10,7 @@ use crate::{
Orientation, Overflow, ScrollType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -789,6 +790,14 @@ impl PanedBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/password_entry.rs b/gtk4/src/auto/password_entry.rs
index 33082e74f84a..de7ea2cc58e0 100644
--- a/gtk4/src/auto/password_entry.rs
+++ b/gtk4/src/auto/password_entry.rs
@@ -7,6 +7,7 @@ use crate::{
Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -357,6 +358,14 @@ impl PasswordEntryBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/picture.rs b/gtk4/src/auto/picture.rs
index 2ae7ef213617..c90955057eec 100644
--- a/gtk4/src/auto/picture.rs
+++ b/gtk4/src/auto/picture.rs
@@ -531,6 +531,14 @@ impl PictureBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/popover.rs b/gtk4/src/auto/popover.rs
index d6512c21bf03..f03f6b19e646 100644
--- a/gtk4/src/auto/popover.rs
+++ b/gtk4/src/auto/popover.rs
@@ -7,6 +7,7 @@ use crate::{
Overflow, PositionType, ShortcutManager, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -194,6 +195,14 @@ impl PopoverBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/popover_menu.rs b/gtk4/src/auto/popover_menu.rs
index 2831235325ce..0aa90d311102 100644
--- a/gtk4/src/auto/popover_menu.rs
+++ b/gtk4/src/auto/popover_menu.rs
@@ -370,6 +370,14 @@ impl PopoverMenuBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/popover_menu_bar.rs b/gtk4/src/auto/popover_menu_bar.rs
index 95d43e4e484a..77d3406582f6 100644
--- a/gtk4/src/auto/popover_menu_bar.rs
+++ b/gtk4/src/auto/popover_menu_bar.rs
@@ -214,6 +214,14 @@ impl PopoverMenuBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/print_job.rs b/gtk4/src/auto/print_job.rs
index 92e259df92f7..84035ae226f4 100644
--- a/gtk4/src/auto/print_job.rs
+++ b/gtk4/src/auto/print_job.rs
@@ -7,6 +7,7 @@ use crate::{
Printer,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/print_operation.rs b/gtk4/src/auto/print_operation.rs
index 11651c6d7772..860e88cef257 100644
--- a/gtk4/src/auto/print_operation.rs
+++ b/gtk4/src/auto/print_operation.rs
@@ -7,6 +7,7 @@ use crate::{
PrintOperationResult, PrintSettings, PrintStatus, Unit, Widget, Window,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/print_operation_preview.rs b/gtk4/src/auto/print_operation_preview.rs
index ce071e919ac5..ad6b29ea9687 100644
--- a/gtk4/src/auto/print_operation_preview.rs
+++ b/gtk4/src/auto/print_operation_preview.rs
@@ -4,6 +4,7 @@
use crate::{ffi, PageSetup, PrintContext};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/print_unix_dialog.rs b/gtk4/src/auto/print_unix_dialog.rs
index cf65c39d4737..b59416612194 100644
--- a/gtk4/src/auto/print_unix_dialog.rs
+++ b/gtk4/src/auto/print_unix_dialog.rs
@@ -735,6 +735,14 @@ impl PrintUnixDialogBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/printer.rs b/gtk4/src/auto/printer.rs
index 9653ddd5423e..8b121ffdd92d 100644
--- a/gtk4/src/auto/printer.rs
+++ b/gtk4/src/auto/printer.rs
@@ -4,6 +4,7 @@
use crate::{ffi, PageSetup, PaperSize, PrintCapabilities};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/progress_bar.rs b/gtk4/src/auto/progress_bar.rs
index 81fa2d733e6b..3b2102fcba55 100644
--- a/gtk4/src/auto/progress_bar.rs
+++ b/gtk4/src/auto/progress_bar.rs
@@ -423,6 +423,14 @@ impl ProgressBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/range.rs b/gtk4/src/auto/range.rs
index b9a4880fd785..1b680246fcd2 100644
--- a/gtk4/src/auto/range.rs
+++ b/gtk4/src/auto/range.rs
@@ -9,6 +9,7 @@ use crate::{
ffi, Accessible, Adjustment, Buildable, ConstraintTarget, Orientable, ScrollType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/recent_manager.rs b/gtk4/src/auto/recent_manager.rs
index 345ef66e3c94..0f814b0211c9 100644
--- a/gtk4/src/auto/recent_manager.rs
+++ b/gtk4/src/auto/recent_manager.rs
@@ -4,6 +4,7 @@
use crate::{ffi, RecentData, RecentInfo};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/revealer.rs b/gtk4/src/auto/revealer.rs
index 8ae6a815cad9..0b0ceb9e2c35 100644
--- a/gtk4/src/auto/revealer.rs
+++ b/gtk4/src/auto/revealer.rs
@@ -353,6 +353,14 @@ impl RevealerBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/scale.rs b/gtk4/src/auto/scale.rs
index 5675ff8793dc..6e2098544734 100644
--- a/gtk4/src/auto/scale.rs
+++ b/gtk4/src/auto/scale.rs
@@ -242,6 +242,14 @@ impl ScaleBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/scale_button.rs b/gtk4/src/auto/scale_button.rs
index 7aa9666912a7..277b3c621742 100644
--- a/gtk4/src/auto/scale_button.rs
+++ b/gtk4/src/auto/scale_button.rs
@@ -10,6 +10,7 @@ use crate::{
LayoutManager, Orientable, Orientation, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -193,6 +194,14 @@ impl ScaleButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/scrollbar.rs b/gtk4/src/auto/scrollbar.rs
index 9ed2a1ea5f6a..e3aa7a53577d 100644
--- a/gtk4/src/auto/scrollbar.rs
+++ b/gtk4/src/auto/scrollbar.rs
@@ -209,6 +209,14 @@ impl ScrollbarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/scrolled_window.rs b/gtk4/src/auto/scrolled_window.rs
index 4c78f687fc6c..d88619fbd59f 100644
--- a/gtk4/src/auto/scrolled_window.rs
+++ b/gtk4/src/auto/scrolled_window.rs
@@ -7,6 +7,7 @@ use crate::{
DirectionType, LayoutManager, Overflow, PolicyType, PositionType, ScrollType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -1101,6 +1102,14 @@ impl ScrolledWindowBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/search_bar.rs b/gtk4/src/auto/search_bar.rs
index 6651886ca537..a2b1fa419ead 100644
--- a/gtk4/src/auto/search_bar.rs
+++ b/gtk4/src/auto/search_bar.rs
@@ -354,6 +354,14 @@ impl SearchBarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/search_entry.rs b/gtk4/src/auto/search_entry.rs
index 9b353e4201a0..046d5d787cf1 100644
--- a/gtk4/src/auto/search_entry.rs
+++ b/gtk4/src/auto/search_entry.rs
@@ -10,6 +10,7 @@ use crate::{
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
use crate::{InputHints, InputPurpose};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -556,6 +557,14 @@ impl SearchEntryBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/section_model.rs b/gtk4/src/auto/section_model.rs
index b9590b7b8ae9..19faa60fa16f 100644
--- a/gtk4/src/auto/section_model.rs
+++ b/gtk4/src/auto/section_model.rs
@@ -4,6 +4,7 @@
use crate::ffi;
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/selection_model.rs b/gtk4/src/auto/selection_model.rs
index 41d37bd5241d..f699612031e2 100644
--- a/gtk4/src/auto/selection_model.rs
+++ b/gtk4/src/auto/selection_model.rs
@@ -4,6 +4,7 @@
use crate::{ffi, Bitset};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/separator.rs b/gtk4/src/auto/separator.rs
index 4b2ba6261061..548e5fa8b30f 100644
--- a/gtk4/src/auto/separator.rs
+++ b/gtk4/src/auto/separator.rs
@@ -137,6 +137,14 @@ impl SeparatorBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/shortcut_label.rs b/gtk4/src/auto/shortcut_label.rs
index aada08f35b15..0f3c43e419dd 100644
--- a/gtk4/src/auto/shortcut_label.rs
+++ b/gtk4/src/auto/shortcut_label.rs
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
+#![allow(deprecated)]
use crate::{
ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, LayoutManager, Overflow,
@@ -23,6 +24,8 @@ glib::wrapper! {
}
impl ShortcutLabel {
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcut_label_new")]
pub fn new(accelerator: &str) -> ShortcutLabel {
assert_initialized_main_thread!();
@@ -40,6 +43,8 @@ impl ShortcutLabel {
ShortcutLabelBuilder::new()
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcut_label_get_accelerator")]
#[doc(alias = "get_accelerator")]
pub fn accelerator(&self) -> Option {
@@ -50,6 +55,8 @@ impl ShortcutLabel {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcut_label_get_disabled_text")]
#[doc(alias = "get_disabled_text")]
#[doc(alias = "disabled-text")]
@@ -61,6 +68,8 @@ impl ShortcutLabel {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcut_label_set_accelerator")]
#[doc(alias = "accelerator")]
pub fn set_accelerator(&self, accelerator: &str) {
@@ -72,6 +81,8 @@ impl ShortcutLabel {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcut_label_set_disabled_text")]
#[doc(alias = "disabled-text")]
pub fn set_disabled_text(&self, disabled_text: &str) {
@@ -83,6 +94,7 @@ impl ShortcutLabel {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accelerator")]
pub fn connect_accelerator_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_accelerator_trampoline(
@@ -106,6 +118,7 @@ impl ShortcutLabel {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "disabled-text")]
pub fn connect_disabled_text_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_disabled_text_trampoline(
@@ -152,12 +165,14 @@ impl ShortcutLabelBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn accelerator(self, accelerator: impl Into) -> Self {
Self {
builder: self.builder.property("accelerator", accelerator.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn disabled_text(self, disabled_text: impl Into) -> Self {
Self {
builder: self.builder.property("disabled-text", disabled_text.into()),
@@ -244,6 +259,14 @@ impl ShortcutLabelBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/shortcuts_group.rs b/gtk4/src/auto/shortcuts_group.rs
index 35bb06b8f6ed..71dc24587bb5 100644
--- a/gtk4/src/auto/shortcuts_group.rs
+++ b/gtk4/src/auto/shortcuts_group.rs
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
+#![allow(deprecated)]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
@@ -34,8 +35,10 @@ impl ShortcutsGroup {
ShortcutsGroupBuilder::new()
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcuts_group_add_shortcut")]
pub fn add_shortcut(&self, shortcut: &ShortcutsShortcut) {
unsafe {
@@ -43,36 +46,44 @@ impl ShortcutsGroup {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accel-size-group")]
pub fn set_accel_size_group(&self, accel_size_group: Option<&SizeGroup>) {
ObjectExt::set_property(self, "accel-size-group", accel_size_group)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn height(&self) -> u32 {
ObjectExt::property(self, "height")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(&self) -> Option {
ObjectExt::property(self, "title")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_title(&self, title: Option<&str>) {
ObjectExt::set_property(self, "title", title)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title-size-group")]
pub fn set_title_size_group(&self, title_size_group: Option<&SizeGroup>) {
ObjectExt::set_property(self, "title-size-group", title_size_group)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn view(&self) -> Option {
ObjectExt::property(self, "view")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_view(&self, view: Option<&str>) {
ObjectExt::set_property(self, "view", view)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accel-size-group")]
pub fn connect_accel_size_group_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_accel_size_group_trampoline<
@@ -98,6 +109,7 @@ impl ShortcutsGroup {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "height")]
pub fn connect_height_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_height_trampoline(
@@ -121,6 +133,7 @@ impl ShortcutsGroup {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title")]
pub fn connect_title_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_title_trampoline(
@@ -144,6 +157,7 @@ impl ShortcutsGroup {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title-size-group")]
pub fn connect_title_size_group_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_title_size_group_trampoline<
@@ -169,6 +183,7 @@ impl ShortcutsGroup {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view")]
pub fn connect_view_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_view_trampoline(
@@ -209,6 +224,7 @@ impl ShortcutsGroupBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn accel_size_group(self, accel_size_group: &SizeGroup) -> Self {
Self {
builder: self
@@ -217,12 +233,14 @@ impl ShortcutsGroupBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(self, title: impl Into) -> Self {
Self {
builder: self.builder.property("title", title.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title_size_group(self, title_size_group: &SizeGroup) -> Self {
Self {
builder: self
@@ -231,6 +249,7 @@ impl ShortcutsGroupBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn view(self, view: impl Into) -> Self {
Self {
builder: self.builder.property("view", view.into()),
@@ -345,6 +364,14 @@ impl ShortcutsGroupBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/shortcuts_section.rs b/gtk4/src/auto/shortcuts_section.rs
index 475a97a34bd7..8c8b4a604d7f 100644
--- a/gtk4/src/auto/shortcuts_section.rs
+++ b/gtk4/src/auto/shortcuts_section.rs
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
+#![allow(deprecated)]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
@@ -34,8 +35,10 @@ impl ShortcutsSection {
ShortcutsSectionBuilder::new()
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcuts_section_add_group")]
pub fn add_group(&self, group: &ShortcutsGroup) {
unsafe {
@@ -43,44 +46,53 @@ impl ShortcutsSection {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "max-height")]
pub fn max_height(&self) -> u32 {
ObjectExt::property(self, "max-height")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "max-height")]
pub fn set_max_height(&self, max_height: u32) {
ObjectExt::set_property(self, "max-height", max_height)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn section_name(&self) -> Option {
ObjectExt::property(self, "section-name")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn set_section_name(&self, section_name: Option<&str>) {
ObjectExt::set_property(self, "section-name", section_name)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(&self) -> Option {
ObjectExt::property(self, "title")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_title(&self, title: Option<&str>) {
ObjectExt::set_property(self, "title", title)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn view_name(&self) -> Option {
ObjectExt::property(self, "view-name")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn set_view_name(&self, view_name: Option<&str>) {
ObjectExt::set_property(self, "view-name", view_name)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "max-height")]
pub fn connect_max_height_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_max_height_trampoline(
@@ -104,6 +116,7 @@ impl ShortcutsSection {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn connect_section_name_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_section_name_trampoline(
@@ -127,6 +140,7 @@ impl ShortcutsSection {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title")]
pub fn connect_title_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_title_trampoline(
@@ -150,6 +164,7 @@ impl ShortcutsSection {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn connect_view_name_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_view_name_trampoline(
@@ -190,24 +205,28 @@ impl ShortcutsSectionBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn max_height(self, max_height: u32) -> Self {
Self {
builder: self.builder.property("max-height", max_height),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn section_name(self, section_name: impl Into) -> Self {
Self {
builder: self.builder.property("section-name", section_name.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(self, title: impl Into) -> Self {
Self {
builder: self.builder.property("title", title.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn view_name(self, view_name: impl Into) -> Self {
Self {
builder: self.builder.property("view-name", view_name.into()),
@@ -322,6 +341,14 @@ impl ShortcutsSectionBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/shortcuts_shortcut.rs b/gtk4/src/auto/shortcuts_shortcut.rs
index 7196bce20334..242c584458ba 100644
--- a/gtk4/src/auto/shortcuts_shortcut.rs
+++ b/gtk4/src/auto/shortcuts_shortcut.rs
@@ -31,78 +31,95 @@ impl ShortcutsShortcut {
ShortcutsShortcutBuilder::new()
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accel-size-group")]
pub fn set_accel_size_group(&self, accel_size_group: Option<&SizeGroup>) {
ObjectExt::set_property(self, "accel-size-group", accel_size_group)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn accelerator(&self) -> Option {
ObjectExt::property(self, "accelerator")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_accelerator(&self, accelerator: Option<&str>) {
ObjectExt::set_property(self, "accelerator", accelerator)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "action-name")]
pub fn action_name(&self) -> Option {
ObjectExt::property(self, "action-name")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "action-name")]
pub fn set_action_name(&self, action_name: Option<&str>) {
ObjectExt::set_property(self, "action-name", action_name)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn icon(&self) -> Option {
ObjectExt::property(self, "icon")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_icon>(&self, icon: Option<&P>) {
ObjectExt::set_property(self, "icon", icon)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "icon-set")]
pub fn is_icon_set(&self) -> bool {
ObjectExt::property(self, "icon-set")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "shortcut-type")]
pub fn shortcut_type(&self) -> ShortcutType {
ObjectExt::property(self, "shortcut-type")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "shortcut-type")]
pub fn set_shortcut_type(&self, shortcut_type: ShortcutType) {
ObjectExt::set_property(self, "shortcut-type", shortcut_type)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn subtitle(&self) -> Option {
ObjectExt::property(self, "subtitle")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_subtitle(&self, subtitle: Option<&str>) {
ObjectExt::set_property(self, "subtitle", subtitle)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "subtitle-set")]
pub fn is_subtitle_set(&self) -> bool {
ObjectExt::property(self, "subtitle-set")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(&self) -> Option {
ObjectExt::property(self, "title")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn set_title(&self, title: Option<&str>) {
ObjectExt::set_property(self, "title", title)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title-size-group")]
pub fn set_title_size_group(&self, title_size_group: Option<&SizeGroup>) {
ObjectExt::set_property(self, "title-size-group", title_size_group)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accel-size-group")]
pub fn connect_accel_size_group_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_accel_size_group_trampoline<
@@ -128,6 +145,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "accelerator")]
pub fn connect_accelerator_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_accelerator_trampoline(
@@ -151,6 +169,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "action-name")]
pub fn connect_action_name_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_action_name_trampoline(
@@ -174,6 +193,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "direction")]
pub fn connect_direction_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_direction_trampoline(
@@ -197,6 +217,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "icon")]
pub fn connect_icon_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_icon_trampoline(
@@ -220,6 +241,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "icon-set")]
pub fn connect_icon_set_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_icon_set_trampoline(
@@ -243,6 +265,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "shortcut-type")]
pub fn connect_shortcut_type_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_shortcut_type_trampoline<
@@ -268,6 +291,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "subtitle")]
pub fn connect_subtitle_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_subtitle_trampoline(
@@ -291,6 +315,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "subtitle-set")]
pub fn connect_subtitle_set_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_subtitle_set_trampoline(
@@ -314,6 +339,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title")]
pub fn connect_title_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_title_trampoline(
@@ -337,6 +363,7 @@ impl ShortcutsShortcut {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "title-size-group")]
pub fn connect_title_size_group_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_title_size_group_trampoline<
@@ -379,6 +406,7 @@ impl ShortcutsShortcutBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn accel_size_group(self, accel_size_group: &SizeGroup) -> Self {
Self {
builder: self
@@ -387,60 +415,70 @@ impl ShortcutsShortcutBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn accelerator(self, accelerator: impl Into) -> Self {
Self {
builder: self.builder.property("accelerator", accelerator.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn action_name(self, action_name: impl Into) -> Self {
Self {
builder: self.builder.property("action-name", action_name.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn direction(self, direction: TextDirection) -> Self {
Self {
builder: self.builder.property("direction", direction),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn icon(self, icon: &impl IsA) -> Self {
Self {
builder: self.builder.property("icon", icon.clone().upcast()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn icon_set(self, icon_set: bool) -> Self {
Self {
builder: self.builder.property("icon-set", icon_set),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn shortcut_type(self, shortcut_type: ShortcutType) -> Self {
Self {
builder: self.builder.property("shortcut-type", shortcut_type),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn subtitle(self, subtitle: impl Into) -> Self {
Self {
builder: self.builder.property("subtitle", subtitle.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn subtitle_set(self, subtitle_set: bool) -> Self {
Self {
builder: self.builder.property("subtitle-set", subtitle_set),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title(self, title: impl Into) -> Self {
Self {
builder: self.builder.property("title", title.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn title_size_group(self, title_size_group: &SizeGroup) -> Self {
Self {
builder: self
@@ -529,6 +567,14 @@ impl ShortcutsShortcutBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/shortcuts_window.rs b/gtk4/src/auto/shortcuts_window.rs
index 716de80eeaa2..95d0124c4eb6 100644
--- a/gtk4/src/auto/shortcuts_window.rs
+++ b/gtk4/src/auto/shortcuts_window.rs
@@ -1,6 +1,7 @@
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
+#![allow(deprecated)]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
@@ -10,6 +11,7 @@ use crate::{
LayoutManager, Native, Overflow, Root, ShortcutManager, Widget, Window,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -34,8 +36,10 @@ impl ShortcutsWindow {
ShortcutsWindowBuilder::new()
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[cfg(feature = "v4_14")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
+ #[allow(deprecated)]
#[doc(alias = "gtk_shortcuts_window_add_section")]
pub fn add_section(&self, section: &ShortcutsSection) {
unsafe {
@@ -43,26 +47,31 @@ impl ShortcutsWindow {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn section_name(&self) -> Option {
ObjectExt::property(self, "section-name")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn set_section_name(&self, section_name: Option<&str>) {
ObjectExt::set_property(self, "section-name", section_name)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn view_name(&self) -> Option {
ObjectExt::property(self, "view-name")
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn set_view_name(&self, view_name: Option<&str>) {
ObjectExt::set_property(self, "view-name", view_name)
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "close")]
pub fn connect_close(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn close_trampoline(
@@ -85,10 +94,12 @@ impl ShortcutsWindow {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn emit_close(&self) {
self.emit_by_name::<()>("close", &[]);
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "search")]
pub fn connect_search(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn search_trampoline(
@@ -111,10 +122,12 @@ impl ShortcutsWindow {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn emit_search(&self) {
self.emit_by_name::<()>("search", &[]);
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "section-name")]
pub fn connect_section_name_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_section_name_trampoline(
@@ -138,6 +151,7 @@ impl ShortcutsWindow {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
#[doc(alias = "view-name")]
pub fn connect_view_name_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_view_name_trampoline(
@@ -178,12 +192,14 @@ impl ShortcutsWindowBuilder {
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn section_name(self, section_name: impl Into) -> Self {
Self {
builder: self.builder.property("section-name", section_name.into()),
}
}
+ #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")]
pub fn view_name(self, view_name: impl Into) -> Self {
Self {
builder: self.builder.property("view-name", view_name.into()),
@@ -426,6 +442,14 @@ impl ShortcutsWindowBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/signal_list_item_factory.rs b/gtk4/src/auto/signal_list_item_factory.rs
index a22d310dd99c..12dd9aa5d667 100644
--- a/gtk4/src/auto/signal_list_item_factory.rs
+++ b/gtk4/src/auto/signal_list_item_factory.rs
@@ -5,7 +5,10 @@
use crate::{ffi, ListItemFactory};
#[cfg(feature = "v4_8")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))]
-use glib::signal::{connect_raw, SignalHandlerId};
+use glib::{
+ object::ObjectType as _,
+ signal::{connect_raw, SignalHandlerId},
+};
use glib::{prelude::*, translate::*};
#[cfg(feature = "v4_8")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))]
diff --git a/gtk4/src/auto/snapshot.rs b/gtk4/src/auto/snapshot.rs
index d59ad6bfad95..99508d54d865 100644
--- a/gtk4/src/auto/snapshot.rs
+++ b/gtk4/src/auto/snapshot.rs
@@ -300,6 +300,27 @@ pub trait SnapshotExt: IsA + sealed::Sealed + 'static {
}
}
+ #[doc(alias = "gtk_snapshot_free_to_node")]
+ #[doc(alias = "free_to_node")]
+ fn to_node(self) -> Option {
+ unsafe {
+ from_glib_full(ffi::gtk_snapshot_free_to_node(
+ self.upcast().into_glib_ptr(),
+ ))
+ }
+ }
+
+ #[doc(alias = "gtk_snapshot_free_to_paintable")]
+ #[doc(alias = "free_to_paintable")]
+ fn to_paintable(self, size: Option<&graphene::Size>) -> Option {
+ unsafe {
+ from_glib_full(ffi::gtk_snapshot_free_to_paintable(
+ self.upcast().into_glib_ptr(),
+ size.to_glib_none().0,
+ ))
+ }
+ }
+
#[cfg_attr(feature = "v4_16", deprecated = "Since 4.16")]
#[allow(deprecated)]
#[doc(alias = "gtk_snapshot_gl_shader_pop_texture")]
@@ -622,21 +643,6 @@ pub trait SnapshotExt: IsA + sealed::Sealed + 'static {
}
}
- #[doc(alias = "gtk_snapshot_to_node")]
- fn to_node(self) -> Option {
- unsafe { from_glib_full(ffi::gtk_snapshot_to_node(self.upcast().into_glib_ptr())) }
- }
-
- #[doc(alias = "gtk_snapshot_to_paintable")]
- fn to_paintable(self, size: Option<&graphene::Size>) -> Option {
- unsafe {
- from_glib_full(ffi::gtk_snapshot_to_paintable(
- self.upcast().into_glib_ptr(),
- size.to_glib_none().0,
- ))
- }
- }
-
#[doc(alias = "gtk_snapshot_transform")]
fn transform(&self, transform: Option<&gsk::Transform>) {
unsafe {
diff --git a/gtk4/src/auto/sorter.rs b/gtk4/src/auto/sorter.rs
index 74d6ee7a12e2..65f25990e13d 100644
--- a/gtk4/src/auto/sorter.rs
+++ b/gtk4/src/auto/sorter.rs
@@ -4,6 +4,7 @@
use crate::{ffi, Ordering, SorterChange, SorterOrder};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/spin_button.rs b/gtk4/src/auto/spin_button.rs
index 8251a2caee58..9b2fd39abcce 100644
--- a/gtk4/src/auto/spin_button.rs
+++ b/gtk4/src/auto/spin_button.rs
@@ -11,6 +11,7 @@ use crate::{
SpinType, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -818,6 +819,14 @@ impl SpinButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/spinner.rs b/gtk4/src/auto/spinner.rs
index 36820a9764b1..69707c727644 100644
--- a/gtk4/src/auto/spinner.rs
+++ b/gtk4/src/auto/spinner.rs
@@ -198,6 +198,14 @@ impl SpinnerBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/stack.rs b/gtk4/src/auto/stack.rs
index 029d7d6f73a3..8e6abf17ba5f 100644
--- a/gtk4/src/auto/stack.rs
+++ b/gtk4/src/auto/stack.rs
@@ -606,6 +606,14 @@ impl StackBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/stack_sidebar.rs b/gtk4/src/auto/stack_sidebar.rs
index c11464b85250..bfb3fdfbdf61 100644
--- a/gtk4/src/auto/stack_sidebar.rs
+++ b/gtk4/src/auto/stack_sidebar.rs
@@ -183,6 +183,14 @@ impl StackSidebarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/stack_switcher.rs b/gtk4/src/auto/stack_switcher.rs
index 753a7fec0175..cba5617f384c 100644
--- a/gtk4/src/auto/stack_switcher.rs
+++ b/gtk4/src/auto/stack_switcher.rs
@@ -183,6 +183,14 @@ impl StackSwitcherBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/statusbar.rs b/gtk4/src/auto/statusbar.rs
index 1213a24a2942..b14e4cf5c171 100644
--- a/gtk4/src/auto/statusbar.rs
+++ b/gtk4/src/auto/statusbar.rs
@@ -8,6 +8,7 @@ use crate::{
Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -248,6 +249,14 @@ impl StatusbarBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/style_provider.rs b/gtk4/src/auto/style_provider.rs
index 8a64b8b86a29..6dcab2e94560 100644
--- a/gtk4/src/auto/style_provider.rs
+++ b/gtk4/src/auto/style_provider.rs
@@ -4,6 +4,7 @@
use crate::ffi;
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/switch.rs b/gtk4/src/auto/switch.rs
index 75dac6580831..f8c36fdb0ba1 100644
--- a/gtk4/src/auto/switch.rs
+++ b/gtk4/src/auto/switch.rs
@@ -7,6 +7,7 @@ use crate::{
Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -281,6 +282,14 @@ impl SwitchBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/text.rs b/gtk4/src/auto/text.rs
index 9447d22e0d54..e7862c6ee124 100644
--- a/gtk4/src/auto/text.rs
+++ b/gtk4/src/auto/text.rs
@@ -1016,6 +1016,14 @@ impl TextBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/text_buffer.rs b/gtk4/src/auto/text_buffer.rs
index 668e71e69384..a9f23e264904 100644
--- a/gtk4/src/auto/text_buffer.rs
+++ b/gtk4/src/auto/text_buffer.rs
@@ -4,6 +4,7 @@
use crate::{ffi, TextChildAnchor, TextIter, TextMark, TextTag, TextTagTable};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/text_tag_table.rs b/gtk4/src/auto/text_tag_table.rs
index ca714730f1b7..660b9fc3d140 100644
--- a/gtk4/src/auto/text_tag_table.rs
+++ b/gtk4/src/auto/text_tag_table.rs
@@ -4,6 +4,7 @@
use crate::{ffi, Buildable, TextTag};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/text_view.rs b/gtk4/src/auto/text_view.rs
index ed8914235500..e70cfabdcd03 100644
--- a/gtk4/src/auto/text_view.rs
+++ b/gtk4/src/auto/text_view.rs
@@ -12,6 +12,7 @@ use crate::{
TextMark, TextWindowType, Widget, WrapMode,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -305,6 +306,14 @@ impl TextViewBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/toggle_button.rs b/gtk4/src/auto/toggle_button.rs
index d1dbb70abef6..fa82c1e393cf 100644
--- a/gtk4/src/auto/toggle_button.rs
+++ b/gtk4/src/auto/toggle_button.rs
@@ -8,6 +8,7 @@ use crate::{
LayoutManager, Overflow, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -217,6 +218,14 @@ impl ToggleButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/tree_expander.rs b/gtk4/src/auto/tree_expander.rs
index 9f2875707e03..5d77286cf70c 100644
--- a/gtk4/src/auto/tree_expander.rs
+++ b/gtk4/src/auto/tree_expander.rs
@@ -436,6 +436,14 @@ impl TreeExpanderBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/tree_model.rs b/gtk4/src/auto/tree_model.rs
index be73754f2f64..cef234d22414 100644
--- a/gtk4/src/auto/tree_model.rs
+++ b/gtk4/src/auto/tree_model.rs
@@ -5,6 +5,7 @@
use crate::{ffi, TreeIter, TreeModelFlags, TreePath};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/tree_selection.rs b/gtk4/src/auto/tree_selection.rs
index 0cfe357f6ed5..7a23c91f018a 100644
--- a/gtk4/src/auto/tree_selection.rs
+++ b/gtk4/src/auto/tree_selection.rs
@@ -5,6 +5,7 @@
use crate::{ffi, SelectionMode, TreeIter, TreeModel, TreePath, TreeView};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/tree_sortable.rs b/gtk4/src/auto/tree_sortable.rs
index 0d3ce6d03c15..1616c425f244 100644
--- a/gtk4/src/auto/tree_sortable.rs
+++ b/gtk4/src/auto/tree_sortable.rs
@@ -5,6 +5,7 @@
use crate::{ffi, TreeModel};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/tree_view.rs b/gtk4/src/auto/tree_view.rs
index bbf8cf59a135..c3301f57076f 100644
--- a/gtk4/src/auto/tree_view.rs
+++ b/gtk4/src/auto/tree_view.rs
@@ -10,6 +10,7 @@ use crate::{
TreeViewGridLines, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -277,6 +278,14 @@ impl TreeViewBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/tree_view_column.rs b/gtk4/src/auto/tree_view_column.rs
index 9f0aca1d6fbf..6bae16d710c2 100644
--- a/gtk4/src/auto/tree_view_column.rs
+++ b/gtk4/src/auto/tree_view_column.rs
@@ -8,6 +8,7 @@ use crate::{
TreeViewColumnSizing, Widget,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
diff --git a/gtk4/src/auto/versions.txt b/gtk4/src/auto/versions.txt
index bba14f1d708d..06f50dbf182f 100644
--- a/gtk4/src/auto/versions.txt
+++ b/gtk4/src/auto/versions.txt
@@ -1,2 +1,2 @@
-Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
-from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
+Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
+from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)
diff --git a/gtk4/src/auto/video.rs b/gtk4/src/auto/video.rs
index 81c2b783b2a4..4fa85703003b 100644
--- a/gtk4/src/auto/video.rs
+++ b/gtk4/src/auto/video.rs
@@ -443,6 +443,14 @@ impl VideoBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/viewport.rs b/gtk4/src/auto/viewport.rs
index 9cccb0e0d6fa..75e0a7c99897 100644
--- a/gtk4/src/auto/viewport.rs
+++ b/gtk4/src/auto/viewport.rs
@@ -258,6 +258,14 @@ impl ViewportBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/volume_button.rs b/gtk4/src/auto/volume_button.rs
index 5d96feccd0bb..2ab548ac6d59 100644
--- a/gtk4/src/auto/volume_button.rs
+++ b/gtk4/src/auto/volume_button.rs
@@ -229,6 +229,14 @@ impl VolumeButtonBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/widget.rs b/gtk4/src/auto/widget.rs
index b0bd2304f458..6a975da57d5c 100644
--- a/gtk4/src/auto/widget.rs
+++ b/gtk4/src/auto/widget.rs
@@ -9,6 +9,7 @@ use crate::{
Settings, SizeRequestMode, Snapshot, StateFlags, StyleContext, TextDirection, Tooltip,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -561,6 +562,19 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ #[doc(alias = "gtk_widget_get_limit_events")]
+ #[doc(alias = "get_limit_events")]
+ #[doc(alias = "limit-events")]
+ fn is_limit_events(&self) -> bool {
+ unsafe {
+ from_glib(ffi::gtk_widget_get_limit_events(
+ self.as_ref().to_glib_none().0,
+ ))
+ }
+ }
+
#[doc(alias = "gtk_widget_get_mapped")]
#[doc(alias = "get_mapped")]
fn is_mapped(&self) -> bool {
@@ -1269,6 +1283,19 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ #[doc(alias = "gtk_widget_set_limit_events")]
+ #[doc(alias = "limit-events")]
+ fn set_limit_events(&self, limit_events: bool) {
+ unsafe {
+ ffi::gtk_widget_set_limit_events(
+ self.as_ref().to_glib_none().0,
+ limit_events.into_glib(),
+ );
+ }
+ }
+
#[doc(alias = "gtk_widget_set_margin_bottom")]
#[doc(alias = "margin-bottom")]
fn set_margin_bottom(&self, margin: i32) {
@@ -2234,6 +2261,31 @@ pub trait WidgetExt: IsA + sealed::Sealed + 'static {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ #[doc(alias = "limit-events")]
+ fn connect_limit_events_notify(&self, f: F) -> SignalHandlerId {
+ unsafe extern "C" fn notify_limit_events_trampoline, F: Fn(&P) + 'static>(
+ this: *mut ffi::GtkWidget,
+ _param_spec: glib::ffi::gpointer,
+ f: glib::ffi::gpointer,
+ ) {
+ let f: &F = &*(f as *const F);
+ f(Widget::from_glib_borrow(this).unsafe_cast_ref())
+ }
+ unsafe {
+ let f: Box_ = Box_::new(f);
+ connect_raw(
+ self.as_ptr() as *mut _,
+ b"notify::limit-events\0".as_ptr() as *const _,
+ Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>(
+ notify_limit_events_trampoline:: as *const (),
+ )),
+ Box_::into_raw(f),
+ )
+ }
+ }
+
#[doc(alias = "margin-bottom")]
fn connect_margin_bottom_notify(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_margin_bottom_trampoline<
diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs
index 5f52d4dc951d..9db19a10bbf3 100644
--- a/gtk4/src/auto/window.rs
+++ b/gtk4/src/auto/window.rs
@@ -8,6 +8,7 @@ use crate::{
LayoutManager, Native, Overflow, Root, ShortcutManager, Widget, WindowGroup,
};
use glib::{
+ object::ObjectType as _,
prelude::*,
signal::{connect_raw, SignalHandlerId},
translate::*,
@@ -343,6 +344,14 @@ impl WindowBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/window_controls.rs b/gtk4/src/auto/window_controls.rs
index 81c6082997b3..3d5c85b266b1 100644
--- a/gtk4/src/auto/window_controls.rs
+++ b/gtk4/src/auto/window_controls.rs
@@ -273,6 +273,14 @@ impl WindowControlsBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/auto/window_handle.rs b/gtk4/src/auto/window_handle.rs
index 27793f11c48e..e5bb183607f7 100644
--- a/gtk4/src/auto/window_handle.rs
+++ b/gtk4/src/auto/window_handle.rs
@@ -186,6 +186,14 @@ impl WindowHandleBuilder {
}
}
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn limit_events(self, limit_events: bool) -> Self {
+ Self {
+ builder: self.builder.property("limit-events", limit_events),
+ }
+ }
+
pub fn margin_bottom(self, margin_bottom: i32) -> Self {
Self {
builder: self.builder.property("margin-bottom", margin_bottom),
diff --git a/gtk4/src/lib.rs b/gtk4/src/lib.rs
index 4fa96f711e04..1306bf03930e 100644
--- a/gtk4/src/lib.rs
+++ b/gtk4/src/lib.rs
@@ -2,6 +2,7 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![allow(deprecated)]
+#![allow(clippy::manual_c_str_literals)]
#![doc = include_str!("../README.md")]
// Re-export gtk dependencies
@@ -88,6 +89,7 @@ where
#[allow(clippy::derived_hash_with_manual_eq)]
#[allow(clippy::too_many_arguments)]
#[allow(clippy::type_complexity)]
+#[allow(unused_imports)]
mod auto;
#[macro_use]
diff --git a/gtk4/sys/src/lib.rs b/gtk4/sys/src/lib.rs
index dbe2f18aed72..f71bfcf27eea 100644
--- a/gtk4/sys/src/lib.rs
+++ b/gtk4/sys/src/lib.rs
@@ -105,6 +105,24 @@ pub const GTK_ACCESSIBLE_RELATION_ROW_INDEX: GtkAccessibleRelation = 14;
pub const GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT: GtkAccessibleRelation = 15;
pub const GTK_ACCESSIBLE_RELATION_ROW_SPAN: GtkAccessibleRelation = 16;
pub const GTK_ACCESSIBLE_RELATION_SET_SIZE: GtkAccessibleRelation = 17;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_LABEL_FOR: GtkAccessibleRelation = 18;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR: GtkAccessibleRelation = 19;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_CONTROLLED_BY: GtkAccessibleRelation = 20;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_DETAILS_FOR: GtkAccessibleRelation = 21;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR: GtkAccessibleRelation = 22;
+#[cfg(feature = "v4_18")]
+#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+pub const GTK_ACCESSIBLE_RELATION_FLOW_FROM: GtkAccessibleRelation = 23;
pub type GtkAccessibleRole = c_int;
pub const GTK_ACCESSIBLE_ROLE_ALERT: GtkAccessibleRole = 0;
@@ -1029,7 +1047,7 @@ pub const GTK_DEBUG_MODULES: GtkDebugFlags = 8;
pub const GTK_DEBUG_GEOMETRY: GtkDebugFlags = 16;
pub const GTK_DEBUG_ICONTHEME: GtkDebugFlags = 32;
pub const GTK_DEBUG_PRINTING: GtkDebugFlags = 64;
-pub const GTK_DEBUG_BUILDER: GtkDebugFlags = 128;
+pub const GTK_DEBUG_BUILDER_TRACE: GtkDebugFlags = 128;
pub const GTK_DEBUG_SIZE_REQUEST: GtkDebugFlags = 256;
pub const GTK_DEBUG_NO_CSS_CACHE: GtkDebugFlags = 512;
pub const GTK_DEBUG_INTERACTIVE: GtkDebugFlags = 1024;
@@ -1048,6 +1066,7 @@ pub const GTK_DEBUG_INVERT_TEXT_DIR: GtkDebugFlags = 524288;
#[cfg(feature = "v4_16")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_16")))]
pub const GTK_DEBUG_CSS: GtkDebugFlags = 1048576;
+pub const GTK_DEBUG_BUILDER: GtkDebugFlags = 2097152;
pub type GtkDialogFlags = c_uint;
pub const GTK_DIALOG_MODAL: GtkDialogFlags = 1;
@@ -13995,6 +14014,40 @@ extern "C" {
result: *mut gio::GAsyncResult,
error: *mut *mut glib::GError,
) -> *mut gio::GListModel;
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_open_multiple_text_files(
+ self_: *mut GtkFileDialog,
+ parent: *mut GtkWindow,
+ cancellable: *mut gio::GCancellable,
+ callback: gio::GAsyncReadyCallback,
+ user_data: gpointer,
+ );
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_open_multiple_text_files_finish(
+ self_: *mut GtkFileDialog,
+ result: *mut gio::GAsyncResult,
+ encoding: *mut *const c_char,
+ error: *mut *mut glib::GError,
+ ) -> *mut gio::GListModel;
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_open_text_file(
+ self_: *mut GtkFileDialog,
+ parent: *mut GtkWindow,
+ cancellable: *mut gio::GCancellable,
+ callback: gio::GAsyncReadyCallback,
+ user_data: gpointer,
+ );
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_open_text_file_finish(
+ self_: *mut GtkFileDialog,
+ result: *mut gio::GAsyncResult,
+ encoding: *mut *const c_char,
+ error: *mut *mut glib::GError,
+ ) -> *mut gio::GFile;
#[cfg(feature = "v4_10")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))]
pub fn gtk_file_dialog_save(
@@ -14011,6 +14064,24 @@ extern "C" {
result: *mut gio::GAsyncResult,
error: *mut *mut glib::GError,
) -> *mut gio::GFile;
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_save_text_file(
+ self_: *mut GtkFileDialog,
+ parent: *mut GtkWindow,
+ cancellable: *mut gio::GCancellable,
+ callback: gio::GAsyncReadyCallback,
+ user_data: gpointer,
+ );
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_file_dialog_save_text_file_finish(
+ self_: *mut GtkFileDialog,
+ result: *mut gio::GAsyncResult,
+ encoding: *mut *const c_char,
+ line_ending: *mut *const c_char,
+ error: *mut *mut glib::GError,
+ ) -> *mut gio::GFile;
#[cfg(feature = "v4_10")]
#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))]
pub fn gtk_file_dialog_select_folder(
@@ -20142,6 +20213,9 @@ extern "C" {
pub fn gtk_widget_get_hexpand_set(widget: *mut GtkWidget) -> gboolean;
pub fn gtk_widget_get_last_child(widget: *mut GtkWidget) -> *mut GtkWidget;
pub fn gtk_widget_get_layout_manager(widget: *mut GtkWidget) -> *mut GtkLayoutManager;
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_widget_get_limit_events(widget: *mut GtkWidget) -> gboolean;
pub fn gtk_widget_get_mapped(widget: *mut GtkWidget) -> gboolean;
pub fn gtk_widget_get_margin_bottom(widget: *mut GtkWidget) -> c_int;
pub fn gtk_widget_get_margin_end(widget: *mut GtkWidget) -> c_int;
@@ -20277,6 +20351,9 @@ extern "C" {
widget: *mut GtkWidget,
layout_manager: *mut GtkLayoutManager,
);
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_widget_set_limit_events(widget: *mut GtkWidget, limit_events: gboolean);
pub fn gtk_widget_set_margin_bottom(widget: *mut GtkWidget, margin: c_int);
pub fn gtk_widget_set_margin_end(widget: *mut GtkWidget, margin: c_int);
pub fn gtk_widget_set_margin_start(widget: *mut GtkWidget, margin: c_int);
@@ -20514,6 +20591,12 @@ extern "C" {
self_: *mut GtkAccessible,
new_sibling: *mut GtkAccessible,
);
+ #[cfg(feature = "v4_18")]
+ #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
+ pub fn gtk_accessible_update_platform_state(
+ self_: *mut GtkAccessible,
+ state: GtkAccessiblePlatformState,
+ );
pub fn gtk_accessible_update_property(
self_: *mut GtkAccessible,
first_property: GtkAccessibleProperty,
diff --git a/gtk4/sys/tests/abi.rs b/gtk4/sys/tests/abi.rs
index 265a949f793b..200e4a4ea981 100644
--- a/gtk4/sys/tests/abi.rs
+++ b/gtk4/sys/tests/abi.rs
@@ -2664,12 +2664,18 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GTK_ACCESSIBLE_RELATION_COL_INDEX", "2"),
("(gint) GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT", "3"),
("(gint) GTK_ACCESSIBLE_RELATION_COL_SPAN", "4"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_CONTROLLED_BY", "20"),
("(gint) GTK_ACCESSIBLE_RELATION_CONTROLS", "5"),
("(gint) GTK_ACCESSIBLE_RELATION_DESCRIBED_BY", "6"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR", "19"),
("(gint) GTK_ACCESSIBLE_RELATION_DETAILS", "7"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_DETAILS_FOR", "21"),
("(gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE", "8"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR", "22"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_FLOW_FROM", "23"),
("(gint) GTK_ACCESSIBLE_RELATION_FLOW_TO", "9"),
("(gint) GTK_ACCESSIBLE_RELATION_LABELLED_BY", "10"),
+ ("(gint) GTK_ACCESSIBLE_RELATION_LABEL_FOR", "18"),
("(gint) GTK_ACCESSIBLE_RELATION_OWNS", "11"),
("(gint) GTK_ACCESSIBLE_RELATION_POS_IN_SET", "12"),
("(gint) GTK_ACCESSIBLE_RELATION_ROW_COUNT", "13"),
@@ -2910,8 +2916,9 @@ const RUST_CONSTANTS: &[(&str, &str)] = &[
("(gint) GTK_CSS_PARSER_WARNING_UNIMPLEMENTED", "2"),
("(guint) GTK_DEBUG_A11Y", "131072"),
("(guint) GTK_DEBUG_ACTIONS", "4096"),
- ("(guint) GTK_DEBUG_BUILDER", "128"),
+ ("(guint) GTK_DEBUG_BUILDER", "2097152"),
("(guint) GTK_DEBUG_BUILDER_OBJECTS", "65536"),
+ ("(guint) GTK_DEBUG_BUILDER_TRACE", "128"),
("(guint) GTK_DEBUG_CONSTRAINTS", "32768"),
("(guint) GTK_DEBUG_CSS", "1048576"),
("(guint) GTK_DEBUG_GEOMETRY", "16"),
diff --git a/gtk4/sys/tests/constant.c b/gtk4/sys/tests/constant.c
index 5d73094b8c68..30bd9d230fb7 100644
--- a/gtk4/sys/tests/constant.c
+++ b/gtk4/sys/tests/constant.c
@@ -102,12 +102,18 @@ int main() {
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_INDEX);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_COL_SPAN);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_CONTROLLED_BY);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_CONTROLS);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DESCRIBED_BY);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DETAILS);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_DETAILS_FOR);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_FLOW_FROM);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_FLOW_TO);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_LABELLED_BY);
+ PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_LABEL_FOR);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_OWNS);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_POS_IN_SET);
PRINT_CONSTANT((gint) GTK_ACCESSIBLE_RELATION_ROW_COUNT);
@@ -341,6 +347,7 @@ int main() {
PRINT_CONSTANT((guint) GTK_DEBUG_ACTIONS);
PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER);
PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER_OBJECTS);
+ PRINT_CONSTANT((guint) GTK_DEBUG_BUILDER_TRACE);
PRINT_CONSTANT((guint) GTK_DEBUG_CONSTRAINTS);
PRINT_CONSTANT((guint) GTK_DEBUG_CSS);
PRINT_CONSTANT((guint) GTK_DEBUG_GEOMETRY);
diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt
index bba14f1d708d..06f50dbf182f 100644
--- a/gtk4/sys/versions.txt
+++ b/gtk4/sys/versions.txt
@@ -1,2 +1,2 @@
-Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
-from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
+Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
+from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)