From 3ff8f6daf57f6b56bfb2cf7513782a0cab88dbd2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 16 Feb 2025 06:10:31 +0000 Subject: [PATCH 1/9] Update gir --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index be3ecc201d39..3491754499c3 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit be3ecc201d39c77befa1eb3abad2a3eed3c83eb0 +Subproject commit 3491754499c35f6be46f3e54e56d9fd5675e771b From 9c05cb0308608d24a44bd7e3c929c76b3781e173 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 16 Feb 2025 06:11:16 +0000 Subject: [PATCH 2/9] Regenerate with latest gir --- gdk4-macos/src/auto/versions.txt | 2 +- gdk4-macos/sys/versions.txt | 2 +- gdk4-wayland/src/auto/versions.txt | 2 +- gdk4-wayland/sys/versions.txt | 2 +- gdk4-win32/src/auto/versions.txt | 2 +- gdk4-win32/sys/versions.txt | 2 +- gdk4-x11/src/auto/versions.txt | 2 +- gdk4-x11/src/auto/x11_screen.rs | 1 + gdk4-x11/sys/versions.txt | 2 +- gdk4/src/auto/clipboard.rs | 1 + gdk4/src/auto/content_provider.rs | 1 + gdk4/src/auto/device.rs | 1 + gdk4/src/auto/display.rs | 1 + gdk4/src/auto/display_manager.rs | 1 + gdk4/src/auto/drag.rs | 1 + gdk4/src/auto/frame_clock.rs | 1 + gdk4/src/auto/monitor.rs | 1 + gdk4/src/auto/paintable.rs | 1 + gdk4/src/auto/seat.rs | 1 + gdk4/src/auto/surface.rs | 1 + gdk4/src/auto/versions.txt | 2 +- gdk4/src/auto/vulkan_context.rs | 1 + gdk4/sys/versions.txt | 2 +- gsk4/src/auto/versions.txt | 2 +- gsk4/sys/versions.txt | 2 +- gtk4/src/auto/about_dialog.rs | 1 + gtk4/src/auto/adjustment.rs | 1 + gtk4/src/auto/app_chooser_button.rs | 1 + gtk4/src/auto/app_chooser_widget.rs | 1 + gtk4/src/auto/application.rs | 1 + gtk4/src/auto/assistant.rs | 1 + gtk4/src/auto/at_context.rs | 1 + gtk4/src/auto/button.rs | 1 + gtk4/src/auto/calendar.rs | 1 + gtk4/src/auto/cell_area.rs | 1 + gtk4/src/auto/cell_editable.rs | 1 + gtk4/src/auto/cell_renderer.rs | 1 + gtk4/src/auto/cell_renderer_accel.rs | 1 + gtk4/src/auto/cell_renderer_combo.rs | 1 + gtk4/src/auto/cell_renderer_text.rs | 1 + gtk4/src/auto/cell_renderer_toggle.rs | 1 + gtk4/src/auto/check_button.rs | 1 + gtk4/src/auto/color_button.rs | 1 + gtk4/src/auto/color_chooser.rs | 1 + gtk4/src/auto/color_dialog_button.rs | 3 +++ gtk4/src/auto/column_view.rs | 1 + gtk4/src/auto/combo_box.rs | 1 + gtk4/src/auto/css_provider.rs | 1 + gtk4/src/auto/dialog.rs | 1 + gtk4/src/auto/drag_source.rs | 1 + gtk4/src/auto/drawing_area.rs | 1 + gtk4/src/auto/drop_controller_motion.rs | 1 + gtk4/src/auto/drop_down.rs | 3 +++ gtk4/src/auto/drop_target.rs | 1 + gtk4/src/auto/drop_target_async.rs | 1 + gtk4/src/auto/editable.rs | 1 + gtk4/src/auto/emoji_chooser.rs | 1 + gtk4/src/auto/entry.rs | 1 + gtk4/src/auto/entry_completion.rs | 1 + gtk4/src/auto/event_controller_focus.rs | 1 + gtk4/src/auto/event_controller_key.rs | 1 + gtk4/src/auto/event_controller_legacy.rs | 1 + gtk4/src/auto/event_controller_motion.rs | 1 + gtk4/src/auto/event_controller_scroll.rs | 1 + gtk4/src/auto/expander.rs | 1 + gtk4/src/auto/file_chooser_widget.rs | 1 + gtk4/src/auto/filter.rs | 1 + gtk4/src/auto/flow_box.rs | 1 + gtk4/src/auto/flow_box_child.rs | 1 + gtk4/src/auto/font_button.rs | 1 + gtk4/src/auto/font_chooser.rs | 1 + gtk4/src/auto/font_dialog_button.rs | 3 +++ gtk4/src/auto/gesture.rs | 1 + gtk4/src/auto/gesture_click.rs | 1 + gtk4/src/auto/gesture_drag.rs | 1 + gtk4/src/auto/gesture_long_press.rs | 1 + gtk4/src/auto/gesture_pan.rs | 1 + gtk4/src/auto/gesture_rotate.rs | 1 + gtk4/src/auto/gesture_stylus.rs | 1 + gtk4/src/auto/gesture_swipe.rs | 1 + gtk4/src/auto/gesture_zoom.rs | 1 + gtk4/src/auto/gl_area.rs | 1 + gtk4/src/auto/grid_view.rs | 1 + gtk4/src/auto/icon_theme.rs | 1 + gtk4/src/auto/icon_view.rs | 1 + gtk4/src/auto/im_context.rs | 1 + gtk4/src/auto/info_bar.rs | 1 + gtk4/src/auto/label.rs | 1 + gtk4/src/auto/level_bar.rs | 1 + gtk4/src/auto/link_button.rs | 1 + gtk4/src/auto/list_box.rs | 1 + gtk4/src/auto/list_box_row.rs | 1 + gtk4/src/auto/list_view.rs | 1 + gtk4/src/auto/menu_button.rs | 3 +++ gtk4/src/auto/native_dialog.rs | 1 + gtk4/src/auto/notebook.rs | 1 + gtk4/src/auto/paned.rs | 1 + gtk4/src/auto/password_entry.rs | 1 + gtk4/src/auto/popover.rs | 1 + gtk4/src/auto/print_job.rs | 1 + gtk4/src/auto/print_operation.rs | 1 + gtk4/src/auto/print_operation_preview.rs | 1 + gtk4/src/auto/printer.rs | 1 + gtk4/src/auto/range.rs | 1 + gtk4/src/auto/recent_manager.rs | 1 + gtk4/src/auto/scale_button.rs | 1 + gtk4/src/auto/scrolled_window.rs | 1 + gtk4/src/auto/search_entry.rs | 1 + gtk4/src/auto/section_model.rs | 1 + gtk4/src/auto/selection_model.rs | 1 + gtk4/src/auto/shortcuts_window.rs | 1 + gtk4/src/auto/signal_list_item_factory.rs | 5 ++++- gtk4/src/auto/sorter.rs | 1 + gtk4/src/auto/spin_button.rs | 1 + gtk4/src/auto/statusbar.rs | 1 + gtk4/src/auto/style_provider.rs | 1 + gtk4/src/auto/switch.rs | 1 + gtk4/src/auto/text_buffer.rs | 1 + gtk4/src/auto/text_tag_table.rs | 1 + gtk4/src/auto/text_view.rs | 1 + gtk4/src/auto/toggle_button.rs | 1 + gtk4/src/auto/tree_model.rs | 1 + gtk4/src/auto/tree_selection.rs | 1 + gtk4/src/auto/tree_sortable.rs | 1 + gtk4/src/auto/tree_view.rs | 1 + gtk4/src/auto/tree_view_column.rs | 1 + gtk4/src/auto/versions.txt | 2 +- gtk4/src/auto/widget.rs | 1 + gtk4/src/auto/window.rs | 1 + gtk4/sys/versions.txt | 2 +- 130 files changed, 141 insertions(+), 15 deletions(-) diff --git a/gdk4-macos/src/auto/versions.txt b/gdk4-macos/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-macos/src/auto/versions.txt +++ b/gdk4-macos/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-macos/sys/versions.txt b/gdk4-macos/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-macos/sys/versions.txt +++ b/gdk4-macos/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4-x11/src/auto/x11_screen.rs b/gdk4-x11/src/auto/x11_screen.rs index 855fba40018e..4a23ca34fdc1 100644 --- a/gdk4-x11/src/auto/x11_screen.rs +++ b/gdk4-x11/src/auto/x11_screen.rs @@ -4,6 +4,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4/src/auto/clipboard.rs b/gdk4/src/auto/clipboard.rs index ae75dc47736e..a4a6042083ee 100644 --- a/gdk4/src/auto/clipboard.rs +++ b/gdk4/src/auto/clipboard.rs @@ -4,6 +4,7 @@ use crate::{ffi, ContentFormats, ContentProvider, Display, Texture}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/content_provider.rs b/gdk4/src/auto/content_provider.rs index 45d32462c4c2..ae7d6d170633 100644 --- a/gdk4/src/auto/content_provider.rs +++ b/gdk4/src/auto/content_provider.rs @@ -4,6 +4,7 @@ use crate::{ffi, ContentFormats}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index 4726ee0868c3..646b385b1e63 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -4,6 +4,7 @@ use crate::{ffi, DeviceTool, Display, InputSource, ModifierType, Seat, Surface}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/display.rs b/gdk4/src/auto/display.rs index 2393ccc11ff9..e320c8285c17 100644 --- a/gdk4/src/auto/display.rs +++ b/gdk4/src/auto/display.rs @@ -11,6 +11,7 @@ use crate::DmabufFormats; use crate::GLContext; use crate::{ffi, AppLaunchContext, Clipboard, Device, Event, Monitor, Seat, Surface}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/display_manager.rs b/gdk4/src/auto/display_manager.rs index 898355ea900b..f4c8e4eff21f 100644 --- a/gdk4/src/auto/display_manager.rs +++ b/gdk4/src/auto/display_manager.rs @@ -4,6 +4,7 @@ use crate::{ffi, Display}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/drag.rs b/gdk4/src/auto/drag.rs index 0a826a66d9a4..e9a530bfe39c 100644 --- a/gdk4/src/auto/drag.rs +++ b/gdk4/src/auto/drag.rs @@ -6,6 +6,7 @@ use crate::{ ffi, ContentFormats, ContentProvider, Device, Display, DragAction, DragCancelReason, Surface, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/frame_clock.rs b/gdk4/src/auto/frame_clock.rs index aa72dbdcc715..b72763156731 100644 --- a/gdk4/src/auto/frame_clock.rs +++ b/gdk4/src/auto/frame_clock.rs @@ -4,6 +4,7 @@ use crate::{ffi, FrameClockPhase, FrameTimings}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/monitor.rs b/gdk4/src/auto/monitor.rs index e8af1cef552f..a3b2b65c8393 100644 --- a/gdk4/src/auto/monitor.rs +++ b/gdk4/src/auto/monitor.rs @@ -4,6 +4,7 @@ use crate::{ffi, Display, Rectangle, SubpixelLayout}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/paintable.rs b/gdk4/src/auto/paintable.rs index 739a7aa6dab6..9bfc09fd2290 100644 --- a/gdk4/src/auto/paintable.rs +++ b/gdk4/src/auto/paintable.rs @@ -4,6 +4,7 @@ use crate::{ffi, PaintableFlags, Snapshot}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/seat.rs b/gdk4/src/auto/seat.rs index 8ad5f4db4a54..3332ddce4954 100644 --- a/gdk4/src/auto/seat.rs +++ b/gdk4/src/auto/seat.rs @@ -4,6 +4,7 @@ use crate::{ffi, Device, DeviceTool, Display, SeatCapabilities}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/surface.rs b/gdk4/src/auto/surface.rs index c2e56358593d..2ccf141f8337 100644 --- a/gdk4/src/auto/surface.rs +++ b/gdk4/src/auto/surface.rs @@ -8,6 +8,7 @@ use crate::{ Monitor, VulkanContext, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gdk4/src/auto/vulkan_context.rs b/gdk4/src/auto/vulkan_context.rs index 24e73a210a51..4502e2346810 100644 --- a/gdk4/src/auto/vulkan_context.rs +++ b/gdk4/src/auto/vulkan_context.rs @@ -4,6 +4,7 @@ use crate::{ffi, DrawContext}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gtk4/src/auto/about_dialog.rs b/gtk4/src/auto/about_dialog.rs index 812069353c11..8d4380aa49d2 100644 --- a/gtk4/src/auto/about_dialog.rs +++ b/gtk4/src/auto/about_dialog.rs @@ -7,6 +7,7 @@ use crate::{ LayoutManager, License, Native, Overflow, Root, ShortcutManager, Widget, Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/adjustment.rs b/gtk4/src/auto/adjustment.rs index c9eefff656d0..7320b6f4f358 100644 --- a/gtk4/src/auto/adjustment.rs +++ b/gtk4/src/auto/adjustment.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/app_chooser_button.rs b/gtk4/src/auto/app_chooser_button.rs index c81fe748ed44..4637bf739ed7 100644 --- a/gtk4/src/auto/app_chooser_button.rs +++ b/gtk4/src/auto/app_chooser_button.rs @@ -8,6 +8,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/app_chooser_widget.rs b/gtk4/src/auto/app_chooser_widget.rs index f5a2b0346e38..e6cd8284daac 100644 --- a/gtk4/src/auto/app_chooser_widget.rs +++ b/gtk4/src/auto/app_chooser_widget.rs @@ -8,6 +8,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/application.rs b/gtk4/src/auto/application.rs index f4ee2cb88585..555ac6a811ea 100644 --- a/gtk4/src/auto/application.rs +++ b/gtk4/src/auto/application.rs @@ -4,6 +4,7 @@ use crate::{ffi, ApplicationInhibitFlags, Window}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/assistant.rs b/gtk4/src/auto/assistant.rs index c3d95ff1c944..e9e2421e97f5 100644 --- a/gtk4/src/auto/assistant.rs +++ b/gtk4/src/auto/assistant.rs @@ -9,6 +9,7 @@ use crate::{ Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/at_context.rs b/gtk4/src/auto/at_context.rs index 832e19b982f2..096eba6b807f 100644 --- a/gtk4/src/auto/at_context.rs +++ b/gtk4/src/auto/at_context.rs @@ -4,6 +4,7 @@ use crate::{ffi, Accessible, AccessibleRole}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/button.rs b/gtk4/src/auto/button.rs index cf72c3e8324d..2fa8b7dc58f0 100644 --- a/gtk4/src/auto/button.rs +++ b/gtk4/src/auto/button.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/calendar.rs b/gtk4/src/auto/calendar.rs index 6105bf1aee3e..f6eb78cc368a 100644 --- a/gtk4/src/auto/calendar.rs +++ b/gtk4/src/auto/calendar.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_area.rs b/gtk4/src/auto/cell_area.rs index 084a7fcc266f..2a78c651a315 100644 --- a/gtk4/src/auto/cell_area.rs +++ b/gtk4/src/auto/cell_area.rs @@ -8,6 +8,7 @@ use crate::{ DirectionType, Orientation, SizeRequestMode, Snapshot, TreeIter, TreeModel, TreePath, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_editable.rs b/gtk4/src/auto/cell_editable.rs index 993a02b3ecbb..88c49980d589 100644 --- a/gtk4/src/auto/cell_editable.rs +++ b/gtk4/src/auto/cell_editable.rs @@ -5,6 +5,7 @@ use crate::{ffi, Accessible, Buildable, ConstraintTarget, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer.rs b/gtk4/src/auto/cell_renderer.rs index 63648408f461..01c1461a73c1 100644 --- a/gtk4/src/auto/cell_renderer.rs +++ b/gtk4/src/auto/cell_renderer.rs @@ -8,6 +8,7 @@ use crate::{ StateFlags, TreePath, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_accel.rs b/gtk4/src/auto/cell_renderer_accel.rs index 5c94a91ce326..5e9c62d6fa69 100644 --- a/gtk4/src/auto/cell_renderer_accel.rs +++ b/gtk4/src/auto/cell_renderer_accel.rs @@ -7,6 +7,7 @@ use crate::{ ffi, CellRenderer, CellRendererAccelMode, CellRendererMode, CellRendererText, TreePath, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_combo.rs b/gtk4/src/auto/cell_renderer_combo.rs index df955bfa2e66..8fee136528e5 100644 --- a/gtk4/src/auto/cell_renderer_combo.rs +++ b/gtk4/src/auto/cell_renderer_combo.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, CellRendererText, TreeIter, TreeModel, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_text.rs b/gtk4/src/auto/cell_renderer_text.rs index b44f24a43854..72101c3ea9a2 100644 --- a/gtk4/src/auto/cell_renderer_text.rs +++ b/gtk4/src/auto/cell_renderer_text.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/cell_renderer_toggle.rs b/gtk4/src/auto/cell_renderer_toggle.rs index c68ffffe2d9d..1a33fe8e8965 100644 --- a/gtk4/src/auto/cell_renderer_toggle.rs +++ b/gtk4/src/auto/cell_renderer_toggle.rs @@ -5,6 +5,7 @@ use crate::{ffi, CellRenderer, CellRendererMode, TreePath}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/check_button.rs b/gtk4/src/auto/check_button.rs index 39b10df42aee..15bbb6acbe6e 100644 --- a/gtk4/src/auto/check_button.rs +++ b/gtk4/src/auto/check_button.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/color_button.rs b/gtk4/src/auto/color_button.rs index cecacb788fed..7379f90d5237 100644 --- a/gtk4/src/auto/color_button.rs +++ b/gtk4/src/auto/color_button.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/color_chooser.rs b/gtk4/src/auto/color_chooser.rs index f4a3356bc7f3..08faa4632d28 100644 --- a/gtk4/src/auto/color_chooser.rs +++ b/gtk4/src/auto/color_chooser.rs @@ -5,6 +5,7 @@ use crate::ffi; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/color_dialog_button.rs b/gtk4/src/auto/color_dialog_button.rs index 9d82a827d65d..34dc17ba73f0 100644 --- a/gtk4/src/auto/color_dialog_button.rs +++ b/gtk4/src/auto/color_dialog_button.rs @@ -6,6 +6,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ColorDialog, ConstraintTarget, 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}, diff --git a/gtk4/src/auto/column_view.rs b/gtk4/src/auto/column_view.rs index aa6c2499ef5b..438a2dff8c44 100644 --- a/gtk4/src/auto/column_view.rs +++ b/gtk4/src/auto/column_view.rs @@ -11,6 +11,7 @@ use crate::{ #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))] use crate::{ListItemFactory, ListScrollFlags, ListTabBehavior, ScrollInfo}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/combo_box.rs b/gtk4/src/auto/combo_box.rs index 4203e84ce80a..b2a07628b30b 100644 --- a/gtk4/src/auto/combo_box.rs +++ b/gtk4/src/auto/combo_box.rs @@ -8,6 +8,7 @@ use crate::{ LayoutManager, Overflow, ScrollType, SensitivityType, TreeIter, TreeModel, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/css_provider.rs b/gtk4/src/auto/css_provider.rs index bee46bdcfe1b..76b257ba2b91 100644 --- a/gtk4/src/auto/css_provider.rs +++ b/gtk4/src/auto/css_provider.rs @@ -5,6 +5,7 @@ use crate::{ffi, CssSection, StyleProvider}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/dialog.rs b/gtk4/src/auto/dialog.rs index 60ceefe5ba9b..1aa955a52e8a 100644 --- a/gtk4/src/auto/dialog.rs +++ b/gtk4/src/auto/dialog.rs @@ -9,6 +9,7 @@ use crate::{ Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drag_source.rs b/gtk4/src/auto/drag_source.rs index 6b4ca4d0da07..a40651223868 100644 --- a/gtk4/src/auto/drag_source.rs +++ b/gtk4/src/auto/drag_source.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/drawing_area.rs b/gtk4/src/auto/drawing_area.rs index 86808d0c4a0d..5eaeb35bd508 100644 --- a/gtk4/src/auto/drawing_area.rs +++ b/gtk4/src/auto/drawing_area.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drop_controller_motion.rs b/gtk4/src/auto/drop_controller_motion.rs index 872e543f7ac0..5cc6c3e9d503 100644 --- a/gtk4/src/auto/drop_controller_motion.rs +++ b/gtk4/src/auto/drop_controller_motion.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drop_down.rs b/gtk4/src/auto/drop_down.rs index 3b660f4ff93b..194b3d62f2e0 100644 --- a/gtk4/src/auto/drop_down.rs +++ b/gtk4/src/auto/drop_down.rs @@ -9,6 +9,9 @@ use crate::{ ffi, Accessible, AccessibleRole, Align, Buildable, ConstraintTarget, Expression, LayoutManager, ListItemFactory, Overflow, Widget, }; +#[cfg(feature = "v4_6")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_6")))] +use glib::object::ObjectType as _; use glib::{ prelude::*, signal::{connect_raw, SignalHandlerId}, diff --git a/gtk4/src/auto/drop_target.rs b/gtk4/src/auto/drop_target.rs index a7126650e788..b11cd5df59d2 100644 --- a/gtk4/src/auto/drop_target.rs +++ b/gtk4/src/auto/drop_target.rs @@ -5,6 +5,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/drop_target_async.rs b/gtk4/src/auto/drop_target_async.rs index 70b425453ee6..cf2277205b10 100644 --- a/gtk4/src/auto/drop_target_async.rs +++ b/gtk4/src/auto/drop_target_async.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/editable.rs b/gtk4/src/auto/editable.rs index 39a7272ec8de..10ff749f87eb 100644 --- a/gtk4/src/auto/editable.rs +++ b/gtk4/src/auto/editable.rs @@ -7,6 +7,7 @@ use crate::AccessiblePlatformState; use crate::{ffi, Accessible, Buildable, ConstraintTarget, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/emoji_chooser.rs b/gtk4/src/auto/emoji_chooser.rs index fff765f2a4e9..92cef18a2d75 100644 --- a/gtk4/src/auto/emoji_chooser.rs +++ b/gtk4/src/auto/emoji_chooser.rs @@ -7,6 +7,7 @@ use crate::{ Overflow, Popover, PositionType, ShortcutManager, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/entry.rs b/gtk4/src/auto/entry.rs index 1a19e5011c68..cca338320cda 100644 --- a/gtk4/src/auto/entry.rs +++ b/gtk4/src/auto/entry.rs @@ -9,6 +9,7 @@ use crate::{ LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/entry_completion.rs b/gtk4/src/auto/entry_completion.rs index 7fd4dc9861e1..7ad9c7628e37 100644 --- a/gtk4/src/auto/entry_completion.rs +++ b/gtk4/src/auto/entry_completion.rs @@ -5,6 +5,7 @@ use crate::{ffi, Buildable, CellArea, CellLayout, TreeIter, TreeModel}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_focus.rs b/gtk4/src/auto/event_controller_focus.rs index 6bb7069ec596..34d2e03ea813 100644 --- a/gtk4/src/auto/event_controller_focus.rs +++ b/gtk4/src/auto/event_controller_focus.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_key.rs b/gtk4/src/auto/event_controller_key.rs index 031c7c01fcce..e302f4d6a336 100644 --- a/gtk4/src/auto/event_controller_key.rs +++ b/gtk4/src/auto/event_controller_key.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, IMContext, PropagationLimit, PropagationPhase, Widget}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_legacy.rs b/gtk4/src/auto/event_controller_legacy.rs index 7370249ae4e2..ed647e4cba0f 100644 --- a/gtk4/src/auto/event_controller_legacy.rs +++ b/gtk4/src/auto/event_controller_legacy.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_motion.rs b/gtk4/src/auto/event_controller_motion.rs index 4002f564b39e..31c4acec742a 100644 --- a/gtk4/src/auto/event_controller_motion.rs +++ b/gtk4/src/auto/event_controller_motion.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/event_controller_scroll.rs b/gtk4/src/auto/event_controller_scroll.rs index 6369f841a0f7..71de59d0b0f6 100644 --- a/gtk4/src/auto/event_controller_scroll.rs +++ b/gtk4/src/auto/event_controller_scroll.rs @@ -4,6 +4,7 @@ use crate::{ffi, EventController, EventControllerScrollFlags, PropagationLimit, PropagationPhase}; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/expander.rs b/gtk4/src/auto/expander.rs index de68957847d9..a59a32323394 100644 --- a/gtk4/src/auto/expander.rs +++ b/gtk4/src/auto/expander.rs @@ -7,6 +7,7 @@ use crate::{ Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/file_chooser_widget.rs b/gtk4/src/auto/file_chooser_widget.rs index bafc9df22d3c..e5301158e664 100644 --- a/gtk4/src/auto/file_chooser_widget.rs +++ b/gtk4/src/auto/file_chooser_widget.rs @@ -8,6 +8,7 @@ use crate::{ FileChooserAction, FileFilter, LayoutManager, Overflow, Widget, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/filter.rs b/gtk4/src/auto/filter.rs index fa3ddf0bdd88..e311294d684d 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/flow_box.rs b/gtk4/src/auto/flow_box.rs index d67ea6b9e0f8..0ce6be997ff5 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::*, diff --git a/gtk4/src/auto/flow_box_child.rs b/gtk4/src/auto/flow_box_child.rs index d6910dd35765..0b226014b7a7 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::*, diff --git a/gtk4/src/auto/font_button.rs b/gtk4/src/auto/font_button.rs index dc2b16737473..cbf9bf3c389e 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::*, diff --git a/gtk4/src/auto/font_chooser.rs b/gtk4/src/auto/font_chooser.rs index 1e1943675180..b8c864021833 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_dialog_button.rs b/gtk4/src/auto/font_dialog_button.rs index 3fac15e54ccf..182979c3d8a5 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}, diff --git a/gtk4/src/auto/gesture.rs b/gtk4/src/auto/gesture.rs index df1e29a787ed..16cfee4153dc 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 22bb833360ff..19accee389ef 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 4008fc8da004..1ec650e02d53 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 dcb5e4bff8d5..1216987dbe26 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 f4f18c0a1d2e..b90fd01c3faf 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 508d7f3b6cf5..9696ddec4d5b 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 b3e8bc18448e..297d803a2561 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 438663f0ce50..f750003b69bf 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 c3e1f26b43ef..533953bc5e50 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 4e79653623ef..8b2b7865ddf5 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::*, diff --git a/gtk4/src/auto/grid_view.rs b/gtk4/src/auto/grid_view.rs index 19cfaceb2665..44cf6b02673c 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::*, diff --git a/gtk4/src/auto/icon_theme.rs b/gtk4/src/auto/icon_theme.rs index 16d135df94c6..34945f033204 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 baa1c8c077d3..ac57ef1d5d7a 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::*, diff --git a/gtk4/src/auto/im_context.rs b/gtk4/src/auto/im_context.rs index af5192e635b5..87cca6e6adbe 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/info_bar.rs b/gtk4/src/auto/info_bar.rs index b49b56eb93f4..747faee3d15e 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::*, diff --git a/gtk4/src/auto/label.rs b/gtk4/src/auto/label.rs index 8fde8373d01d..4b8f0c89fe9a 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::*, diff --git a/gtk4/src/auto/level_bar.rs b/gtk4/src/auto/level_bar.rs index 1075439bef7d..57908c8088b3 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::*, diff --git a/gtk4/src/auto/link_button.rs b/gtk4/src/auto/link_button.rs index 8a72021ca87d..01d0ad5ca8d2 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::*, diff --git a/gtk4/src/auto/list_box.rs b/gtk4/src/auto/list_box.rs index b301af30466a..5130d2f33a5b 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::*, diff --git a/gtk4/src/auto/list_box_row.rs b/gtk4/src/auto/list_box_row.rs index 10812cc85689..0ef8e4f9f5f2 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::*, diff --git a/gtk4/src/auto/list_view.rs b/gtk4/src/auto/list_view.rs index 8c9bf0e7708d..4fa3e4049d44 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::*, diff --git a/gtk4/src/auto/menu_button.rs b/gtk4/src/auto/menu_button.rs index 8fe791a45450..dbb16df1da55 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}, diff --git a/gtk4/src/auto/native_dialog.rs b/gtk4/src/auto/native_dialog.rs index 4baf69e8fd15..e58c577e48dd 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 0b482ba3972c..698e4fbe7536 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::*, diff --git a/gtk4/src/auto/paned.rs b/gtk4/src/auto/paned.rs index eccb01d1cdb7..261002a60943 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::*, diff --git a/gtk4/src/auto/password_entry.rs b/gtk4/src/auto/password_entry.rs index a90577b9a3ed..187d68b9f201 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::*, diff --git a/gtk4/src/auto/popover.rs b/gtk4/src/auto/popover.rs index fb56124f8ad1..910de85e2f97 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::*, diff --git a/gtk4/src/auto/print_job.rs b/gtk4/src/auto/print_job.rs index c69334767bd2..d5ffb86369d6 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 5e8c13cd5ae4..5c06378f3ef0 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 f93d30bca8fc..9c25c1572a44 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/printer.rs b/gtk4/src/auto/printer.rs index bedffd62b4a5..8b13837c46ad 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/range.rs b/gtk4/src/auto/range.rs index 622d34c747cc..8cb4a48af9b5 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 ed29cc3d7052..2c0fb707f429 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/scale_button.rs b/gtk4/src/auto/scale_button.rs index a4ee5b0a66fe..075966937744 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::*, diff --git a/gtk4/src/auto/scrolled_window.rs b/gtk4/src/auto/scrolled_window.rs index 8737ea734dec..5adebfcaa1d0 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::*, diff --git a/gtk4/src/auto/search_entry.rs b/gtk4/src/auto/search_entry.rs index c7f701f0bbf1..67c8b2c08fad 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::*, diff --git a/gtk4/src/auto/section_model.rs b/gtk4/src/auto/section_model.rs index fc3c15dc3df9..86966d822f9c 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 94a4bb735051..778cf29375fc 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/shortcuts_window.rs b/gtk4/src/auto/shortcuts_window.rs index dc57c2848cc2..c5c5cee491a5 100644 --- a/gtk4/src/auto/shortcuts_window.rs +++ b/gtk4/src/auto/shortcuts_window.rs @@ -10,6 +10,7 @@ use crate::{ LayoutManager, Native, Overflow, Root, ShortcutManager, Widget, Window, }; use glib::{ + object::ObjectType as _, prelude::*, signal::{connect_raw, SignalHandlerId}, translate::*, diff --git a/gtk4/src/auto/signal_list_item_factory.rs b/gtk4/src/auto/signal_list_item_factory.rs index b2e55ce72fc5..fb6ff996a39e 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/sorter.rs b/gtk4/src/auto/sorter.rs index 5334ad6a1313..d60ddf49a288 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 880bb76e589c..89b206e4cf7d 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::*, diff --git a/gtk4/src/auto/statusbar.rs b/gtk4/src/auto/statusbar.rs index 7eb9fc4e4bc2..64188809de3b 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::*, diff --git a/gtk4/src/auto/style_provider.rs b/gtk4/src/auto/style_provider.rs index 2771244be3f2..3f200646bbd3 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 521dc558ffc3..4a2426399196 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::*, diff --git a/gtk4/src/auto/text_buffer.rs b/gtk4/src/auto/text_buffer.rs index 3fb1ac3ae2c2..145498082570 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 471006ba0fdb..e02c3fcc4a94 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 c7a6b3614e01..622b136281e7 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::*, diff --git a/gtk4/src/auto/toggle_button.rs b/gtk4/src/auto/toggle_button.rs index f8cc33db3ef9..7a17b0a98a0d 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::*, diff --git a/gtk4/src/auto/tree_model.rs b/gtk4/src/auto/tree_model.rs index a1850eb7150a..0bbe301c66c3 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 7b1e5eb0ea24..8a84f9eb3b97 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 eafe2e42d29f..077581c47e23 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 f3a3ad5d44e7..0f53b11bb302 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::*, diff --git a/gtk4/src/auto/tree_view_column.rs b/gtk4/src/auto/tree_view_column.rs index 1891bbc28ea8..95b26f0387b7 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 1a56b9ecf195..83f209490b30 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 @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) diff --git a/gtk4/src/auto/widget.rs b/gtk4/src/auto/widget.rs index 845c77924372..23aca042cc2b 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::*, diff --git a/gtk4/src/auto/window.rs b/gtk4/src/auto/window.rs index 13be1a667702..d28d4c284a7d 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::*, diff --git a/gtk4/sys/versions.txt b/gtk4/sys/versions.txt index 1a56b9ecf195..83f209490b30 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ be3ecc201d39) +Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) From d8bb16df59d5a4d31bf7a9abef778f1127b1d460 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 16 Feb 2025 06:11:16 +0000 Subject: [PATCH 3/9] Update gir-files --- gir-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir-files b/gir-files index 3ede86d6a218..5ba392030e71 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 3ede86d6a21889d58809d8bdaab33e995fda8c15 +Subproject commit 5ba392030e71d0df854f104933f4c6b21d6620dc From dcb1bffe787a1be812bc3b4c012ad7297c5dca5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 16 Feb 2025 06:11:23 +0000 Subject: [PATCH 4/9] Regenerate with latest gir-files --- gdk4-macos/src/auto/versions.txt | 2 +- gdk4-macos/sys/versions.txt | 2 +- gdk4-wayland/src/auto/mod.rs | 4 + gdk4-wayland/src/auto/versions.txt | 2 +- gdk4-wayland/src/auto/wayland_surface.rs | 17 ++ gdk4-wayland/sys/Cargo.toml | 4 + gdk4-wayland/sys/src/lib.rs | 3 + gdk4-wayland/sys/versions.txt | 2 +- gdk4-win32/src/auto/versions.txt | 2 +- gdk4-win32/sys/versions.txt | 2 +- gdk4-x11/src/auto/functions.rs | 6 + gdk4-x11/src/auto/versions.txt | 2 +- gdk4-x11/src/auto/x11_display.rs | 10 + gdk4-x11/src/auto/x11_monitor.rs | 3 + gdk4-x11/src/auto/x11_screen.rs | 11 + gdk4-x11/src/auto/x11_surface.rs | 25 +++ gdk4-x11/sys/Cargo.toml | 4 + gdk4-x11/sys/versions.txt | 2 +- gdk4/src/auto/device.rs | 75 +++++++ gdk4/src/auto/versions.txt | 2 +- gdk4/sys/src/lib.rs | 6 + gdk4/sys/versions.txt | 2 +- gsk4/src/auto/gl_renderer.rs | 2 - gsk4/src/auto/versions.txt | 2 +- gsk4/sys/Cargo.toml | 4 + gsk4/sys/src/lib.rs | 6 +- gsk4/sys/versions.txt | 2 +- gtk4/src/auto/about_dialog.rs | 8 + gtk4/src/auto/accessible.rs | 12 ++ gtk4/src/auto/action_bar.rs | 8 + gtk4/src/auto/app_chooser_button.rs | 8 + gtk4/src/auto/app_chooser_widget.rs | 8 + gtk4/src/auto/application_window.rs | 13 ++ gtk4/src/auto/aspect_frame.rs | 8 + gtk4/src/auto/assistant.rs | 8 + gtk4/src/auto/box_.rs | 8 + gtk4/src/auto/button.rs | 8 + gtk4/src/auto/calendar.rs | 8 + gtk4/src/auto/cell_view.rs | 8 + gtk4/src/auto/center_box.rs | 8 + gtk4/src/auto/check_button.rs | 8 + gtk4/src/auto/color_button.rs | 8 + gtk4/src/auto/color_chooser_dialog.rs | 8 + gtk4/src/auto/color_chooser_widget.rs | 8 + gtk4/src/auto/color_dialog_button.rs | 8 + gtk4/src/auto/column_view.rs | 8 + gtk4/src/auto/combo_box.rs | 8 + gtk4/src/auto/combo_box_text.rs | 8 + gtk4/src/auto/dialog.rs | 8 + gtk4/src/auto/drawing_area.rs | 8 + gtk4/src/auto/drop_down.rs | 8 + gtk4/src/auto/editable_label.rs | 8 + gtk4/src/auto/emoji_chooser.rs | 8 + gtk4/src/auto/entry.rs | 8 + gtk4/src/auto/enums.rs | 48 +++++ gtk4/src/auto/expander.rs | 8 + gtk4/src/auto/file_chooser_dialog.rs | 8 + gtk4/src/auto/file_chooser_widget.rs | 8 + gtk4/src/auto/file_dialog.rs | 259 +++++++++++++++++++++++ gtk4/src/auto/fixed.rs | 8 + gtk4/src/auto/flags.rs | 6 +- gtk4/src/auto/flow_box.rs | 8 + gtk4/src/auto/flow_box_child.rs | 8 + gtk4/src/auto/font_button.rs | 8 + gtk4/src/auto/font_chooser_dialog.rs | 8 + gtk4/src/auto/font_chooser_widget.rs | 8 + gtk4/src/auto/font_dialog_button.rs | 8 + gtk4/src/auto/frame.rs | 8 + gtk4/src/auto/gl_area.rs | 8 + gtk4/src/auto/graphics_offload.rs | 8 + gtk4/src/auto/grid.rs | 8 + gtk4/src/auto/grid_view.rs | 8 + gtk4/src/auto/header_bar.rs | 8 + gtk4/src/auto/icon_view.rs | 8 + gtk4/src/auto/image.rs | 8 + gtk4/src/auto/info_bar.rs | 8 + gtk4/src/auto/inscription.rs | 8 + gtk4/src/auto/label.rs | 8 + gtk4/src/auto/level_bar.rs | 8 + gtk4/src/auto/link_button.rs | 8 + gtk4/src/auto/list_box.rs | 8 + gtk4/src/auto/list_box_row.rs | 8 + gtk4/src/auto/list_view.rs | 8 + gtk4/src/auto/lock_button.rs | 8 + gtk4/src/auto/media_controls.rs | 8 + gtk4/src/auto/menu_button.rs | 8 + gtk4/src/auto/message_dialog.rs | 8 + gtk4/src/auto/mod.rs | 15 ++ gtk4/src/auto/notebook.rs | 8 + gtk4/src/auto/overlay.rs | 8 + gtk4/src/auto/page_setup_unix_dialog.rs | 8 + gtk4/src/auto/paned.rs | 8 + gtk4/src/auto/password_entry.rs | 8 + gtk4/src/auto/picture.rs | 8 + gtk4/src/auto/popover.rs | 8 + gtk4/src/auto/popover_menu.rs | 8 + gtk4/src/auto/popover_menu_bar.rs | 8 + gtk4/src/auto/print_unix_dialog.rs | 8 + gtk4/src/auto/progress_bar.rs | 8 + gtk4/src/auto/revealer.rs | 8 + gtk4/src/auto/scale.rs | 8 + gtk4/src/auto/scale_button.rs | 8 + gtk4/src/auto/scrollbar.rs | 8 + gtk4/src/auto/scrolled_window.rs | 8 + gtk4/src/auto/search_bar.rs | 8 + gtk4/src/auto/search_entry.rs | 8 + gtk4/src/auto/separator.rs | 8 + gtk4/src/auto/shortcut_label.rs | 23 ++ gtk4/src/auto/shortcuts_group.rs | 27 +++ gtk4/src/auto/shortcuts_section.rs | 27 +++ gtk4/src/auto/shortcuts_shortcut.rs | 46 ++++ gtk4/src/auto/shortcuts_window.rs | 23 ++ gtk4/src/auto/spin_button.rs | 8 + gtk4/src/auto/spinner.rs | 8 + gtk4/src/auto/stack.rs | 8 + gtk4/src/auto/stack_sidebar.rs | 8 + gtk4/src/auto/stack_switcher.rs | 8 + gtk4/src/auto/statusbar.rs | 8 + gtk4/src/auto/switch.rs | 8 + gtk4/src/auto/text.rs | 8 + gtk4/src/auto/text_view.rs | 8 + gtk4/src/auto/toggle_button.rs | 8 + gtk4/src/auto/tree_expander.rs | 8 + gtk4/src/auto/tree_view.rs | 8 + gtk4/src/auto/versions.txt | 2 +- gtk4/src/auto/video.rs | 8 + gtk4/src/auto/viewport.rs | 8 + gtk4/src/auto/volume_button.rs | 8 + gtk4/src/auto/widget.rs | 51 +++++ gtk4/src/auto/window.rs | 8 + gtk4/src/auto/window_controls.rs | 8 + gtk4/src/auto/window_handle.rs | 8 + gtk4/sys/src/lib.rs | 85 +++++++- gtk4/sys/tests/abi.rs | 9 +- gtk4/sys/tests/constant.c | 7 + gtk4/sys/versions.txt | 2 +- 136 files changed, 1570 insertions(+), 25 deletions(-) diff --git a/gdk4-macos/src/auto/versions.txt b/gdk4-macos/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-macos/src/auto/versions.txt +++ b/gdk4-macos/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-macos/sys/versions.txt b/gdk4-macos/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-macos/sys/versions.txt +++ b/gdk4-macos/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-wayland/src/auto/mod.rs b/gdk4-wayland/src/auto/mod.rs index 10030036da0e..5d000dc22f19 100644 --- a/gdk4-wayland/src/auto/mod.rs +++ b/gdk4-wayland/src/auto/mod.rs @@ -25,3 +25,7 @@ pub use self::wayland_surface::WaylandSurface; mod wayland_toplevel; pub use self::wayland_toplevel::WaylandToplevel; + +pub(crate) mod traits { + pub use super::wayland_surface::WaylandSurfaceExt; +} diff --git a/gdk4-wayland/src/auto/versions.txt b/gdk4-wayland/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-wayland/src/auto/versions.txt +++ b/gdk4-wayland/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-wayland/src/auto/wayland_surface.rs b/gdk4-wayland/src/auto/wayland_surface.rs index 03b135d90dc1..696c73541a9d 100644 --- a/gdk4-wayland/src/auto/wayland_surface.rs +++ b/gdk4-wayland/src/auto/wayland_surface.rs @@ -3,6 +3,10 @@ // DO NOT EDIT use crate::ffi; +use glib::prelude::*; +#[cfg(feature = "v4_18")] +#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] +use glib::translate::*; glib::wrapper! { #[doc(alias = "GdkWaylandSurface")] @@ -16,3 +20,16 @@ glib::wrapper! { impl WaylandSurface { pub const NONE: Option<&'static WaylandSurface> = None; } + +pub trait WaylandSurfaceExt: IsA + 'static { + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_wayland_surface_force_next_commit")] + fn force_next_commit(&self) { + unsafe { + ffi::gdk_wayland_surface_force_next_commit(self.as_ref().to_glib_none().0); + } + } +} + +impl> WaylandSurfaceExt for O {} diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index 57dc2fb0d069..fe7827c25690 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -45,6 +45,9 @@ version = "4.12" [package.metadata.system-deps.gtk4_wayland.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4_wayland.v4_18] +version = "4.18" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -58,6 +61,7 @@ v4_4 = [] v4_10 = ["v4_4"] v4_12 = ["v4_10"] v4_16 = ["v4_12"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gdk4-wayland/sys/src/lib.rs b/gdk4-wayland/sys/src/lib.rs index 85ec95b315ed..521b3fe040c7 100644 --- a/gdk4-wayland/sys/src/lib.rs +++ b/gdk4-wayland/sys/src/lib.rs @@ -255,6 +255,9 @@ extern "C" { // GdkWaylandSurface //========================================================================= pub fn gdk_wayland_surface_get_type() -> GType; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_wayland_surface_force_next_commit(surface: *mut GdkWaylandSurface); pub fn gdk_wayland_surface_get_wl_surface(surface: *mut GdkWaylandSurface) -> gpointer; //========================================================================= diff --git a/gdk4-wayland/sys/versions.txt b/gdk4-wayland/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-wayland/sys/versions.txt +++ b/gdk4-wayland/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-win32/src/auto/versions.txt b/gdk4-win32/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-win32/src/auto/versions.txt +++ b/gdk4-win32/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-win32/sys/versions.txt b/gdk4-win32/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-win32/sys/versions.txt +++ b/gdk4-win32/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-x11/src/auto/functions.rs b/gdk4-x11/src/auto/functions.rs index 2b3a94fbd057..64412ffd7e83 100644 --- a/gdk4-x11/src/auto/functions.rs +++ b/gdk4-x11/src/auto/functions.rs @@ -5,12 +5,16 @@ use crate::{ffi, X11DeviceManagerXI2, X11DeviceXI2, X11Surface}; use glib::translate::*; +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_device_get_id")] pub fn x11_device_get_id(device: &X11DeviceXI2) -> i32 { skip_assert_initialized!(); unsafe { ffi::gdk_x11_device_get_id(device.to_glib_none().0) } } +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_device_manager_lookup")] pub fn x11_device_manager_lookup( device_manager: &X11DeviceManagerXI2, @@ -25,6 +29,8 @@ pub fn x11_device_manager_lookup( } } +#[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] +#[allow(deprecated)] #[doc(alias = "gdk_x11_get_server_time")] pub fn x11_get_server_time(surface: &X11Surface) -> u32 { skip_assert_initialized!(); diff --git a/gdk4-x11/src/auto/versions.txt b/gdk4-x11/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-x11/src/auto/versions.txt +++ b/gdk4-x11/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4-x11/src/auto/x11_display.rs b/gdk4-x11/src/auto/x11_display.rs index 3992a22255e2..8244e1a7ef42 100644 --- a/gdk4-x11/src/auto/x11_display.rs +++ b/gdk4-x11/src/auto/x11_display.rs @@ -50,8 +50,10 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] #[cfg(feature = "v4_4")] #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_get_egl_version")] #[doc(alias = "get_egl_version")] pub fn egl_version(&self) -> Option<(i32, i32)> { @@ -71,6 +73,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_get_glx_version")] #[doc(alias = "get_glx_version")] pub fn glx_version(&self) -> Option<(i32, i32)> { @@ -163,6 +167,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_string_to_compound_text")] pub fn string_to_compound_text(&self, str: &str) -> (i32, glib::GString, i32, Vec) { unsafe { @@ -194,6 +200,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_utf8_to_compound_text")] pub fn utf8_to_compound_text(&self, str: &str) -> Option<(glib::GString, i32, Vec)> { unsafe { @@ -221,6 +229,8 @@ impl X11Display { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_display_open")] pub fn open(display_name: Option<&str>) -> Option { assert_initialized_main_thread!(); diff --git a/gdk4-x11/src/auto/x11_monitor.rs b/gdk4-x11/src/auto/x11_monitor.rs index 910a28a03bca..60b6248fef81 100644 --- a/gdk4-x11/src/auto/x11_monitor.rs +++ b/gdk4-x11/src/auto/x11_monitor.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; use glib::translate::*; @@ -15,6 +16,8 @@ glib::wrapper! { } impl X11Monitor { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_monitor_get_workarea")] #[doc(alias = "get_workarea")] pub fn workarea(&self) -> gdk::Rectangle { diff --git a/gdk4-x11/src/auto/x11_screen.rs b/gdk4-x11/src/auto/x11_screen.rs index 4a23ca34fdc1..9a76d35aef3e 100644 --- a/gdk4-x11/src/auto/x11_screen.rs +++ b/gdk4-x11/src/auto/x11_screen.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; use glib::{ @@ -21,24 +22,32 @@ glib::wrapper! { } impl X11Screen { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_current_desktop")] #[doc(alias = "get_current_desktop")] pub fn current_desktop(&self) -> u32 { unsafe { ffi::gdk_x11_screen_get_current_desktop(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_number_of_desktops")] #[doc(alias = "get_number_of_desktops")] pub fn number_of_desktops(&self) -> u32 { unsafe { ffi::gdk_x11_screen_get_number_of_desktops(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_screen_number")] #[doc(alias = "get_screen_number")] pub fn screen_number(&self) -> i32 { unsafe { ffi::gdk_x11_screen_get_screen_number(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_get_window_manager_name")] #[doc(alias = "get_window_manager_name")] pub fn window_manager_name(&self) -> glib::GString { @@ -49,6 +58,8 @@ impl X11Screen { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_screen_supports_net_wm_hint")] pub fn supports_net_wm_hint(&self, property_name: &str) -> bool { unsafe { diff --git a/gdk4-x11/src/auto/x11_surface.rs b/gdk4-x11/src/auto/x11_surface.rs index dff4cace4bea..d9071e8cf3ca 100644 --- a/gdk4-x11/src/auto/x11_surface.rs +++ b/gdk4-x11/src/auto/x11_surface.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; use glib::{prelude::*, translate::*}; @@ -15,18 +16,24 @@ glib::wrapper! { } impl X11Surface { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_get_desktop")] #[doc(alias = "get_desktop")] pub fn desktop(&self) -> u32 { unsafe { ffi::gdk_x11_surface_get_desktop(self.to_glib_none().0) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_get_group")] #[doc(alias = "get_group")] pub fn group(&self) -> Option { unsafe { from_glib_none(ffi::gdk_x11_surface_get_group(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_move_to_current_desktop")] pub fn move_to_current_desktop(&self) { unsafe { @@ -34,6 +41,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_move_to_desktop")] pub fn move_to_desktop(&self, desktop: u32) { unsafe { @@ -41,6 +50,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_frame_sync_enabled")] pub fn set_frame_sync_enabled(&self, frame_sync_enabled: bool) { unsafe { @@ -51,6 +62,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_group")] pub fn set_group(&self, leader: &impl IsA) { unsafe { @@ -58,6 +71,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_skip_pager_hint")] pub fn set_skip_pager_hint(&self, skips_pager: bool) { unsafe { @@ -68,6 +83,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_skip_taskbar_hint")] pub fn set_skip_taskbar_hint(&self, skips_taskbar: bool) { unsafe { @@ -78,6 +95,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_theme_variant")] pub fn set_theme_variant(&self, variant: &str) { unsafe { @@ -85,6 +104,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_urgency_hint")] pub fn set_urgency_hint(&self, urgent: bool) { unsafe { @@ -92,6 +113,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_user_time")] pub fn set_user_time(&self, timestamp: u32) { unsafe { @@ -99,6 +122,8 @@ impl X11Surface { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gdk_x11_surface_set_utf8_property")] pub fn set_utf8_property(&self, name: &str, value: Option<&str>) { unsafe { diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index 2a46fbf705c1..f5b504c227de 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -42,6 +42,9 @@ version = "4.10" [package.metadata.system-deps.gtk4_x11.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4_x11.v4_18] +version = "4.18" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -54,6 +57,7 @@ name = "gdk4_x11_sys" v4_4 = [] v4_10 = ["v4_4"] v4_16 = ["v4_10"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gdk4-x11/sys/versions.txt b/gdk4-x11/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4-x11/sys/versions.txt +++ b/gdk4-x11/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4/src/auto/device.rs b/gdk4/src/auto/device.rs index 646b385b1e63..7870c51d5033 100644 --- a/gdk4/src/auto/device.rs +++ b/gdk4/src/auto/device.rs @@ -32,6 +32,15 @@ impl std::fmt::Display for Device { } pub trait DeviceExt: IsA + 'static { + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_device_get_active_layout_index")] + #[doc(alias = "get_active_layout_index")] + #[doc(alias = "active-layout-index")] + fn active_layout_index(&self) -> i32 { + unsafe { ffi::gdk_device_get_active_layout_index(self.as_ref().to_glib_none().0) } + } + #[doc(alias = "gdk_device_get_caps_lock_state")] #[doc(alias = "get_caps_lock_state")] #[doc(alias = "caps-lock-state")] @@ -81,6 +90,19 @@ pub trait DeviceExt: IsA + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gdk_device_get_layout_names")] + #[doc(alias = "get_layout_names")] + #[doc(alias = "layout-names")] + fn layout_names(&self) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_full(ffi::gdk_device_get_layout_names( + self.as_ref().to_glib_none().0, + )) + } + } + #[doc(alias = "gdk_device_get_modifier_state")] #[doc(alias = "get_modifier_state")] #[doc(alias = "modifier-state")] @@ -254,6 +276,34 @@ pub trait DeviceExt: IsA + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "active-layout-index")] + fn connect_active_layout_index_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_active_layout_index_trampoline< + P: IsA, + F: Fn(&P) + 'static, + >( + this: *mut ffi::GdkDevice, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Device::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + c"notify::active-layout-index".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_active_layout_index_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "caps-lock-state")] fn connect_caps_lock_state_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_caps_lock_state_trampoline< @@ -329,6 +379,31 @@ pub trait DeviceExt: IsA + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "layout-names")] + fn connect_layout_names_notify(&self, f: F) -> SignalHandlerId { + unsafe extern "C" fn notify_layout_names_trampoline, F: Fn(&P) + 'static>( + this: *mut ffi::GdkDevice, + _param_spec: glib::ffi::gpointer, + f: glib::ffi::gpointer, + ) { + let f: &F = &*(f as *const F); + f(Device::from_glib_borrow(this).unsafe_cast_ref()) + } + unsafe { + let f: Box_ = Box_::new(f); + connect_raw( + self.as_ptr() as *mut _, + c"notify::layout-names".as_ptr() as *const _, + Some(std::mem::transmute::<*const (), unsafe extern "C" fn()>( + notify_layout_names_trampoline:: as *const (), + )), + Box_::into_raw(f), + ) + } + } + #[doc(alias = "modifier-state")] fn connect_modifier_state_notify(&self, f: F) -> SignalHandlerId { unsafe extern "C" fn notify_modifier_state_trampoline< diff --git a/gdk4/src/auto/versions.txt b/gdk4/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4/src/auto/versions.txt +++ b/gdk4/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gdk4/sys/src/lib.rs b/gdk4/sys/src/lib.rs index 030cac15fd2b..d4016ffab4fc 100644 --- a/gdk4/sys/src/lib.rs +++ b/gdk4/sys/src/lib.rs @@ -4750,11 +4750,17 @@ extern "C" { // GdkDevice //========================================================================= pub fn gdk_device_get_type() -> GType; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_device_get_active_layout_index(device: *mut GdkDevice) -> c_int; pub fn gdk_device_get_caps_lock_state(device: *mut GdkDevice) -> gboolean; pub fn gdk_device_get_device_tool(device: *mut GdkDevice) -> *mut GdkDeviceTool; pub fn gdk_device_get_direction(device: *mut GdkDevice) -> pango::PangoDirection; pub fn gdk_device_get_display(device: *mut GdkDevice) -> *mut GdkDisplay; pub fn gdk_device_get_has_cursor(device: *mut GdkDevice) -> gboolean; + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + pub fn gdk_device_get_layout_names(device: *mut GdkDevice) -> *mut *mut c_char; pub fn gdk_device_get_modifier_state(device: *mut GdkDevice) -> GdkModifierType; pub fn gdk_device_get_name(device: *mut GdkDevice) -> *const c_char; pub fn gdk_device_get_num_lock_state(device: *mut GdkDevice) -> gboolean; diff --git a/gdk4/sys/versions.txt b/gdk4/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gdk4/sys/versions.txt +++ b/gdk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gsk4/src/auto/gl_renderer.rs b/gsk4/src/auto/gl_renderer.rs index 42bbe75bfb39..deed4d33f228 100644 --- a/gsk4/src/auto/gl_renderer.rs +++ b/gsk4/src/auto/gl_renderer.rs @@ -22,8 +22,6 @@ impl GLRenderer { } } -#[cfg(feature = "v4_2")] -#[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] impl Default for GLRenderer { fn default() -> Self { Self::new() diff --git a/gsk4/src/auto/versions.txt b/gsk4/src/auto/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gsk4/src/auto/versions.txt +++ b/gsk4/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index bf064cb9ad5d..724762c699fa 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -51,6 +51,9 @@ version = "4.14" [package.metadata.system-deps.gtk4.v4_16] version = "4.16" +[package.metadata.system-deps.gtk4.v4_18] +version = "4.18" + [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -68,6 +71,7 @@ vulkan = [] broadway = [] v4_14 = ["v4_10"] v4_16 = ["v4_14"] +v4_18 = ["v4_16"] [dependencies] libc = "0.2" diff --git a/gsk4/sys/src/lib.rs b/gsk4/sys/src/lib.rs index 2d2cfb1d8ad7..abc9efc0118e 100644 --- a/gsk4/sys/src/lib.rs +++ b/gsk4/sys/src/lib.rs @@ -1751,7 +1751,7 @@ extern "C" { border_width: *const [c_float; 4], border_color: *const [gdk::GdkRGBA; 4], ) -> *mut GskBorderNode; - pub fn gsk_border_node_get_colors(node: *const GskBorderNode) -> *const gdk::GdkRGBA; + pub fn gsk_border_node_get_colors(node: *const GskBorderNode) -> *const [gdk::GdkRGBA; 4]; pub fn gsk_border_node_get_outline(node: *const GskBorderNode) -> *const GskRoundedRect; pub fn gsk_border_node_get_widths(node: *const GskBorderNode) -> *const [c_float; 4]; @@ -2066,11 +2066,7 @@ extern "C" { //========================================================================= // GskNglRenderer //========================================================================= - #[cfg(feature = "v4_2")] - #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_ngl_renderer_get_type() -> GType; - #[cfg(feature = "v4_2")] - #[cfg_attr(docsrs, doc(cfg(feature = "v4_2")))] pub fn gsk_ngl_renderer_new() -> *mut GskRenderer; //========================================================================= diff --git a/gsk4/sys/versions.txt b/gsk4/sys/versions.txt index 83f209490b30..a93154df0202 100644 --- a/gsk4/sys/versions.txt +++ b/gsk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gtk4/src/auto/about_dialog.rs b/gtk4/src/auto/about_dialog.rs index 8d4380aa49d2..dcc1cf12f8c6 100644 --- a/gtk4/src/auto/about_dialog.rs +++ b/gtk4/src/auto/about_dialog.rs @@ -1105,6 +1105,14 @@ impl AboutDialogBuilder { } } + #[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/accessible.rs b/gtk4/src/auto/accessible.rs index e42ba9c80a25..a090359611f5 100644 --- a/gtk4/src/auto/accessible.rs +++ b/gtk4/src/auto/accessible.rs @@ -204,6 +204,18 @@ pub trait AccessibleExt: IsA + 'static { } } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_accessible_update_platform_state")] + fn update_platform_state(&self, state: AccessiblePlatformState) { + unsafe { + ffi::gtk_accessible_update_platform_state( + self.as_ref().to_glib_none().0, + state.into_glib(), + ); + } + } + #[doc(alias = "accessible-role")] fn set_accessible_role(&self, accessible_role: AccessibleRole) { ObjectExt::set_property(self.as_ref(), "accessible-role", accessible_role) diff --git a/gtk4/src/auto/action_bar.rs b/gtk4/src/auto/action_bar.rs index 20d5a4648519..501caeec3b09 100644 --- a/gtk4/src/auto/action_bar.rs +++ b/gtk4/src/auto/action_bar.rs @@ -221,6 +221,14 @@ impl ActionBarBuilder { } } + #[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/app_chooser_button.rs b/gtk4/src/auto/app_chooser_button.rs index 4637bf739ed7..7836dcc51794 100644 --- a/gtk4/src/auto/app_chooser_button.rs +++ b/gtk4/src/auto/app_chooser_button.rs @@ -494,6 +494,14 @@ impl AppChooserButtonBuilder { } } + #[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/app_chooser_widget.rs b/gtk4/src/auto/app_chooser_widget.rs index e6cd8284daac..e17af965a498 100644 --- a/gtk4/src/auto/app_chooser_widget.rs +++ b/gtk4/src/auto/app_chooser_widget.rs @@ -531,6 +531,14 @@ impl AppChooserWidgetBuilder { } } + #[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/application_window.rs b/gtk4/src/auto/application_window.rs index 4353d6e6e0dd..381f0860192c 100644 --- a/gtk4/src/auto/application_window.rs +++ b/gtk4/src/auto/application_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)] use crate::{ ffi, Accessible, AccessibleRole, Align, Application, Buildable, ConstraintTarget, @@ -309,6 +310,14 @@ impl ApplicationWindowBuilder { } } + #[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), @@ -423,6 +432,8 @@ impl ApplicationWindowBuilder { } pub trait ApplicationWindowExt: IsA + 'static { + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_application_window_get_help_overlay")] #[doc(alias = "get_help_overlay")] fn help_overlay(&self) -> Option { @@ -450,6 +461,8 @@ pub trait ApplicationWindowExt: IsA + 'static { } } + #[cfg_attr(feature = "v4_18", deprecated = "Since 4.18")] + #[allow(deprecated)] #[doc(alias = "gtk_application_window_set_help_overlay")] fn set_help_overlay(&self, help_overlay: Option<&ShortcutsWindow>) { unsafe { diff --git a/gtk4/src/auto/aspect_frame.rs b/gtk4/src/auto/aspect_frame.rs index acf82f5f482e..e276e86823f1 100644 --- a/gtk4/src/auto/aspect_frame.rs +++ b/gtk4/src/auto/aspect_frame.rs @@ -367,6 +367,14 @@ impl AspectFrameBuilder { } } + #[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/assistant.rs b/gtk4/src/auto/assistant.rs index e9e2421e97f5..ef6ead0173cb 100644 --- a/gtk4/src/auto/assistant.rs +++ b/gtk4/src/auto/assistant.rs @@ -723,6 +723,14 @@ impl AssistantBuilder { } } + #[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/box_.rs b/gtk4/src/auto/box_.rs index 0dd9beb6f94e..4c7d1448d815 100644 --- a/gtk4/src/auto/box_.rs +++ b/gtk4/src/auto/box_.rs @@ -172,6 +172,14 @@ impl BoxBuilder { } } + #[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/button.rs b/gtk4/src/auto/button.rs index 2fa8b7dc58f0..018b913643a6 100644 --- a/gtk4/src/auto/button.rs +++ b/gtk4/src/auto/button.rs @@ -213,6 +213,14 @@ impl ButtonBuilder { } } + #[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/calendar.rs b/gtk4/src/auto/calendar.rs index f6eb78cc368a..54bbed17ef07 100644 --- a/gtk4/src/auto/calendar.rs +++ b/gtk4/src/auto/calendar.rs @@ -578,6 +578,14 @@ impl CalendarBuilder { } } + #[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/cell_view.rs b/gtk4/src/auto/cell_view.rs index 12b7a97e65b1..cf669c74efa5 100644 --- a/gtk4/src/auto/cell_view.rs +++ b/gtk4/src/auto/cell_view.rs @@ -395,6 +395,14 @@ impl CellViewBuilder { } } + #[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/center_box.rs b/gtk4/src/auto/center_box.rs index c3098edb4baf..a55be40feca8 100644 --- a/gtk4/src/auto/center_box.rs +++ b/gtk4/src/auto/center_box.rs @@ -416,6 +416,14 @@ impl CenterBoxBuilder { } } + #[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/check_button.rs b/gtk4/src/auto/check_button.rs index 15bbb6acbe6e..dad1d50767e7 100644 --- a/gtk4/src/auto/check_button.rs +++ b/gtk4/src/auto/check_button.rs @@ -203,6 +203,14 @@ impl CheckButtonBuilder { } } + #[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/color_button.rs b/gtk4/src/auto/color_button.rs index 7379f90d5237..57e9e5a7a213 100644 --- a/gtk4/src/auto/color_button.rs +++ b/gtk4/src/auto/color_button.rs @@ -340,6 +340,14 @@ impl ColorButtonBuilder { } } + #[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/color_chooser_dialog.rs b/gtk4/src/auto/color_chooser_dialog.rs index 98c7c4d72176..8c0d227f8836 100644 --- a/gtk4/src/auto/color_chooser_dialog.rs +++ b/gtk4/src/auto/color_chooser_dialog.rs @@ -351,6 +351,14 @@ impl ColorChooserDialogBuilder { } } + #[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/color_chooser_widget.rs b/gtk4/src/auto/color_chooser_widget.rs index eeb9d4d58c6a..ebf19b908d38 100644 --- a/gtk4/src/auto/color_chooser_widget.rs +++ b/gtk4/src/auto/color_chooser_widget.rs @@ -179,6 +179,14 @@ impl ColorChooserWidgetBuilder { } } + #[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/color_dialog_button.rs b/gtk4/src/auto/color_dialog_button.rs index 34dc17ba73f0..f2fa711f8b8f 100644 --- a/gtk4/src/auto/color_dialog_button.rs +++ b/gtk4/src/auto/color_dialog_button.rs @@ -276,6 +276,14 @@ impl ColorDialogButtonBuilder { } } + #[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/column_view.rs b/gtk4/src/auto/column_view.rs index 438a2dff8c44..4788f795e5da 100644 --- a/gtk4/src/auto/column_view.rs +++ b/gtk4/src/auto/column_view.rs @@ -776,6 +776,14 @@ impl ColumnViewBuilder { } } + #[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/combo_box.rs b/gtk4/src/auto/combo_box.rs index b2a07628b30b..697f61ca5648 100644 --- a/gtk4/src/auto/combo_box.rs +++ b/gtk4/src/auto/combo_box.rs @@ -249,6 +249,14 @@ impl ComboBoxBuilder { } } + #[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/combo_box_text.rs b/gtk4/src/auto/combo_box_text.rs index 24518434292b..5dd5283c726a 100644 --- a/gtk4/src/auto/combo_box_text.rs +++ b/gtk4/src/auto/combo_box_text.rs @@ -314,6 +314,14 @@ impl ComboBoxTextBuilder { } } + #[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/dialog.rs b/gtk4/src/auto/dialog.rs index 1aa955a52e8a..a4c60078b4bf 100644 --- a/gtk4/src/auto/dialog.rs +++ b/gtk4/src/auto/dialog.rs @@ -310,6 +310,14 @@ impl DialogBuilder { } } + #[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/drawing_area.rs b/gtk4/src/auto/drawing_area.rs index 5eaeb35bd508..55d6d61af2b2 100644 --- a/gtk4/src/auto/drawing_area.rs +++ b/gtk4/src/auto/drawing_area.rs @@ -155,6 +155,14 @@ impl DrawingAreaBuilder { } } + #[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/drop_down.rs b/gtk4/src/auto/drop_down.rs index 194b3d62f2e0..0632e637b1b9 100644 --- a/gtk4/src/auto/drop_down.rs +++ b/gtk4/src/auto/drop_down.rs @@ -678,6 +678,14 @@ impl DropDownBuilder { } } + #[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/editable_label.rs b/gtk4/src/auto/editable_label.rs index 0cbcef56c0f0..cf0daf35e0e1 100644 --- a/gtk4/src/auto/editable_label.rs +++ b/gtk4/src/auto/editable_label.rs @@ -172,6 +172,14 @@ impl EditableLabelBuilder { } } + #[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/emoji_chooser.rs b/gtk4/src/auto/emoji_chooser.rs index 92cef18a2d75..16dc1b23f992 100644 --- a/gtk4/src/auto/emoji_chooser.rs +++ b/gtk4/src/auto/emoji_chooser.rs @@ -219,6 +219,14 @@ impl EmojiChooserBuilder { } } + #[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/entry.rs b/gtk4/src/auto/entry.rs index cca338320cda..69adf9ad6150 100644 --- a/gtk4/src/auto/entry.rs +++ b/gtk4/src/auto/entry.rs @@ -434,6 +434,14 @@ impl EntryBuilder { } } + #[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/enums.rs b/gtk4/src/auto/enums.rs index b7e456a166fd..dde4151791d0 100644 --- a/gtk4/src/auto/enums.rs +++ b/gtk4/src/auto/enums.rs @@ -669,6 +669,30 @@ pub enum AccessibleRelation { RowSpan, #[doc(alias = "GTK_ACCESSIBLE_RELATION_SET_SIZE")] SetSize, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_LABEL_FOR")] + LabelFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR")] + DescriptionFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_CONTROLLED_BY")] + ControlledBy, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_DETAILS_FOR")] + DetailsFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR")] + ErrorMessageFor, + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "GTK_ACCESSIBLE_RELATION_FLOW_FROM")] + FlowFrom, #[doc(hidden)] __Unknown(i32), } @@ -707,6 +731,18 @@ impl IntoGlib for AccessibleRelation { Self::RowIndexText => ffi::GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT, Self::RowSpan => ffi::GTK_ACCESSIBLE_RELATION_ROW_SPAN, Self::SetSize => ffi::GTK_ACCESSIBLE_RELATION_SET_SIZE, + #[cfg(feature = "v4_18")] + Self::LabelFor => ffi::GTK_ACCESSIBLE_RELATION_LABEL_FOR, + #[cfg(feature = "v4_18")] + Self::DescriptionFor => ffi::GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR, + #[cfg(feature = "v4_18")] + Self::ControlledBy => ffi::GTK_ACCESSIBLE_RELATION_CONTROLLED_BY, + #[cfg(feature = "v4_18")] + Self::DetailsFor => ffi::GTK_ACCESSIBLE_RELATION_DETAILS_FOR, + #[cfg(feature = "v4_18")] + Self::ErrorMessageFor => ffi::GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR, + #[cfg(feature = "v4_18")] + Self::FlowFrom => ffi::GTK_ACCESSIBLE_RELATION_FLOW_FROM, Self::__Unknown(value) => value, } } @@ -736,6 +772,18 @@ impl FromGlib for AccessibleRelation { ffi::GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT => Self::RowIndexText, ffi::GTK_ACCESSIBLE_RELATION_ROW_SPAN => Self::RowSpan, ffi::GTK_ACCESSIBLE_RELATION_SET_SIZE => Self::SetSize, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_LABEL_FOR => Self::LabelFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR => Self::DescriptionFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_CONTROLLED_BY => Self::ControlledBy, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_DETAILS_FOR => Self::DetailsFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR => Self::ErrorMessageFor, + #[cfg(feature = "v4_18")] + ffi::GTK_ACCESSIBLE_RELATION_FLOW_FROM => Self::FlowFrom, value => Self::__Unknown(value), } } diff --git a/gtk4/src/auto/expander.rs b/gtk4/src/auto/expander.rs index a59a32323394..d2899976b2b3 100644 --- a/gtk4/src/auto/expander.rs +++ b/gtk4/src/auto/expander.rs @@ -496,6 +496,14 @@ impl ExpanderBuilder { } } + #[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/file_chooser_dialog.rs b/gtk4/src/auto/file_chooser_dialog.rs index f8e17d75242d..5b46241b02ae 100644 --- a/gtk4/src/auto/file_chooser_dialog.rs +++ b/gtk4/src/auto/file_chooser_dialog.rs @@ -288,6 +288,14 @@ impl FileChooserDialogBuilder { } } + #[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/file_chooser_widget.rs b/gtk4/src/auto/file_chooser_widget.rs index e5301158e664..ebf34e9ffeac 100644 --- a/gtk4/src/auto/file_chooser_widget.rs +++ b/gtk4/src/auto/file_chooser_widget.rs @@ -568,6 +568,14 @@ impl FileChooserWidgetBuilder { } } + #[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/file_dialog.rs b/gtk4/src/auto/file_dialog.rs index df5264a06265..88692eaff504 100644 --- a/gtk4/src/auto/file_dialog.rs +++ b/gtk4/src/auto/file_dialog.rs @@ -233,6 +233,174 @@ impl FileDialog { })) } + #[cfg(feature = "v4_18")] + #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))] + #[doc(alias = "gtk_file_dialog_open_multiple_text_files")] + pub fn open_multiple_text_files< + 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_multiple_text_files_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_multiple_text_files_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_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/fixed.rs b/gtk4/src/auto/fixed.rs index dda22bb3bdfd..1028187acd46 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 0ce6be997ff5..d3ab7abf8d01 100644 --- a/gtk4/src/auto/flow_box.rs +++ b/gtk4/src/auto/flow_box.rs @@ -954,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 0b226014b7a7..24469d89f4ba 100644 --- a/gtk4/src/auto/flow_box_child.rs +++ b/gtk4/src/auto/flow_box_child.rs @@ -149,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 cbf9bf3c389e..f066ee6cd3bd 100644 --- a/gtk4/src/auto/font_button.rs +++ b/gtk4/src/auto/font_button.rs @@ -401,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_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 fe4ea2671fca..c05392f33978 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 182979c3d8a5..30f2d5b67600 100644 --- a/gtk4/src/auto/font_dialog_button.rs +++ b/gtk4/src/auto/font_dialog_button.rs @@ -572,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 41ffe181498b..81b4921c1803 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/gl_area.rs b/gtk4/src/auto/gl_area.rs index 8b2b7865ddf5..1e5f52787c40 100644 --- a/gtk4/src/auto/gl_area.rs +++ b/gtk4/src/auto/gl_area.rs @@ -179,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 75ed4111cbb2..68c560dcd3fd 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 031090d7b479..708c0249221d 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 44cf6b02673c..16c15b5d8a7d 100644 --- a/gtk4/src/auto/grid_view.rs +++ b/gtk4/src/auto/grid_view.rs @@ -541,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 dbf9655d8004..b36c99ccfb3d 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_view.rs b/gtk4/src/auto/icon_view.rs index ac57ef1d5d7a..fd59f638e91b 100644 --- a/gtk4/src/auto/icon_view.rs +++ b/gtk4/src/auto/icon_view.rs @@ -1651,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/image.rs b/gtk4/src/auto/image.rs index df745b0eb13f..579e38092d99 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 747faee3d15e..d55b6c30a5a4 100644 --- a/gtk4/src/auto/info_bar.rs +++ b/gtk4/src/auto/info_bar.rs @@ -433,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 645d2bdbb5d4..d02189265327 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 4b8f0c89fe9a..f256a45d25c6 100644 --- a/gtk4/src/auto/label.rs +++ b/gtk4/src/auto/label.rs @@ -1264,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 57908c8088b3..1ed55610c63e 100644 --- a/gtk4/src/auto/level_bar.rs +++ b/gtk4/src/auto/level_bar.rs @@ -454,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 01d0ad5ca8d2..bdec9cf831eb 100644 --- a/gtk4/src/auto/link_button.rs +++ b/gtk4/src/auto/link_button.rs @@ -308,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 5130d2f33a5b..d626212fdf84 100644 --- a/gtk4/src/auto/list_box.rs +++ b/gtk4/src/auto/list_box.rs @@ -909,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 0ef8e4f9f5f2..f6b19650e9a7 100644 --- a/gtk4/src/auto/list_box_row.rs +++ b/gtk4/src/auto/list_box_row.rs @@ -161,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 4fa3e4049d44..1b0d17f24696 100644 --- a/gtk4/src/auto/list_view.rs +++ b/gtk4/src/auto/list_view.rs @@ -561,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 d0b590918ae1..9b20af38b833 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 cac78e1a8e11..03ca22691297 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 dbb16df1da55..7676dd28af87 100644 --- a/gtk4/src/auto/menu_button.rs +++ b/gtk4/src/auto/menu_button.rs @@ -810,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 c63e7013c1db..6b67933bb1e7 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/notebook.rs b/gtk4/src/auto/notebook.rs index 698e4fbe7536..8e0466208b7c 100644 --- a/gtk4/src/auto/notebook.rs +++ b/gtk4/src/auto/notebook.rs @@ -960,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 400b706632fb..34ac2a662ab4 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 261002a60943..1e5047047ee8 100644 --- a/gtk4/src/auto/paned.rs +++ b/gtk4/src/auto/paned.rs @@ -790,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 187d68b9f201..2bc2a60fac1a 100644 --- a/gtk4/src/auto/password_entry.rs +++ b/gtk4/src/auto/password_entry.rs @@ -358,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 968488c8e504..918ed7b38e8a 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 910de85e2f97..054d930d6bd8 100644 --- a/gtk4/src/auto/popover.rs +++ b/gtk4/src/auto/popover.rs @@ -195,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 cdd397b11cef..fdc8ac34694d 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 44d379d58395..9b90744f081d 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_unix_dialog.rs b/gtk4/src/auto/print_unix_dialog.rs index 0b8910817af3..dbf2ed59a851 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/progress_bar.rs b/gtk4/src/auto/progress_bar.rs index ca7492d48081..3150d1028e61 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/revealer.rs b/gtk4/src/auto/revealer.rs index 02474a6e1b62..187ccc43f24a 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 37dcb37d1f3d..5970251890b3 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 075966937744..c2688d4437f4 100644 --- a/gtk4/src/auto/scale_button.rs +++ b/gtk4/src/auto/scale_button.rs @@ -194,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 88f5b588e64c..73976c2a0faf 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 5adebfcaa1d0..8bfa9ae3a3be 100644 --- a/gtk4/src/auto/scrolled_window.rs +++ b/gtk4/src/auto/scrolled_window.rs @@ -1102,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 bef778ae93f8..a381c389f11b 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 67c8b2c08fad..0f40c6cfd1a8 100644 --- a/gtk4/src/auto/search_entry.rs +++ b/gtk4/src/auto/search_entry.rs @@ -557,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/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 bac692f484b5..38375c96f693 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 84d3e896d7f0..a29f2bec02ea 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 9ff797c0de3a..dcc014342dfb 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 7e02f7cbee16..2ffb1c6b2f21 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 c5c5cee491a5..4128ee4a8a86 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")))] @@ -35,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 { @@ -44,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( @@ -86,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( @@ -112,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( @@ -139,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( @@ -179,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()), @@ -427,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/spin_button.rs b/gtk4/src/auto/spin_button.rs index 89b206e4cf7d..73e77af86033 100644 --- a/gtk4/src/auto/spin_button.rs +++ b/gtk4/src/auto/spin_button.rs @@ -819,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 cb44eba33f56..4993b56b59c9 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 a8d570b9ae60..0450968c5c97 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 7b5570ee1334..2b9329e7b3bb 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 b06cc934d865..7a96af9eef97 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 64188809de3b..a7248f75ca21 100644 --- a/gtk4/src/auto/statusbar.rs +++ b/gtk4/src/auto/statusbar.rs @@ -249,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/switch.rs b/gtk4/src/auto/switch.rs index 4a2426399196..257f4eeda131 100644 --- a/gtk4/src/auto/switch.rs +++ b/gtk4/src/auto/switch.rs @@ -282,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 872c9360e912..9da084c15990 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_view.rs b/gtk4/src/auto/text_view.rs index 622b136281e7..384a2b202730 100644 --- a/gtk4/src/auto/text_view.rs +++ b/gtk4/src/auto/text_view.rs @@ -306,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 7a17b0a98a0d..351142f8c074 100644 --- a/gtk4/src/auto/toggle_button.rs +++ b/gtk4/src/auto/toggle_button.rs @@ -218,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 02ed92c3c3ed..6b888a9c9783 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_view.rs b/gtk4/src/auto/tree_view.rs index 0f53b11bb302..54a5c3ea5a7e 100644 --- a/gtk4/src/auto/tree_view.rs +++ b/gtk4/src/auto/tree_view.rs @@ -278,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/versions.txt b/gtk4/src/auto/versions.txt index 83f209490b30..a93154df0202 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 @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) diff --git a/gtk4/src/auto/video.rs b/gtk4/src/auto/video.rs index 04c9adf4f4c9..4e6dd0e66000 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 6a21d6687a67..35225a01d49b 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 614e6f9a321a..38f72d12a4bf 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 23aca042cc2b..337a782898b5 100644 --- a/gtk4/src/auto/widget.rs +++ b/gtk4/src/auto/widget.rs @@ -557,6 +557,19 @@ pub trait WidgetExt: IsA + '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 { @@ -1265,6 +1278,19 @@ pub trait WidgetExt: IsA + '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) { @@ -2230,6 +2256,31 @@ pub trait WidgetExt: IsA + '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 _, + c"notify::limit-events".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 d28d4c284a7d..9b0479c49862 100644 --- a/gtk4/src/auto/window.rs +++ b/gtk4/src/auto/window.rs @@ -344,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 59e5d0a1ce1a..e3157ac174ef 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 2144a2f60be1..dc76fad7f404 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/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 83f209490b30..a93154df0202 100644 --- a/gtk4/sys/versions.txt +++ b/gtk4/sys/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 3491754499c3) -from gir-files (https://github.com/gtk-rs/gir-files @ 3ede86d6a218) +from gir-files (https://github.com/gtk-rs/gir-files @ 5ba392030e71) From 6f549ae8bc4f96add977e7de4bbc558c1980827a Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 13 Feb 2025 08:35:26 +0100 Subject: [PATCH 5/9] Update dependencies --- Cargo.lock | 325 +++++++++++++++++++++++++++++------------------------ deny.toml | 5 - 2 files changed, 178 insertions(+), 152 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ed65b20ac24..23295ba2e6aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,9 +88,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" [[package]] name = "bitmaps" @@ -109,24 +109,24 @@ checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" [[package]] name = "bumpalo" -version = "3.16.0" +version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" [[package]] name = "bytemuck" -version = "1.20.0" +version = "1.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" dependencies = [ "bytemuck_derive", ] [[package]] name = "bytemuck_derive" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" dependencies = [ "proc-macro2", "quote", @@ -147,16 +147,16 @@ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" [[package]] name = "bytes" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" +checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" [[package]] name = "cairo-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "cairo-sys-rs", "glib", "libc", @@ -165,7 +165,7 @@ dependencies = [ [[package]] name = "cairo-sys-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib-sys", "libc", @@ -174,9 +174,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.4" +version = "1.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9157bbaa6b165880c27a4293a474c91cdcf265cc68cc829bf10be0964a391caf" +checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" dependencies = [ "shlex", ] @@ -223,7 +223,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "block", "cocoa-foundation", "core-foundation", @@ -239,7 +239,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e14045fb83be07b5acf1c0884b2180461635b433455fa35d1cd6f17f1450679d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "block", "core-foundation", "core-graphics-types", @@ -284,7 +284,7 @@ version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "core-graphics-types", "foreign-types", @@ -297,16 +297,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "core-foundation", "libc", ] [[package]] name = "core_maths" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b02505ccb8c50b0aa21ace0fc08c3e53adebd4e58caa18a36152803c7709a3" +checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" dependencies = [ "libm", ] @@ -373,9 +373,9 @@ dependencies = [ [[package]] name = "event-listener" -version = "5.3.1" +version = "5.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" dependencies = [ "concurrent-queue", "parking", @@ -400,11 +400,11 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "femtovg" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eafc3dd3c956423a6669e1f6f9ab23261dbe45cdb24ce23dba38b0389b8a8ff8" +checksum = "36d63bc3ab69493186eefc2568dddc21d2fe5f3c552edc64def6c42297ec9bbd" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "bytemuck", "fnv", "glow", @@ -538,7 +538,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "gdk-pixbuf-sys", "gio", @@ -549,7 +549,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "gio-sys", "glib-sys", @@ -702,10 +702,22 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets", +] + [[package]] name = "gif" version = "0.13.1" @@ -725,7 +737,7 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "gio" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "futures-channel", "futures-core", @@ -741,7 +753,7 @@ dependencies = [ [[package]] name = "gio-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib-sys", "gobject-sys", @@ -784,15 +796,15 @@ checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" dependencies = [ "khronos_api 3.1.0", "log", - "xml-rs 0.8.24", + "xml-rs 0.8.25", ] [[package]] name = "glib" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "futures-channel", "futures-core", "futures-executor", @@ -810,7 +822,7 @@ dependencies = [ [[package]] name = "glib-macros" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "heck", "proc-macro-crate", @@ -822,7 +834,7 @@ dependencies = [ [[package]] name = "glib-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "libc", "system-deps", @@ -843,9 +855,9 @@ dependencies = [ [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "glow" @@ -862,7 +874,7 @@ dependencies = [ [[package]] name = "gobject-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib-sys", "libc", @@ -872,7 +884,7 @@ dependencies = [ [[package]] name = "graphene-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib", "graphene-sys", @@ -882,7 +894,7 @@ dependencies = [ [[package]] name = "graphene-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib-sys", "libc", @@ -949,7 +961,7 @@ dependencies = [ "gtk4", "proc-macro-crate", "proc-macro2", - "quick-xml 0.37.2", + "quick-xml", "quote", "syn", "trybuild2", @@ -1041,15 +1053,15 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.5" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" +checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" [[package]] name = "hyper" -version = "1.5.2" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" dependencies = [ "bytes", "futures-channel", @@ -1066,9 +1078,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.3" +version = "0.27.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" +checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2" dependencies = [ "futures-util", "http", @@ -1298,9 +1310,9 @@ checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408" [[package]] name = "indexmap" -version = "2.7.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", "hashbrown", @@ -1308,9 +1320,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.10.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "itoa" @@ -1320,9 +1332,9 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "js-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ "once_cell", "wasm-bindgen", @@ -1379,9 +1391,9 @@ checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" [[package]] name = "linux-raw-sys" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" [[package]] name = "litemap" @@ -1401,9 +1413,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.22" +version = "0.4.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" [[package]] name = "lru" @@ -1443,9 +1455,9 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394" +checksum = "b3b1c9bd4fe1f0f8b387f6eb9eb3b4a1aa26185e5750efb9140301703f62cd1b" dependencies = [ "adler2", ] @@ -1457,7 +1469,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] @@ -1481,23 +1493,23 @@ dependencies = [ [[package]] name = "object" -version = "0.36.5" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.20.2" +version = "1.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" +checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" [[package]] name = "pango" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "gio", "glib", @@ -1508,7 +1520,7 @@ dependencies = [ [[package]] name = "pango-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#194eb7f3616e3557055b93d06612ab2b68191cd7" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" dependencies = [ "glib-sys", "gobject-sys", @@ -1553,9 +1565,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project-lite" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -1596,15 +1608,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "quick-xml" -version = "0.36.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7649a7b4df05aed9ea7ec6f628c67c9953a43869b8bc50929569b2999d443fe" -dependencies = [ - "memchr", -] - [[package]] name = "quick-xml" version = "0.37.2" @@ -1639,7 +1642,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ "bytes", - "getrandom", + "getrandom 0.2.15", "rand", "ring", "rustc-hash", @@ -1654,9 +1657,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52cd4b1eff68bf27940dd39811292c49e007f4d0b4c357358dc9b0197be6b527" +checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" dependencies = [ "cfg_aliases", "libc", @@ -1702,7 +1705,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.15", ] [[package]] @@ -1720,7 +1723,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", ] [[package]] @@ -1783,7 +1786,7 @@ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.15", "libc", "spin", "untrusted", @@ -1798,9 +1801,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustc_version" @@ -1813,11 +1816,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.42" +version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "errno", "libc", "linux-raw-sys", @@ -1826,9 +1829,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.20" +version = "0.23.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" +checksum = "47796c98c480fce5406ef69d1c76378375492c3b0a0de587be0c1d9feb12f395" dependencies = [ "once_cell", "ring", @@ -1849,9 +1852,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.10.1" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" dependencies = [ "web-time", ] @@ -1867,13 +1870,19 @@ dependencies = [ "untrusted", ] +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + [[package]] name = "rustybuzz" version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd3c7c96f8a08ee34eff8857b11b49b07d71d1c3f4e88f8a88d4c9e9f90b1702" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "bytemuck", "core_maths", "log", @@ -1887,9 +1896,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" [[package]] name = "scoped-tls" @@ -1905,9 +1914,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.24" +version = "1.0.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cb6eb87a131f756572d7fb904f6e7b68633f09cca868c5df1c4b8d1a694bbba" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" [[package]] name = "serde" @@ -1931,9 +1940,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.133" +version = "1.0.138" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" dependencies = [ "itoa", "memchr", @@ -2057,9 +2066,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.90" +version = "2.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" +checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" dependencies = [ "proc-macro2", "quote", @@ -2107,13 +2116,13 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tempfile" -version = "3.15.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a8a559c81686f576e8cd0290cd2a24a2a9ad80c98b3478856500fcbd7acd704" +checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" dependencies = [ "cfg-if", "fastrand", - "getrandom", + "getrandom 0.3.1", "once_cell", "rustix", "windows-sys 0.59.0", @@ -2130,18 +2139,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.8" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "2.0.8" +version = "2.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" dependencies = [ "proc-macro2", "quote", @@ -2160,9 +2169,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" dependencies = [ "tinyvec_macros", ] @@ -2214,9 +2223,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +checksum = "cd87a5cdd6ffab733b2f74bc4fd7ee5fff6634124999ac278c35fc78c6120148" dependencies = [ "serde", "serde_spanned", @@ -2235,9 +2244,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.22" +version = "0.22.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +checksum = "17b4795ff5edd201c7cd6dca065ae59972ce77d1b80fa0a84d94950ece7d1474" dependencies = [ "indexmap", "serde", @@ -2348,9 +2357,9 @@ checksum = "ce61d488bcdc9bc8b5d1772c404828b17fc481c0a582b5581e95fb233aef503e" [[package]] name = "unicode-ident" -version = "1.0.14" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" +checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" [[package]] name = "unicode-properties" @@ -2426,22 +2435,32 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", @@ -2453,9 +2472,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.49" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", @@ -2466,9 +2485,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2476,9 +2495,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", @@ -2489,15 +2508,18 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wayland-backend" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "056535ced7a150d45159d3a8dc30f91a2e2d588ca0b23f70e56033622b8016f6" +checksum = "b7208998eaa3870dad37ec8836979581506e0c5c64c20c9e79e9d2a10d6f47bf" dependencies = [ "cc", "downcast-rs", @@ -2509,11 +2531,11 @@ dependencies = [ [[package]] name = "wayland-client" -version = "0.31.7" +version = "0.31.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b66249d3fc69f76fd74c82cc319300faa554e9d865dab1f7cd66cc20db10b280" +checksum = "c2120de3d33638aaef5b9f4472bff75f07c56379cf76ea320bd3a3d65ecaf73f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.8.0", "rustix", "wayland-backend", "wayland-scanner", @@ -2521,20 +2543,20 @@ dependencies = [ [[package]] name = "wayland-scanner" -version = "0.31.5" +version = "0.31.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597f2001b2e5fc1121e3d5b9791d3e78f05ba6bfa4641053846248e3a13661c3" +checksum = "896fdafd5d28145fce7958917d69f2fd44469b1d4e861cb5961bcbeebc6d1484" dependencies = [ "proc-macro2", - "quick-xml 0.36.2", + "quick-xml", "quote", ] [[package]] name = "wayland-sys" -version = "0.31.5" +version = "0.31.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efa8ac0d8e8ed3e3b5c9fc92c7881406a268e11555abe36493efabe649a29e09" +checksum = "dbcebb399c77d5aa9fa5db874806ee7b4eba4e73650948e8f93963f128896615" dependencies = [ "dlib", "log", @@ -2543,9 +2565,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", @@ -2563,9 +2585,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.26.7" +version = "0.26.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" +checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9" dependencies = [ "rustls-pki-types", ] @@ -2753,13 +2775,22 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.20" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" +checksum = "59690dea168f2198d1a3b0cac23b8063efcd11012f10ae4698f284808c8ef603" dependencies = [ "memchr", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags 2.8.0", +] + [[package]] name = "write16" version = "1.0.0" @@ -2793,9 +2824,9 @@ dependencies = [ [[package]] name = "xml-rs" -version = "0.8.24" +version = "0.8.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea8b391c9a790b496184c29f7f93b9ed5b16abb306c05415b68bcc16e4d06432" +checksum = "c5b940ebc25896e71dd073bad2dbaa2abfe97b0a391415e22ad1326d9c54e3c4" [[package]] name = "yoke" diff --git a/deny.toml b/deny.toml index 7c9926dfe1b5..daa87bd60eeb 100644 --- a/deny.toml +++ b/deny.toml @@ -32,8 +32,3 @@ unknown-git = "deny" allow-git = [ "https://github.com/gtk-rs/gtk-rs-core", ] - -# wayland-scanner depends on an older version -[[bans.skip]] -name = "quick-xml" -version = "0.36.0" From 274c55c0ce40241011b1875518d22c8560b3b839 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 13 Feb 2025 08:40:15 +0100 Subject: [PATCH 6/9] Export v4.18 feature --- .github/workflows/CI.yml | 8 ++++---- gdk4-wayland/Cargo.toml | 1 + gdk4-wayland/README.md | 1 + gdk4-wayland/sys/Cargo.toml | 2 +- gdk4-x11/Cargo.toml | 1 + gdk4-x11/README.md | 1 + gdk4-x11/sys/Cargo.toml | 2 +- gsk4/Cargo.toml | 5 +++-- gsk4/README.md | 2 ++ gsk4/sys/Cargo.toml | 2 +- 10 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 83244baa6425..bb473678d8df 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -52,14 +52,14 @@ jobs: features: "v4_18,xml_validation,blueprint", test_sys: false, } - - { name: "gsk4", features: "v4_14,broadway,vulkan", test_sys: true } - - { name: "gdk4", features: "v4_16,gl", test_sys: true } + - { name: "gsk4", features: "v4_18,broadway,vulkan", test_sys: true } + - { name: "gdk4", features: "v4_18,gl", test_sys: true } - { name: "gdk4-wayland", - features: "v4_12,wayland_crate,egl", + features: "v4_18,wayland_crate,egl", test_sys: true, } - - { name: "gdk4-x11", features: "v4_16,xlib,egl", test_sys: true } + - { name: "gdk4-x11", features: "v4_18,xlib,egl", test_sys: true } - { name: "gtk4-macros", features: "xml_validation,blueprint", diff --git a/gdk4-wayland/Cargo.toml b/gdk4-wayland/Cargo.toml index beb03f5f2f8d..12f4435cf1ee 100644 --- a/gdk4-wayland/Cargo.toml +++ b/gdk4-wayland/Cargo.toml @@ -18,6 +18,7 @@ v4_4 = ["gdk4-wayland-sys/v4_4", "gdk/v4_4"] v4_10 = ["gdk4-wayland-sys/v4_10", "v4_4", "gdk/v4_10"] v4_12 = ["gdk4-wayland-sys/v4_12", "v4_10", "gdk/v4_12"] v4_16 = ["gdk4-wayland-sys/v4_16", "v4_12", "gdk/v4_16"] +v4_18 = ["gdk4-wayland-sys/v4_18", "v4_16", "gdk/v4_18"] wayland_crate = ["wayland-client", "wayland-backend"] egl = ["khronos-egl"] diff --git a/gdk4-wayland/README.md b/gdk4-wayland/README.md index 66887f016f34..a27d8c077dde 100644 --- a/gdk4-wayland/README.md +++ b/gdk4-wayland/README.md @@ -43,6 +43,7 @@ gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-w | Feature | Description | | --- | ----------- | +| `v4_18` | Enable the new APIs part of GTK 4.18 | | `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_12` | Enable the new APIs part of GTK 4.12 | | `v4_10` | Enable the new APIs part of GTK 4.10 | diff --git a/gdk4-wayland/sys/Cargo.toml b/gdk4-wayland/sys/Cargo.toml index fe7827c25690..9bc8c2ea6700 100644 --- a/gdk4-wayland/sys/Cargo.toml +++ b/gdk4-wayland/sys/Cargo.toml @@ -46,7 +46,7 @@ version = "4.12" version = "4.16" [package.metadata.system-deps.gtk4_wayland.v4_18] -version = "4.18" +version = "4.17" [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] diff --git a/gdk4-x11/Cargo.toml b/gdk4-x11/Cargo.toml index db4ef21be2d4..42d77ff9f4d6 100644 --- a/gdk4-x11/Cargo.toml +++ b/gdk4-x11/Cargo.toml @@ -17,6 +17,7 @@ version.workspace = true v4_4 = ["gdk4-x11-sys/v4_4", "gdk/v4_4"] v4_10 = ["gdk4-x11-sys/v4_10", "v4_4", "gdk/v4_10"] v4_16 = ["gdk4-x11-sys/v4_16", "v4_10", "gdk/v4_16"] +v4_18 = ["gdk4-x11-sys/v4_18", "v4_16", "gdk/v4_18"] egl = ["khronos-egl"] xlib = ["x11"] diff --git a/gdk4-x11/README.md b/gdk4-x11/README.md index 763e17ed6638..16e416dc5afe 100644 --- a/gdk4-x11/README.md +++ b/gdk4-x11/README.md @@ -43,6 +43,7 @@ gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-w | Feature | Description | | --- | ----------- | +| `v4_18` | Enable the new APIs part of GTK 4.18 | | `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_10` | Enable the new APIs part of GTK 4.10 | | `v4_4` | Enable the new APIs part of GTK 4.4 | diff --git a/gdk4-x11/sys/Cargo.toml b/gdk4-x11/sys/Cargo.toml index f5b504c227de..b9708ba3f58b 100644 --- a/gdk4-x11/sys/Cargo.toml +++ b/gdk4-x11/sys/Cargo.toml @@ -43,7 +43,7 @@ version = "4.10" version = "4.16" [package.metadata.system-deps.gtk4_x11.v4_18] -version = "4.18" +version = "4.17" [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] diff --git a/gsk4/Cargo.toml b/gsk4/Cargo.toml index af435436e5a4..6fae91e71f3a 100644 --- a/gsk4/Cargo.toml +++ b/gsk4/Cargo.toml @@ -23,8 +23,9 @@ v4_2 = ["gsk4-sys/v4_2", "gdk/v4_2"] v4_4 = ["gsk4-sys/v4_4", "gdk/v4_4", "v4_2"] v4_6 = ["gsk4-sys/v4_6", "gdk/v4_6", "v4_4"] v4_10 = ["gsk4-sys/v4_10", "gdk/v4_10", "v4_6"] -v4_14 = ["gsk4-sys/v4_14", "v4_10"] -v4_16 = ["gsk4-sys/v4_16", "v4_14"] +v4_14 = ["gsk4-sys/v4_14", "gdk/v4_14", "v4_10"] +v4_16 = ["gsk4-sys/v4_16", "gdk/v4_16", "v4_14"] +v4_18 = ["gsk4-sys/v4_18", "gdk/v4_18", "v4_16"] [dependencies] gsk4-sys.workspace = true diff --git a/gsk4/README.md b/gsk4/README.md index b94cda79cca1..68fdc6090c6c 100644 --- a/gsk4/README.md +++ b/gsk4/README.md @@ -45,6 +45,8 @@ gsk = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gsk4" } | --- | ----------- | | `vulkan` | Enable `vulkan` Renderer. Only if GTK is compiled with Vulkan support | | `broadway` | Enable `broadway` Renderer. Only if GTK is compiled with Broadway support | +| `v4_18` | Enable the new APIs part of GTK 4.18 | +| `v4_16` | Enable the new APIs part of GTK 4.16 | | `v4_14` | Enable the new APIs part of GTK 4.14 | | `v4_10` | Enable the new APIs part of GTK 4.10 | | `v4_6` | Enable the new APIs part of GTK 4.6 | diff --git a/gsk4/sys/Cargo.toml b/gsk4/sys/Cargo.toml index 724762c699fa..4c5b1216a965 100644 --- a/gsk4/sys/Cargo.toml +++ b/gsk4/sys/Cargo.toml @@ -52,7 +52,7 @@ version = "4.14" version = "4.16" [package.metadata.system-deps.gtk4.v4_18] -version = "4.18" +version = "4.17" [package.metadata.docs.rs] rustc-args = ["--cfg", "docsrs"] From 748f675fd69646c70b559e80b0d85ab6508024da Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 13 Feb 2025 08:42:25 +0100 Subject: [PATCH 7/9] Ignore unused imports warning on auto code --- gdk4/src/lib.rs | 1 + gtk4/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/gdk4/src/lib.rs b/gdk4/src/lib.rs index d3759f408030..4ce8a188e219 100644 --- a/gdk4/src/lib.rs +++ b/gdk4/src/lib.rs @@ -54,6 +54,7 @@ macro_rules! skip_assert_initialized { #[allow(clippy::derived_hash_with_manual_eq)] #[allow(clippy::type_complexity)] +#[allow(unused_imports)] mod auto; #[macro_use] diff --git a/gtk4/src/lib.rs b/gtk4/src/lib.rs index 6f9346073729..1306bf03930e 100644 --- a/gtk4/src/lib.rs +++ b/gtk4/src/lib.rs @@ -89,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] From d979e9e27ff596d9fea8fd0180b924b9b6b694bd Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 16 Feb 2025 09:06:20 +0100 Subject: [PATCH 8/9] gdk-wayland: Export auto traits on prelude --- gdk4-wayland/src/prelude.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk4-wayland/src/prelude.rs b/gdk4-wayland/src/prelude.rs index bcd5b61752b8..52ccd361e8b3 100644 --- a/gdk4-wayland/src/prelude.rs +++ b/gdk4-wayland/src/prelude.rs @@ -6,4 +6,5 @@ #[doc(hidden)] pub use gdk::prelude::*; +pub use crate::auto::traits::*; pub use crate::wayland_surface::WaylandSurfaceExtManual; From 07cb5195acbb1483a38ad3d649e1e2e0d4edf270 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 16 Feb 2025 09:10:38 +0100 Subject: [PATCH 9/9] Update dependencies --- Cargo.lock | 63 ++++++++++++++++++++------------------------- examples/Cargo.toml | 4 +-- 2 files changed, 30 insertions(+), 37 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 23295ba2e6aa..fed6dd546396 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -154,7 +154,7 @@ checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" [[package]] name = "cairo-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "bitflags 2.8.0", "cairo-sys-rs", @@ -165,7 +165,7 @@ dependencies = [ [[package]] name = "cairo-sys-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib-sys", "libc", @@ -174,9 +174,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.13" +version = "1.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7777341816418c02e033934a09f20dc0ccaf65a5201ef8a450ae0105a573fda" +checksum = "0c3d1b2e905a3a7b00a6141adb0e4c0bb941d11caf55349d863942a1cc44e3c9" dependencies = [ "shlex", ] @@ -357,9 +357,9 @@ dependencies = [ [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "errno" @@ -400,9 +400,9 @@ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" [[package]] name = "femtovg" -version = "0.11.3" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36d63bc3ab69493186eefc2568dddc21d2fe5f3c552edc64def6c42297ec9bbd" +checksum = "e9893dbf48a85e6d92e461d8417b883b647b01b1049c9068f30149a1e1d8e483" dependencies = [ "bitflags 2.8.0", "bytemuck", @@ -538,7 +538,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "gdk-pixbuf-sys", "gio", @@ -549,7 +549,7 @@ dependencies = [ [[package]] name = "gdk-pixbuf-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "gio-sys", "glib-sys", @@ -737,7 +737,7 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "gio" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "futures-channel", "futures-core", @@ -753,7 +753,7 @@ dependencies = [ [[package]] name = "gio-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib-sys", "gobject-sys", @@ -802,7 +802,7 @@ dependencies = [ [[package]] name = "glib" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "bitflags 2.8.0", "futures-channel", @@ -822,7 +822,7 @@ dependencies = [ [[package]] name = "glib-macros" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "heck", "proc-macro-crate", @@ -834,7 +834,7 @@ dependencies = [ [[package]] name = "glib-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "libc", "system-deps", @@ -861,9 +861,9 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "glow" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33cd8ff5e02c1a5463ec10a846c8f3166a3ae0382ec33de6a327ea6dd61c41d" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" dependencies = [ "js-sys", "slotmap", @@ -874,7 +874,7 @@ dependencies = [ [[package]] name = "gobject-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib-sys", "libc", @@ -884,7 +884,7 @@ dependencies = [ [[package]] name = "graphene-rs" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib", "graphene-sys", @@ -894,7 +894,7 @@ dependencies = [ [[package]] name = "graphene-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib-sys", "libc", @@ -1509,7 +1509,7 @@ checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" [[package]] name = "pango" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "gio", "glib", @@ -1520,7 +1520,7 @@ dependencies = [ [[package]] name = "pango-sys" version = "0.21.0" -source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#8216c67d96ab0a52fb946dff2a79ec848f6a446d" +source = "git+https://github.com/gtk-rs/gtk-rs-core?branch=main#40e2f3e71a867e06f55e3b478631e708e57ac3e7" dependencies = [ "glib-sys", "gobject-sys", @@ -1657,9 +1657,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +checksum = "e46f3055866785f6b92bc6164b76be02ca8f2eb4b002c0354b28cf4c119e5944" dependencies = [ "cfg_aliases", "libc", @@ -1780,15 +1780,14 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.8" +version = "0.17.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +checksum = "e75ec5e92c4d8aede845126adc388046234541629e76029599ed35a003c7ed24" dependencies = [ "cc", "cfg-if", "getrandom 0.2.15", "libc", - "spin", "untrusted", "windows-sys 0.52.0", ] @@ -2032,9 +2031,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" [[package]] name = "socket2" @@ -2046,12 +2045,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - [[package]] name = "stable_deref_trait" version = "1.2.0" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 41ff80d79ef3..d362666b625a 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -7,9 +7,9 @@ authors.workspace = true [dependencies] chrono = "0.4" -femtovg = { version = "0.11", optional = true, default-features = false } +femtovg = { version = "0.13", optional = true, default-features = false } glium = { version = "0.36", optional = true, default-features = false } -glow = { version = "0.15.0", optional = true } +glow = { version = "0.16.0", optional = true } epoxy = { version = "0.1.0", optional = true } libloading = { version = "0.8.6", optional = true } im-rc = { version = "15", optional = true }