From 7f2eeb52f7748fdb278a36c7eccb2e761f986c09 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Fri, 23 Feb 2018 08:29:44 +0300 Subject: [PATCH] Generate WidgetPath --- Gir.toml | 5 + gir | 2 +- src/auto/about_dialog.rs | 2 +- src/auto/accel_group.rs | 2 +- src/auto/action_bar.rs | 2 +- src/auto/actionable.rs | 2 +- src/auto/adjustment.rs | 2 +- src/auto/alignment.rs | 2 +- src/auto/app_chooser_button.rs | 2 +- src/auto/app_chooser_dialog.rs | 2 +- src/auto/app_chooser_widget.rs | 2 +- src/auto/application.rs | 2 +- src/auto/application_window.rs | 2 +- src/auto/arrow.rs | 2 +- src/auto/aspect_frame.rs | 2 +- src/auto/assistant.rs | 2 +- src/auto/bin.rs | 2 +- src/auto/box_.rs | 2 +- src/auto/buildable.rs | 2 +- src/auto/builder.rs | 2 +- src/auto/button.rs | 2 +- src/auto/button_box.rs | 2 +- src/auto/calendar.rs | 2 +- src/auto/cell_area.rs | 2 +- src/auto/cell_area_box.rs | 2 +- src/auto/cell_area_context.rs | 2 +- src/auto/cell_editable.rs | 2 +- src/auto/cell_layout.rs | 2 +- src/auto/cell_renderer.rs | 2 +- src/auto/cell_renderer_accel.rs | 2 +- src/auto/cell_renderer_combo.rs | 2 +- src/auto/cell_renderer_pixbuf.rs | 2 +- src/auto/cell_renderer_progress.rs | 2 +- src/auto/cell_renderer_spin.rs | 2 +- src/auto/cell_renderer_spinner.rs | 2 +- src/auto/cell_renderer_text.rs | 2 +- src/auto/cell_renderer_toggle.rs | 2 +- src/auto/cell_view.rs | 2 +- src/auto/check_button.rs | 2 +- src/auto/check_menu_item.rs | 2 +- src/auto/clipboard.rs | 2 +- src/auto/color_button.rs | 2 +- src/auto/color_chooser.rs | 2 +- src/auto/color_chooser_dialog.rs | 2 +- src/auto/color_chooser_widget.rs | 2 +- src/auto/combo_box.rs | 2 +- src/auto/combo_box_text.rs | 2 +- src/auto/container.rs | 13 +- src/auto/css_provider.rs | 2 +- src/auto/css_section.rs | 2 +- src/auto/dialog.rs | 2 +- src/auto/drawing_area.rs | 2 +- src/auto/editable.rs | 2 +- src/auto/entry.rs | 2 +- src/auto/entry_completion.rs | 2 +- src/auto/enums.rs | 2 +- src/auto/event_box.rs | 2 +- src/auto/event_controller.rs | 2 +- src/auto/expander.rs | 2 +- src/auto/file_chooser.rs | 2 +- src/auto/file_chooser_button.rs | 2 +- src/auto/file_chooser_dialog.rs | 2 +- src/auto/file_chooser_native.rs | 2 +- src/auto/file_chooser_widget.rs | 2 +- src/auto/file_filter.rs | 2 +- src/auto/fixed.rs | 2 +- src/auto/flags.rs | 2 +- src/auto/flow_box.rs | 2 +- src/auto/flow_box_child.rs | 2 +- src/auto/font_button.rs | 2 +- src/auto/font_chooser.rs | 2 +- src/auto/font_chooser_dialog.rs | 2 +- src/auto/font_chooser_widget.rs | 2 +- src/auto/frame.rs | 2 +- src/auto/functions.rs | 2 +- src/auto/gesture.rs | 2 +- src/auto/gesture_drag.rs | 2 +- src/auto/gesture_long_press.rs | 2 +- src/auto/gesture_multi_press.rs | 2 +- src/auto/gesture_pan.rs | 2 +- src/auto/gesture_rotate.rs | 2 +- src/auto/gesture_single.rs | 2 +- src/auto/gesture_swipe.rs | 2 +- src/auto/gesture_zoom.rs | 2 +- src/auto/gl_area.rs | 2 +- src/auto/grid.rs | 2 +- src/auto/header_bar.rs | 2 +- src/auto/i_m_context.rs | 2 +- src/auto/i_m_multicontext.rs | 2 +- src/auto/icon_factory.rs | 2 +- src/auto/icon_info.rs | 32 ++-- src/auto/icon_set.rs | 2 +- src/auto/icon_source.rs | 2 +- src/auto/icon_theme.rs | 2 +- src/auto/icon_view.rs | 2 +- src/auto/image.rs | 2 +- src/auto/image_menu_item.rs | 2 +- src/auto/info_bar.rs | 2 +- src/auto/invisible.rs | 2 +- src/auto/label.rs | 2 +- src/auto/layout.rs | 2 +- src/auto/level_bar.rs | 2 +- src/auto/link_button.rs | 2 +- src/auto/list_box.rs | 2 +- src/auto/list_box_row.rs | 2 +- src/auto/list_store.rs | 2 +- src/auto/lock_button.rs | 2 +- src/auto/menu.rs | 2 +- src/auto/menu_bar.rs | 2 +- src/auto/menu_button.rs | 2 +- src/auto/menu_item.rs | 2 +- src/auto/menu_shell.rs | 2 +- src/auto/menu_tool_button.rs | 2 +- src/auto/message_dialog.rs | 2 +- src/auto/misc.rs | 2 +- src/auto/mod.rs | 5 +- src/auto/model_button.rs | 2 +- src/auto/mount_operation.rs | 2 +- src/auto/native_dialog.rs | 2 +- src/auto/notebook.rs | 2 +- src/auto/offscreen_window.rs | 2 +- src/auto/orientable.rs | 2 +- src/auto/overlay.rs | 2 +- src/auto/pad_controller.rs | 2 +- src/auto/page_setup.rs | 2 +- src/auto/paned.rs | 2 +- src/auto/paper_size.rs | 2 +- src/auto/places_sidebar.rs | 2 +- src/auto/plug.rs | 2 +- src/auto/popover.rs | 2 +- src/auto/popover_menu.rs | 2 +- src/auto/print_context.rs | 2 +- src/auto/print_operation.rs | 2 +- src/auto/print_operation_preview.rs | 2 +- src/auto/print_settings.rs | 2 +- src/auto/progress_bar.rs | 2 +- src/auto/radio_button.rs | 2 +- src/auto/radio_menu_item.rs | 2 +- src/auto/radio_tool_button.rs | 2 +- src/auto/range.rs | 2 +- src/auto/recent_chooser.rs | 2 +- src/auto/recent_chooser_dialog.rs | 2 +- src/auto/recent_chooser_widget.rs | 2 +- src/auto/recent_filter.rs | 2 +- src/auto/recent_info.rs | 2 +- src/auto/recent_manager.rs | 2 +- src/auto/revealer.rs | 2 +- src/auto/scale.rs | 2 +- src/auto/scale_button.rs | 2 +- src/auto/scrollable.rs | 2 +- src/auto/scrollbar.rs | 2 +- src/auto/scrolled_window.rs | 2 +- src/auto/search_bar.rs | 2 +- src/auto/search_entry.rs | 2 +- src/auto/selection_data.rs | 2 +- src/auto/separator.rs | 2 +- src/auto/separator_menu_item.rs | 2 +- src/auto/separator_tool_item.rs | 2 +- src/auto/settings.rs | 2 +- src/auto/shortcuts_window.rs | 2 +- src/auto/size_group.rs | 2 +- src/auto/socket.rs | 2 +- src/auto/spin_button.rs | 2 +- src/auto/spinner.rs | 2 +- src/auto/stack.rs | 2 +- src/auto/stack_sidebar.rs | 2 +- src/auto/stack_switcher.rs | 2 +- src/auto/status_icon.rs | 2 +- src/auto/statusbar.rs | 2 +- src/auto/style_context.rs | 23 ++- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 33 ++-- src/auto/switch.rs | 2 +- src/auto/symbolic_color.rs | 2 +- src/auto/target_list.rs | 2 +- src/auto/text_attributes.rs | 2 +- src/auto/text_buffer.rs | 2 +- src/auto/text_child_anchor.rs | 2 +- src/auto/text_iter.rs | 2 +- src/auto/text_mark.rs | 2 +- src/auto/text_tag.rs | 2 +- src/auto/text_tag_table.rs | 2 +- src/auto/text_view.rs | 2 +- src/auto/toggle_button.rs | 2 +- src/auto/toggle_tool_button.rs | 2 +- src/auto/tool_button.rs | 2 +- src/auto/tool_item.rs | 2 +- src/auto/tool_item_group.rs | 2 +- src/auto/tool_palette.rs | 2 +- src/auto/tool_shell.rs | 2 +- src/auto/toolbar.rs | 2 +- src/auto/tooltip.rs | 2 +- src/auto/tree_iter.rs | 2 +- src/auto/tree_model.rs | 2 +- src/auto/tree_model_filter.rs | 2 +- src/auto/tree_path.rs | 2 +- src/auto/tree_row_reference.rs | 2 +- src/auto/tree_selection.rs | 2 +- src/auto/tree_sortable.rs | 2 +- src/auto/tree_store.rs | 2 +- src/auto/tree_view.rs | 2 +- src/auto/tree_view_column.rs | 2 +- src/auto/viewport.rs | 2 +- src/auto/volume_button.rs | 2 +- src/auto/widget.rs | 13 +- src/auto/widget_path.rs | 261 ++++++++++++++++++++++++++++ src/auto/window.rs | 2 +- src/auto/window_group.rs | 2 +- 208 files changed, 536 insertions(+), 249 deletions(-) create mode 100644 src/auto/widget_path.rs diff --git a/Gir.toml b/Gir.toml index 216eee142a..0c322ae5cc 100644 --- a/Gir.toml +++ b/Gir.toml @@ -223,6 +223,7 @@ generate = [ "Gtk.Viewport", "Gtk.VolumeButton", "Gtk.WidgetHelpType", + "Gtk.WidgetPath", "Gtk.WindowGroup", "Gtk.WindowPosition", "Gtk.WindowType", @@ -1802,6 +1803,10 @@ status = "generate" [[object.function]] name = "style_get_property" ignore = true + [[object.function]] + name = "get_path" + [object.function.return] + nullable = false [[object.signal]] name = "button-press-event" inhibit = true diff --git a/gir b/gir index 8b9d0bb32e..02e230265d 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 8b9d0bb32ed3b76ff9931ee283c07d32af955b60 +Subproject commit 02e230265dbfe311e679c8bd8b8578f289e9adef diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index a96555925e..26829b32ec 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 2e1b5cfcfe..c5210c5ee6 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 42ff758b13..0f13bfa0f1 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index b4dba5fa0b..d39fe600f6 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index bda8932c30..6dce84c7dc 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 1feb1b5421..f377e467dd 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index 4edc522817..515d3922a2 100644 --- a/src/auto/app_chooser_button.rs +++ b/src/auto/app_chooser_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index f871ca1224..61c77a1b8b 100644 --- a/src/auto/app_chooser_dialog.rs +++ b/src/auto/app_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index d6808dea2a..e4871fcce3 100644 --- a/src/auto/app_chooser_widget.rs +++ b/src/auto/app_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/application.rs b/src/auto/application.rs index c0934fee2c..64c1d7803a 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index be1f8b9a99..53607dc192 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 068ad78879..d9c74d78ab 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 52212c289b..a41a2dd516 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 56d9c5380c..4aa19bab6a 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/bin.rs b/src/auto/bin.rs index c629ddb000..601dfc08ac 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/box_.rs b/src/auto/box_.rs index be00264fd1..15d83bf6c4 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 228a8927f9..32d3522a6b 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 60025c5757..3cac3d5986 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/button.rs b/src/auto/button.rs index 1cb7ef9c63..fe80947f5a 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index d9798d4b27..3e3c3328af 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index 0352a273a1..0d445ab325 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 9f1c7f461d..fe4499e10c 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 7698221ca3..026d1a617f 100644 --- a/src/auto/cell_area_box.rs +++ b/src/auto/cell_area_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 60ad5da788..41f44d31fd 100644 --- a/src/auto/cell_area_context.rs +++ b/src/auto/cell_area_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index f40a384ffb..1fce4eb011 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index 3b52dc485e..fbc95b37c1 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index fd278df001..4804619408 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 6feaa64aa6..0ecb51031e 100644 --- a/src/auto/cell_renderer_accel.rs +++ b/src/auto/cell_renderer_accel.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index e8bceba8ca..90410f1feb 100644 --- a/src/auto/cell_renderer_combo.rs +++ b/src/auto/cell_renderer_combo.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index e698af659e..12e295431a 100644 --- a/src/auto/cell_renderer_pixbuf.rs +++ b/src/auto/cell_renderer_pixbuf.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index a9b5352491..0d7ece1178 100644 --- a/src/auto/cell_renderer_progress.rs +++ b/src/auto/cell_renderer_progress.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index 496b320e05..8c0a6cb6e4 100644 --- a/src/auto/cell_renderer_spin.rs +++ b/src/auto/cell_renderer_spin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 3c972146e0..515e1395c2 100644 --- a/src/auto/cell_renderer_spinner.rs +++ b/src/auto/cell_renderer_spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index ca930141ec..d15044fb47 100644 --- a/src/auto/cell_renderer_text.rs +++ b/src/auto/cell_renderer_text.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 01f05fe76f..4dc53c916c 100644 --- a/src/auto/cell_renderer_toggle.rs +++ b/src/auto/cell_renderer_toggle.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index 75bd2f85e7..ba26dcaf8c 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index 9c6bf561ad..1d38da6eeb 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 7a2ce61154..bdbe9eb730 100644 --- a/src/auto/check_menu_item.rs +++ b/src/auto/check_menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 0c5fc1c84a..bfb1951c43 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index 990645c803..63fca3b061 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 1758db154f..a5d0c401ec 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index a044ae9d9c..b3f1208c44 100644 --- a/src/auto/color_chooser_dialog.rs +++ b/src/auto/color_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index 7fe35d880a..52077966da 100644 --- a/src/auto/color_chooser_widget.rs +++ b/src/auto/color_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index 862396cbae..4b9bce079a 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index cfe6d77782..1bc6425053 100644 --- a/src/auto/combo_box_text.rs +++ b/src/auto/combo_box_text.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/container.rs b/src/auto/container.rs index a35597bf0f..387940ecee 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -6,6 +6,7 @@ use Adjustment; use Buildable; use ResizeMode; use Widget; +use WidgetPath; use cairo; use ffi; use glib; @@ -68,7 +69,7 @@ pub trait ContainerExt { fn get_focus_vadjustment(&self) -> Option; - //fn get_path_for_child>(&self, child: &P) -> /*Ignored*/Option; + fn get_path_for_child>(&self, child: &P) -> Option; #[cfg_attr(feature = "v3_12", deprecated)] fn get_resize_mode(&self) -> ResizeMode; @@ -207,9 +208,11 @@ impl + IsA> ContainerExt for O { } } - //fn get_path_for_child>(&self, child: &P) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_container_get_path_for_child() } - //} + fn get_path_for_child>(&self, child: &P) -> Option { + unsafe { + from_glib_full(ffi::gtk_container_get_path_for_child(self.to_glib_none().0, child.to_glib_none().0)) + } + } fn get_resize_mode(&self) -> ResizeMode { unsafe { diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 9b5f03fc47..42aea96a7c 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index f50f6c085c..a8da3cf862 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 99a2121817..f554fb896c 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index f07244c31d..7daa925a2c 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/editable.rs b/src/auto/editable.rs index c7e589f163..070ba114ba 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/entry.rs b/src/auto/entry.rs index c31325462c..bfb164c19b 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index c59bd88df8..616ee81df0 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 4cfb93a71e..7a6c1e8ebd 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index 0b0bb84cf1..2cbd21de31 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 08d09becf0..c0160eb2d1 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/expander.rs b/src/auto/expander.rs index c63e24059b..916728a2cc 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 7d6ab7852a..414665343d 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index e81a327814..55456d6965 100644 --- a/src/auto/file_chooser_button.rs +++ b/src/auto/file_chooser_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index ed492d1348..b0c8a24f56 100644 --- a/src/auto/file_chooser_dialog.rs +++ b/src/auto/file_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index 446e5e31b6..4870e43d8e 100644 --- a/src/auto/file_chooser_native.rs +++ b/src/auto/file_chooser_native.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index bdeb36fedd..a2e7396b7b 100644 --- a/src/auto/file_chooser_widget.rs +++ b/src/auto/file_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index caf267e855..c282f0202f 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index 4ba278dff4..17f237af89 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/flags.rs b/src/auto/flags.rs index a5c76b0f78..1ec70ef93c 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 4e0e632d55..b78a058322 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index 61997deabf..ac17f9b391 100644 --- a/src/auto/flow_box_child.rs +++ b/src/auto/flow_box_child.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index 20b96d2e38..6c4357acf8 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 91f020147b..48bd63d489 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index ac1a10cffa..bfc8e7d34f 100644 --- a/src/auto/font_chooser_dialog.rs +++ b/src/auto/font_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 48695ce40c..285f1451c0 100644 --- a/src/auto/font_chooser_widget.rs +++ b/src/auto/font_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/frame.rs b/src/auto/frame.rs index 30b38d4257..6c01215b15 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 260e105828..84f3ec06d7 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index 3e7c6115e9..72b73a82a4 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 3db45f2509..f68fcac2c4 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 54c0af2b76..a9fee8f475 100644 --- a/src/auto/gesture_long_press.rs +++ b/src/auto/gesture_long_press.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index ee6a59c21c..b8ecb193b4 100644 --- a/src/auto/gesture_multi_press.rs +++ b/src/auto/gesture_multi_press.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index 415ef62fa5..e0eae25040 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index 361b653b16..07be701969 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 9819d57cb3..a6a267df8d 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index f3d73e27a4..34ce3178cd 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index fa23fb65c7..57058c29bc 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 5eb45a7060..936a12ab36 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/grid.rs b/src/auto/grid.rs index 0d3f44098c..f7384d5143 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 06287777a6..368ad52879 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index 86f1927e14..d4a885ef97 100644 --- a/src/auto/i_m_context.rs +++ b/src/auto/i_m_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index ca07b0b4a9..42d049dd84 100644 --- a/src/auto/i_m_multicontext.rs +++ b/src/auto/i_m_multicontext.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 9ad6fbbd85..0a07d0400d 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index f677a336ce..5877c8207b 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -68,7 +68,7 @@ pub trait IconInfoExt { fn load_icon(&self) -> Result; #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_icon_async<'a, P: Into>, Q: FnOnce(Result<(), Error>) + Send + 'static>(&self, cancellable: P, callback: Q); + fn load_icon_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, cancellable: P, callback: Q); #[cfg(any(feature = "v3_10", feature = "dox"))] fn load_surface<'a, P: Into>>(&self, for_window: P) -> Result; @@ -76,12 +76,12 @@ pub trait IconInfoExt { fn load_symbolic<'a, 'b, 'c, P: Into>, Q: Into>, R: Into>>(&self, fg: &gdk::RGBA, success_color: P, warning_color: Q, error_color: R) -> Result<(gdk_pixbuf::Pixbuf, bool), Error>; #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_symbolic_async<'a, 'b, 'c, 'd, P: Into>, Q: Into>, R: Into>, S: Into>, T: FnOnce(Result) + Send + 'static>(&self, fg: &gdk::RGBA, success_color: P, warning_color: Q, error_color: R, cancellable: S, callback: T); + fn load_symbolic_async<'a, 'b, 'c, 'd, P: Into>, Q: Into>, R: Into>, S: Into>, T: FnOnce(Result<(gdk_pixbuf::Pixbuf, bool), Error>) + Send + 'static>(&self, fg: &gdk::RGBA, success_color: P, warning_color: Q, error_color: R, cancellable: S, callback: T); fn load_symbolic_for_context(&self, context: &StyleContext) -> Result<(gdk_pixbuf::Pixbuf, bool), Error>; #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q); + fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result<(gdk_pixbuf::Pixbuf, bool), Error>) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q); #[cfg_attr(feature = "v3_14", deprecated)] fn set_raw_coordinates(&self, raw_coordinates: bool); @@ -153,15 +153,15 @@ impl> IconInfoExt for O { } #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_icon_async<'a, P: Into>, Q: FnOnce(Result<(), Error>) + Send + 'static>(&self, cancellable: P, callback: Q) { + fn load_icon_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, cancellable: P, callback: Q) { let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); let user_data: Box> = Box::new(Box::new(callback)); - unsafe extern "C" fn load_icon_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + unsafe extern "C" fn load_icon_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) { let mut error = ptr::null_mut(); - let _ = ffi::gtk_icon_info_load_icon_finish(_source_object as *mut _, res, &mut error); - let result = if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }; + let ret = ffi::gtk_icon_info_load_icon_finish(_source_object as *mut _, res, &mut error); + let result = if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }; let callback: Box> = Box::from_raw(user_data as *mut _); callback(result); } @@ -198,7 +198,7 @@ impl> IconInfoExt for O { } #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_symbolic_async<'a, 'b, 'c, 'd, P: Into>, Q: Into>, R: Into>, S: Into>, T: FnOnce(Result) + Send + 'static>(&self, fg: &gdk::RGBA, success_color: P, warning_color: Q, error_color: R, cancellable: S, callback: T) { + fn load_symbolic_async<'a, 'b, 'c, 'd, P: Into>, Q: Into>, R: Into>, S: Into>, T: FnOnce(Result<(gdk_pixbuf::Pixbuf, bool), Error>) + Send + 'static>(&self, fg: &gdk::RGBA, success_color: P, warning_color: Q, error_color: R, cancellable: S, callback: T) { let success_color = success_color.into(); let success_color = success_color.to_glib_none(); let warning_color = warning_color.into(); @@ -208,12 +208,12 @@ impl> IconInfoExt for O { let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); let user_data: Box> = Box::new(Box::new(callback)); - unsafe extern "C" fn load_symbolic_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + unsafe extern "C" fn load_symbolic_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) { let mut error = ptr::null_mut(); let mut was_symbolic = mem::uninitialized(); - let _ = ffi::gtk_icon_info_load_symbolic_finish(_source_object as *mut _, res, &mut was_symbolic, &mut error); - let result = if error.is_null() { Ok(from_glib(was_symbolic)) } else { Err(from_glib_full(error)) }; + let ret = ffi::gtk_icon_info_load_symbolic_finish(_source_object as *mut _, res, &mut was_symbolic, &mut error); + let result = if error.is_null() { Ok((from_glib_full(ret), from_glib(was_symbolic))) } else { Err(from_glib_full(error)) }; let callback: Box> = Box::from_raw(user_data as *mut _); callback(result); } @@ -233,16 +233,16 @@ impl> IconInfoExt for O { } #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q) { + fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result<(gdk_pixbuf::Pixbuf, bool), Error>) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q) { let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); let user_data: Box> = Box::new(Box::new(callback)); - unsafe extern "C" fn load_symbolic_for_context_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + unsafe extern "C" fn load_symbolic_for_context_async_trampoline) + Send + 'static>(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) { let mut error = ptr::null_mut(); let mut was_symbolic = mem::uninitialized(); - let _ = ffi::gtk_icon_info_load_symbolic_for_context_finish(_source_object as *mut _, res, &mut was_symbolic, &mut error); - let result = if error.is_null() { Ok(from_glib(was_symbolic)) } else { Err(from_glib_full(error)) }; + let ret = ffi::gtk_icon_info_load_symbolic_for_context_finish(_source_object as *mut _, res, &mut was_symbolic, &mut error); + let result = if error.is_null() { Ok((from_glib_full(ret), from_glib(was_symbolic))) } else { Err(from_glib_full(error)) }; let callback: Box> = Box::from_raw(user_data as *mut _); callback(result); } diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 6f062ace74..9db181a0b8 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index e480bc21a4..9c9d1a94dd 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 033426a8c4..457aa8dd5b 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index d942ab0c2c..2e89f49216 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/image.rs b/src/auto/image.rs index b41e3f6231..21e8fda569 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 40139e48ba..19f0ed8573 100644 --- a/src/auto/image_menu_item.rs +++ b/src/auto/image_menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index a964e9dd82..d074cbaace 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index 31c50b9e5d..eece5aa1b7 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/label.rs b/src/auto/label.rs index b1d4cbcd3d..1950ef278f 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 681c0deed5..7555555307 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 2e14d770d0..c369b52565 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 154fb13196..776dd223a1 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 39ffb5f7f8..7f7dba4c96 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 983b62c070..7b32a54dac 100644 --- a/src/auto/list_box_row.rs +++ b/src/auto/list_box_row.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 5b4b27809a..e0e60c9208 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index 336ce96bcc..f4b5925839 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu.rs b/src/auto/menu.rs index 39a5f38d5a..49db62cf94 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 5708b9b459..e37f53e14b 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 816e93ba46..2d6b73b74b 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index b9bb8630ba..9b9da50b10 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index eca8fd0c33..52d6028a13 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index c8e79ef5c8..cb96ab7c6f 100644 --- a/src/auto/menu_tool_button.rs +++ b/src/auto/menu_tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 9382fc69fe..80d386a592 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/misc.rs b/src/auto/misc.rs index a3b440a5d3..ba35cd8013 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/mod.rs b/src/auto/mod.rs index f7387cc861..e5942e4b9a 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -885,6 +885,9 @@ pub use self::tree_path::TreePath; mod tree_row_reference; pub use self::tree_row_reference::TreeRowReference; +mod widget_path; +pub use self::widget_path::WidgetPath; + mod enums; pub use self::enums::Align; pub use self::enums::ArrowType; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 2190b2ed7d..415d15e358 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index 7806ff866a..58cb1f9e28 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index cc2d6c65ad..b9b361913c 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index 307cf4585c..638da0485f 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index a02d3c885c..ad0e085fdf 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index d9f1772251..adabe812c6 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index 9b8252cab6..cc3b23fc34 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index 910b76c8e5..2e5bac4f25 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 5929f53364..6425467deb 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/paned.rs b/src/auto/paned.rs index f3474e2a8b..fe06e3c9b9 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index 55abb46d1e..0349f7617b 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 0eabfea3ad..6ffd9f935d 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/plug.rs b/src/auto/plug.rs index 186c2a2130..9f87b3e052 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 3022d07276..bdbc6cb631 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index d6df947835..4be926f215 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 202f998a76..d134227e61 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index a13fbe4a7b..32d7ef6f63 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 587b872ebb..17656982a6 100644 --- a/src/auto/print_operation_preview.rs +++ b/src/auto/print_operation_preview.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 6545260f4c..8482cfd843 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index 967afea28b..4880336851 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 4527cc36f6..bcc0e75981 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index 6715dac571..841cb1196d 100644 --- a/src/auto/radio_menu_item.rs +++ b/src/auto/radio_menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 0f9aabdcbc..c676dc46b5 100644 --- a/src/auto/radio_tool_button.rs +++ b/src/auto/radio_tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/range.rs b/src/auto/range.rs index 6430a0022c..6a86108b5f 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index 6fcd002645..62293a49cd 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 7e2f2cf85b..b47bf90007 100644 --- a/src/auto/recent_chooser_dialog.rs +++ b/src/auto/recent_chooser_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 3351ce1abc..d593d9af08 100644 --- a/src/auto/recent_chooser_widget.rs +++ b/src/auto/recent_chooser_widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index d0eca928c3..5ad039f2d1 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 1c3a6e1c38..a4e76cde74 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index 7f88b5d6ea..161c8d63ec 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 90f92d7229..5e9b0e0a52 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/scale.rs b/src/auto/scale.rs index bfaf16380c..78847f04c2 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 05ec8a686e..f189509529 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index 3f0828d3f6..0f91602b79 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 645209886a..6cd870c11e 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index 6335fdffc5..eec07dad0a 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index ff93ef28df..fc06679ddf 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index f83af1ffbc..92b75636c0 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index 0a1ea1859f..2c19896bf4 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/separator.rs b/src/auto/separator.rs index cee8533ace..3429c1b2c5 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index df57c72e6f..5d5bbf32bb 100644 --- a/src/auto/separator_menu_item.rs +++ b/src/auto/separator_menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index e8e4574a91..b64e43361c 100644 --- a/src/auto/separator_tool_item.rs +++ b/src/auto/separator_tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 2ccbcb1bde..fbfcfb389d 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index 0f06c3682b..a0f0788a19 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index f679c05a15..ffecc4794f 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/socket.rs b/src/auto/socket.rs index d718eb9937..cf57794457 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index 8d1d47d866..8c887b4fba 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index 1314af66f7..20637627bd 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/stack.rs b/src/auto/stack.rs index 6cf5a5a217..e5bdd15631 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index 1be422f69d..97f79b0db0 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index a848472a72..b06a255f10 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 7ca4744a97..4c4a1550c5 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 11a9105989..2c13a5209e 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index b4b0934858..176f37b357 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -13,6 +13,7 @@ use StateType; use StyleContextPrintFlags; use StyleProvider; use TextDirection; +use WidgetPath; use ffi; use gdk; use glib; @@ -113,7 +114,7 @@ pub trait StyleContextExt { fn get_parent(&self) -> Option; - //fn get_path(&self) -> /*Ignored*/Option; + fn get_path(&self) -> Option; #[cfg(any(feature = "v3_10", feature = "dox"))] fn get_scale(&self) -> i32; @@ -184,7 +185,7 @@ pub trait StyleContextExt { fn set_parent<'a, P: Into>>(&self, parent: P); - //fn set_path(&self, path: /*Ignored*/&mut WidgetPath); + fn set_path(&self, path: &WidgetPath); #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_scale(&self, scale: i32); @@ -317,9 +318,11 @@ impl + IsA> StyleContextExt for O { } } - //fn get_path(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_style_context_get_path() } - //} + fn get_path(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_style_context_get_path(self.to_glib_none().0)) + } + } #[cfg(any(feature = "v3_10", feature = "dox"))] fn get_scale(&self) -> i32 { @@ -487,9 +490,11 @@ impl + IsA> StyleContextExt for O { } } - //fn set_path(&self, path: /*Ignored*/&mut WidgetPath) { - // unsafe { TODO: call ffi::gtk_style_context_set_path() } - //} + fn set_path(&self, path: &WidgetPath) { + unsafe { + ffi::gtk_style_context_set_path(self.to_glib_none().0, path.to_glib_none().0); + } + } #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_scale(&self, scale: i32) { diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index 2b0be41852..c4a7f04a56 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 1968fabd10..8d3999211e 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,7 +1,10 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT +use IconFactory; +use StyleProperties; +use WidgetPath; use ffi; use glib::object::IsA; use glib::translate::*; @@ -19,25 +22,29 @@ glib_wrapper! { } pub trait StyleProviderExt { - //#[cfg_attr(feature = "v3_8", deprecated)] - //fn get_icon_factory(&self, path: /*Ignored*/&mut WidgetPath) -> Option; + #[cfg_attr(feature = "v3_8", deprecated)] + fn get_icon_factory(&self, path: &WidgetPath) -> Option; - //#[cfg_attr(feature = "v3_8", deprecated)] - //fn get_style(&self, path: /*Ignored*/&mut WidgetPath) -> Option; + #[cfg_attr(feature = "v3_8", deprecated)] + fn get_style(&self, path: &WidgetPath) -> Option; - //fn get_style_property>(&self, path: /*Ignored*/&mut WidgetPath, state: StateFlags, pspec: &P) -> Option; + //fn get_style_property>(&self, path: &WidgetPath, state: StateFlags, pspec: &P) -> Option; } impl> StyleProviderExt for O { - //fn get_icon_factory(&self, path: /*Ignored*/&mut WidgetPath) -> Option { - // unsafe { TODO: call ffi::gtk_style_provider_get_icon_factory() } - //} + fn get_icon_factory(&self, path: &WidgetPath) -> Option { + unsafe { + from_glib_none(ffi::gtk_style_provider_get_icon_factory(self.to_glib_none().0, path.to_glib_none().0)) + } + } - //fn get_style(&self, path: /*Ignored*/&mut WidgetPath) -> Option { - // unsafe { TODO: call ffi::gtk_style_provider_get_style() } - //} + fn get_style(&self, path: &WidgetPath) -> Option { + unsafe { + from_glib_full(ffi::gtk_style_provider_get_style(self.to_glib_none().0, path.to_glib_none().0)) + } + } - //fn get_style_property>(&self, path: /*Ignored*/&mut WidgetPath, state: StateFlags, pspec: &P) -> Option { + //fn get_style_property>(&self, path: &WidgetPath, state: StateFlags, pspec: &P) -> Option { // unsafe { TODO: call ffi::gtk_style_provider_get_style_property() } //} } diff --git a/src/auto/switch.rs b/src/auto/switch.rs index df09504fa3..ca7228ebef 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 8ff410eb8d..b5384b3d59 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 6a168aea9f..5bb291195d 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 4aa36f2ceb..b67ae96882 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 16f5be65ed..ac7d99c6a5 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index 54f114bd7c..656f13b41b 100644 --- a/src/auto/text_child_anchor.rs +++ b/src/auto/text_child_anchor.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index 928c03d8f2..23c90ac7d7 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 048620ac32..09c88e561d 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index f669bb68cd..3fb1e16a0a 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index f2557381e8..62e2f314ee 100644 --- a/src/auto/text_tag_table.rs +++ b/src/auto/text_tag_table.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index e0ff663273..a81967a6b7 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 52811542e9..b49fdd7958 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 73a9cc1731..b6c8d2e806 100644 --- a/src/auto/toggle_tool_button.rs +++ b/src/auto/toggle_tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 39bf9de0b5..0ba4b47644 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 45c0fa698a..6fbf17c5ed 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index 9e66e6fcdd..1c93c17a4a 100644 --- a/src/auto/tool_item_group.rs +++ b/src/auto/tool_item_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 9e6817f9b8..1fbf8b4f5b 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 063aef2aba..74ce05cfae 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 82674e8681..8d330b362b 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 1f4510121e..b28108d8fd 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index 24660edf05..573781e9cb 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index c6e7f778a7..99c580989f 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 7e5e88476e..7839ac9af5 100644 --- a/src/auto/tree_model_filter.rs +++ b/src/auto/tree_model_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index e3de8235bc..ee4569de21 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index 4f5f2526cb..cd9c549835 100644 --- a/src/auto/tree_row_reference.rs +++ b/src/auto/tree_row_reference.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index d2072f0fd6..0557e26a57 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 709f2e9de5..f49984251e 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index eb58713335..39cbf56e4e 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index dd2d9d3622..67c650a587 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index e5b6a397d0..756e7e3ea9 100644 --- a/src/auto/tree_view_column.rs +++ b/src/auto/tree_view_column.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index 595320a0fb..944860f2f8 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index e28a759807..17c8e0c9bf 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 47d6cb6f30..cc53605ca2 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT @@ -21,6 +21,7 @@ use TargetList; use TextDirection; use Tooltip; use WidgetHelpType; +use WidgetPath; use Window; use cairo; use cairo_ffi; @@ -289,7 +290,7 @@ pub trait WidgetExt { fn get_parent_window(&self) -> Option; - //fn get_path(&self) -> /*Ignored*/Option; + fn get_path(&self) -> WidgetPath; fn get_preferred_height(&self) -> (i32, i32); @@ -1432,9 +1433,11 @@ impl + IsA + glib::object::ObjectExt> Widge } } - //fn get_path(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_widget_get_path() } - //} + fn get_path(&self) -> WidgetPath { + unsafe { + from_glib_none(ffi::gtk_widget_get_path(self.to_glib_none().0)) + } + } fn get_preferred_height(&self) -> (i32, i32) { unsafe { diff --git a/src/auto/widget_path.rs b/src/auto/widget_path.rs new file mode 100644 index 0000000000..8b50c3d882 --- /dev/null +++ b/src/auto/widget_path.rs @@ -0,0 +1,261 @@ +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) +// DO NOT EDIT + +use RegionFlags; +#[cfg(any(feature = "v3_14", feature = "dox"))] +use StateFlags; +use Widget; +use ffi; +use glib; +use glib::object::IsA; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::fmt; +use std::mem; +use std::ptr; + +glib_wrapper! { + pub struct WidgetPath(Shared); + + match fn { + ref => |ptr| ffi::gtk_widget_path_ref(ptr), + unref => |ptr| ffi::gtk_widget_path_unref(ptr), + get_type => || ffi::gtk_widget_path_get_type(), + } +} + +impl WidgetPath { + pub fn new() -> WidgetPath { + assert_initialized_main_thread!(); + unsafe { + from_glib_full(ffi::gtk_widget_path_new()) + } + } + + pub fn append_for_widget>(&self, widget: &P) -> i32 { + unsafe { + ffi::gtk_widget_path_append_for_widget(self.to_glib_none().0, widget.to_glib_none().0) + } + } + + pub fn append_type(&self, type_: glib::types::Type) -> i32 { + unsafe { + ffi::gtk_widget_path_append_type(self.to_glib_none().0, type_.to_glib()) + } + } + + pub fn append_with_siblings(&self, siblings: &WidgetPath, sibling_index: u32) -> i32 { + unsafe { + ffi::gtk_widget_path_append_with_siblings(self.to_glib_none().0, siblings.to_glib_none().0, sibling_index) + } + } + + pub fn copy(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_widget_path_copy(self.to_glib_none().0)) + } + } + + pub fn get_object_type(&self) -> glib::types::Type { + unsafe { + from_glib(ffi::gtk_widget_path_get_object_type(self.to_glib_none().0)) + } + } + + pub fn has_parent(&self, type_: glib::types::Type) -> bool { + unsafe { + from_glib(ffi::gtk_widget_path_has_parent(self.to_glib_none().0, type_.to_glib())) + } + } + + pub fn is_type(&self, type_: glib::types::Type) -> bool { + unsafe { + from_glib(ffi::gtk_widget_path_is_type(self.to_glib_none().0, type_.to_glib())) + } + } + + pub fn iter_add_class(&self, pos: i32, name: &str) { + unsafe { + ffi::gtk_widget_path_iter_add_class(self.to_glib_none().0, pos, name.to_glib_none().0); + } + } + + #[cfg_attr(feature = "v3_14", deprecated)] + pub fn iter_add_region(&self, pos: i32, name: &str, flags: RegionFlags) { + unsafe { + ffi::gtk_widget_path_iter_add_region(self.to_glib_none().0, pos, name.to_glib_none().0, flags.to_glib()); + } + } + + pub fn iter_clear_classes(&self, pos: i32) { + unsafe { + ffi::gtk_widget_path_iter_clear_classes(self.to_glib_none().0, pos); + } + } + + #[cfg_attr(feature = "v3_14", deprecated)] + pub fn iter_clear_regions(&self, pos: i32) { + unsafe { + ffi::gtk_widget_path_iter_clear_regions(self.to_glib_none().0, pos); + } + } + + pub fn iter_get_name(&self, pos: i32) -> Option { + unsafe { + from_glib_none(ffi::gtk_widget_path_iter_get_name(self.to_glib_none().0, pos)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + pub fn iter_get_object_name(&self, pos: i32) -> Option { + unsafe { + from_glib_none(ffi::gtk_widget_path_iter_get_object_name(self.to_glib_none().0, pos)) + } + } + + pub fn iter_get_object_type(&self, pos: i32) -> glib::types::Type { + unsafe { + from_glib(ffi::gtk_widget_path_iter_get_object_type(self.to_glib_none().0, pos)) + } + } + + pub fn iter_get_sibling_index(&self, pos: i32) -> u32 { + unsafe { + ffi::gtk_widget_path_iter_get_sibling_index(self.to_glib_none().0, pos) + } + } + + pub fn iter_get_siblings(&self, pos: i32) -> Option { + unsafe { + from_glib_none(ffi::gtk_widget_path_iter_get_siblings(self.to_glib_none().0, pos)) + } + } + + #[cfg(any(feature = "v3_14", feature = "dox"))] + pub fn iter_get_state(&self, pos: i32) -> StateFlags { + unsafe { + from_glib(ffi::gtk_widget_path_iter_get_state(self.to_glib_none().0, pos)) + } + } + + pub fn iter_has_class(&self, pos: i32, name: &str) -> bool { + unsafe { + from_glib(ffi::gtk_widget_path_iter_has_class(self.to_glib_none().0, pos, name.to_glib_none().0)) + } + } + + pub fn iter_has_name(&self, pos: i32, name: &str) -> bool { + unsafe { + from_glib(ffi::gtk_widget_path_iter_has_name(self.to_glib_none().0, pos, name.to_glib_none().0)) + } + } + + //pub fn iter_has_qclass(&self, pos: i32, qname: /*Ignored*/glib::Quark) -> bool { + // unsafe { TODO: call ffi::gtk_widget_path_iter_has_qclass() } + //} + + //pub fn iter_has_qname(&self, pos: i32, qname: /*Ignored*/glib::Quark) -> bool { + // unsafe { TODO: call ffi::gtk_widget_path_iter_has_qname() } + //} + + //#[cfg_attr(feature = "v3_14", deprecated)] + //pub fn iter_has_qregion(&self, pos: i32, qname: /*Ignored*/glib::Quark) -> Option { + // unsafe { TODO: call ffi::gtk_widget_path_iter_has_qregion() } + //} + + #[cfg_attr(feature = "v3_14", deprecated)] + pub fn iter_has_region(&self, pos: i32, name: &str) -> Option { + unsafe { + let mut flags = mem::uninitialized(); + let ret = from_glib(ffi::gtk_widget_path_iter_has_region(self.to_glib_none().0, pos, name.to_glib_none().0, &mut flags)); + if ret { Some(from_glib(flags)) } else { None } + } + } + + pub fn iter_list_classes(&self, pos: i32) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_container(ffi::gtk_widget_path_iter_list_classes(self.to_glib_none().0, pos)) + } + } + + #[cfg_attr(feature = "v3_14", deprecated)] + pub fn iter_list_regions(&self, pos: i32) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_container(ffi::gtk_widget_path_iter_list_regions(self.to_glib_none().0, pos)) + } + } + + pub fn iter_remove_class(&self, pos: i32, name: &str) { + unsafe { + ffi::gtk_widget_path_iter_remove_class(self.to_glib_none().0, pos, name.to_glib_none().0); + } + } + + #[cfg_attr(feature = "v3_14", deprecated)] + pub fn iter_remove_region(&self, pos: i32, name: &str) { + unsafe { + ffi::gtk_widget_path_iter_remove_region(self.to_glib_none().0, pos, name.to_glib_none().0); + } + } + + pub fn iter_set_name(&self, pos: i32, name: &str) { + unsafe { + ffi::gtk_widget_path_iter_set_name(self.to_glib_none().0, pos, name.to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + pub fn iter_set_object_name<'a, P: Into>>(&self, pos: i32, name: P) { + let name = name.into(); + let name = name.to_glib_none(); + unsafe { + ffi::gtk_widget_path_iter_set_object_name(self.to_glib_none().0, pos, name.0); + } + } + + pub fn iter_set_object_type(&self, pos: i32, type_: glib::types::Type) { + unsafe { + ffi::gtk_widget_path_iter_set_object_type(self.to_glib_none().0, pos, type_.to_glib()); + } + } + + #[cfg(any(feature = "v3_14", feature = "dox"))] + pub fn iter_set_state(&self, pos: i32, state: StateFlags) { + unsafe { + ffi::gtk_widget_path_iter_set_state(self.to_glib_none().0, pos, state.to_glib()); + } + } + + pub fn length(&self) -> i32 { + unsafe { + ffi::gtk_widget_path_length(self.to_glib_none().0) + } + } + + pub fn prepend_type(&self, type_: glib::types::Type) { + unsafe { + ffi::gtk_widget_path_prepend_type(self.to_glib_none().0, type_.to_glib()); + } + } + + fn to_string(&self) -> String { + unsafe { + from_glib_full(ffi::gtk_widget_path_to_string(self.to_glib_none().0)) + } + } +} + +impl Default for WidgetPath { + fn default() -> Self { + Self::new() + } +} + +impl fmt::Display for WidgetPath { + #[inline] + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", self.to_string()) + } +} diff --git a/src/auto/window.rs b/src/auto/window.rs index 3ffdf145b1..827c084549 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index 260fc208a3..a70e19459b 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 02e2302) // from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT