From 7f5e252dfb862d4d0b503eacae42c7c8a367bf3e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 26 Nov 2017 16:39:26 +0100 Subject: [PATCH 001/210] Update versions --- Cargo.toml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 657a1bda42..e78f4d198a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ name = "gtk" homepage = "http://gtk-rs.org/" authors = ["The Gtk-rs Project Developers"] readme = "README.md" -version = "0.2.0" +version = "0.3.0" keywords = ["gtk", "gtk-rs", "gnome", "GUI"] repository = "https://github.com/gtk-rs/gtk" build = "build.rs" @@ -43,53 +43,53 @@ libc = "0.2" bitflags = "1.0" [dependencies.cairo-sys-rs] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/cairo" [dependencies.gdk-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.gdk-pixbuf-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.gio-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.glib-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.gobject-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.gtk-sys] -version = "0.4.0" +version = "0.5.0" git = "https://github.com/gtk-rs/sys" [dependencies.cairo-rs] -version = "0.2.0" +version = "0.3.0" git = "https://github.com/gtk-rs/cairo" [dependencies.gio] -version = "0.2.0" +version = "0.3.0" git = "https://github.com/gtk-rs/gio" [dependencies.glib] -version = "0.3.0" +version = "0.4.0" git = "https://github.com/gtk-rs/glib" [dependencies.gdk] -version = "0.6.0" +version = "0.7.0" git = "https://github.com/gtk-rs/gdk" [dependencies.gdk-pixbuf] -version = "0.2.0" +version = "0.3.0" git = "https://github.com/gtk-rs/gdk-pixbuf" [dependencies.pango] -version = "0.2.0" -git = "https://github.com/gtk-rs/pango" +version = "0.3.0" +git = "https://github.com/gtk-rs/pango" \ No newline at end of file From 8c928543c90d422686be240091c64aaebaa83622 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Mon, 27 Nov 2017 21:36:28 +0300 Subject: [PATCH 002/210] Update gir submodule --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index d933f9a143..d50d839cea 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit d933f9a143bb23ecb79550ba1692c4de640fa05f +Subproject commit d50d839ceaed9cc5eabac729dbc161c295306270 From 3a220958e7c0bf8f8a34c277f7d01866929b1bd2 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Mon, 27 Nov 2017 21:36:52 +0300 Subject: [PATCH 003/210] Add functions with "Gio.File" --- Gir.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Gir.toml b/Gir.toml index 473ef44d2b..9697683da1 100644 --- a/Gir.toml +++ b/Gir.toml @@ -126,7 +126,6 @@ generate = [ "Gtk.PageSet", "Gtk.PanDirection", "Gtk.PlacesOpenFlags", - "Gtk.PlacesSidebar", "Gtk.PolicyType", "Gtk.PopoverConstraint", "Gtk.PositionType", @@ -272,6 +271,7 @@ manual = [ "Gio.Application", "Gio.ApplicationFlags", "Gio.Cancellable", + "Gio.File", "Gio.Icon", "Gio.Menu", "Gio.MenuModel", @@ -1098,6 +1098,18 @@ status = "generate" name = "is_ipp" version = "3.16" +[[object]] +name = "Gtk.PlacesSidebar" +status = "generate" + [[object.signal]] + name = "drag-action-requested" + #[gio::File] + ignore = true + [[object.signal]] + name = "drag-perform-drop" + #[gio::File] + ignore = true + [[object]] name = "Gtk.PrintContext" status = "generate" From f1e825773956a72482ac7782aab8935fecb5658b Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Mon, 27 Nov 2017 21:18:21 +0300 Subject: [PATCH 004/210] Regen --- src/auto/about_dialog.rs | 2 +- src/auto/accel_group.rs | 2 +- src/auto/action_bar.rs | 15 +- src/auto/actionable.rs | 2 +- src/auto/adjustment.rs | 2 +- src/auto/alignment.rs | 43 +-- src/auto/app_chooser_dialog.rs | 33 ++- src/auto/app_chooser_widget.rs | 2 +- src/auto/application.rs | 13 +- src/auto/application_window.rs | 2 +- src/auto/arrow.rs | 15 +- src/auto/aspect_frame.rs | 23 +- src/auto/assistant.rs | 29 +- src/auto/bin.rs | 2 +- src/auto/box_.rs | 29 +- src/auto/buildable.rs | 2 +- src/auto/builder.rs | 2 +- src/auto/button.rs | 13 +- src/auto/button_box.rs | 9 +- src/auto/calendar.rs | 43 +-- src/auto/cell_area.rs | 2 +- src/auto/cell_area_box.rs | 2 +- src/auto/cell_area_context.rs | 23 +- src/auto/cell_editable.rs | 8 +- src/auto/cell_layout.rs | 2 +- src/auto/cell_renderer.rs | 64 +++-- src/auto/cell_renderer_accel.rs | 25 +- src/auto/cell_renderer_combo.rs | 18 +- src/auto/cell_renderer_pixbuf.rs | 48 ++-- src/auto/cell_renderer_progress.rs | 33 ++- src/auto/cell_renderer_spin.rs | 18 +- src/auto/cell_renderer_spinner.rs | 19 +- src/auto/cell_renderer_text.rs | 209 ++++++++------ src/auto/cell_renderer_toggle.rs | 13 +- src/auto/check_button.rs | 2 +- src/auto/check_menu_item.rs | 2 +- src/auto/clipboard.rs | 2 +- src/auto/color_button.rs | 13 +- src/auto/color_chooser.rs | 2 +- src/auto/color_chooser_dialog.rs | 8 +- src/auto/color_chooser_widget.rs | 8 +- src/auto/combo_box.rs | 23 +- src/auto/combo_box_text.rs | 2 +- src/auto/container.rs | 2 +- src/auto/css_provider.rs | 15 +- src/auto/css_section.rs | 11 +- src/auto/dialog.rs | 9 +- src/auto/drawing_area.rs | 2 +- src/auto/editable.rs | 2 +- src/auto/entry.rs | 149 ++++++---- src/auto/entry_completion.rs | 8 +- 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 | 89 +++--- src/auto/file_chooser_button.rs | 2 +- src/auto/file_chooser_dialog.rs | 2 +- src/auto/file_chooser_widget.rs | 13 +- src/auto/file_filter.rs | 2 +- src/auto/fixed.rs | 2 +- src/auto/flags.rs | 2 +- src/auto/flow_box.rs | 39 +-- 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 | 13 +- src/auto/functions.rs | 2 +- src/auto/gesture.rs | 9 +- src/auto/gesture_drag.rs | 2 +- src/auto/gesture_long_press.rs | 8 +- 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 | 28 +- src/auto/header_bar.rs | 44 +-- src/auto/i_m_context.rs | 16 +- src/auto/i_m_multicontext.rs | 2 +- src/auto/icon_factory.rs | 2 +- src/auto/icon_info.rs | 2 +- src/auto/icon_set.rs | 2 +- src/auto/icon_source.rs | 2 +- src/auto/icon_theme.rs | 2 +- src/auto/icon_view.rs | 8 +- src/auto/image.rs | 38 ++- src/auto/image_menu_item.rs | 2 +- src/auto/info_bar.rs | 2 +- src/auto/label.rs | 24 +- src/auto/layout.rs | 23 +- src/auto/level_bar.rs | 2 +- src/auto/link_button.rs | 2 +- src/auto/list_box.rs | 14 +- src/auto/list_box_row.rs | 2 +- src/auto/list_store.rs | 2 +- src/auto/menu.rs | 50 ++-- src/auto/menu_bar.rs | 2 +- src/auto/menu_button.rs | 2 +- src/auto/menu_item.rs | 8 +- src/auto/menu_shell.rs | 2 +- src/auto/menu_tool_button.rs | 2 +- src/auto/message_dialog.rs | 29 +- src/auto/misc.rs | 23 +- src/auto/mod.rs | 2 +- src/auto/model_button.rs | 45 +-- src/auto/notebook.rs | 48 ++-- src/auto/orientable.rs | 2 +- src/auto/overlay.rs | 8 +- src/auto/page_setup.rs | 2 +- src/auto/paned.rs | 28 +- src/auto/paper_size.rs | 2 +- src/auto/places_sidebar.rs | 205 ++++++++------ src/auto/popover.rs | 2 +- src/auto/popover_menu.rs | 18 +- src/auto/print_context.rs | 2 +- src/auto/print_operation.rs | 53 ++-- 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 | 13 +- src/auto/revealer.rs | 24 +- src/auto/scale.rs | 2 +- src/auto/scale_button.rs | 20 +- src/auto/scrollable.rs | 2 +- src/auto/scrollbar.rs | 2 +- src/auto/scrolled_window.rs | 26 +- src/auto/search_bar.rs | 13 +- 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 | 425 +++++++++++++++++----------- src/auto/shortcuts_window.rs | 13 +- src/auto/size_group.rs | 2 +- src/auto/spin_button.rs | 8 +- src/auto/spinner.rs | 8 +- src/auto/stack.rs | 64 +++-- src/auto/stack_sidebar.rs | 8 +- src/auto/stack_switcher.rs | 13 +- src/auto/status_icon.rs | 13 +- src/auto/statusbar.rs | 2 +- src/auto/style_context.rs | 9 +- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 8 +- src/auto/text_child_anchor.rs | 2 +- src/auto/text_iter.rs | 2 +- src/auto/text_mark.rs | 2 +- src/auto/text_tag.rs | 340 +++++++++++++--------- src/auto/text_tag_table.rs | 2 +- src/auto/text_view.rs | 18 +- src/auto/toggle_button.rs | 8 +- 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 | 23 +- src/auto/tool_palette.rs | 14 +- src/auto/tool_shell.rs | 2 +- src/auto/toolbar.rs | 24 +- src/auto/tooltip.rs | 2 +- src/auto/tree_iter.rs | 2 +- src/auto/tree_model.rs | 2 +- src/auto/tree_model_filter.rs | 8 +- 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 | 9 +- src/auto/tree_view_column.rs | 8 +- src/auto/viewport.rs | 2 +- src/auto/volume_button.rs | 8 +- src/auto/widget.rs | 43 +-- src/auto/window.rs | 44 +-- src/auto/window_group.rs | 2 +- 194 files changed, 1949 insertions(+), 1353 deletions(-) diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 734e9e2bb7..61fb3fd5fc 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 5a3f96e90b..9a5ddd4064 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 7b4be2f66e..6a8c775cb7 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -7,6 +7,7 @@ use Container; use PackType; use Widget; use ffi; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -14,7 +15,6 @@ use glib::translate::*; use glib_ffi; use gobject_ffi; use std::mem; -use std::mem::transmute; use std::ptr; glib_wrapper! { @@ -96,26 +96,27 @@ impl + IsA> ActionBarExt for O { } fn get_child_pack_type>(&self, item: &T) -> PackType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_child_pack_type>(&self, item: &T, pack_type: PackType) { - let pack_type = pack_type.to_glib() as i32; unsafe { ffi::gtk_container_child_set_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, Value::from(&pack_type).to_glib_none().0); } } fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_position>(&self, item: &T, position: i32) { diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 2efef32095..13595505f5 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index 5a99f07121..e383cd40ef 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 9ea2736926..a22cc9fe1e 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -7,6 +7,7 @@ use Container; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -118,11 +119,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_bottom_padding(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "bottom-padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_bottom_padding(&self, bottom_padding: u32) { @@ -132,11 +134,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_left_padding(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_left_padding(&self, left_padding: u32) { @@ -146,11 +149,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_right_padding(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_right_padding(&self, right_padding: u32) { @@ -160,11 +164,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_top_padding(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "top-padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_top_padding(&self, top_padding: u32) { @@ -174,11 +179,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { @@ -188,11 +194,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_xscale(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xscale".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xscale(&self, xscale: f32) { @@ -202,11 +209,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yalign(&self, yalign: f32) { @@ -216,11 +224,12 @@ impl + IsA> AlignmentExt for O { } fn get_property_yscale(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yscale".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yscale(&self, yscale: f32) { diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 22cc78af8c..7d223eecab 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AppChooser; @@ -10,7 +10,10 @@ use DialogFlags; use Widget; use Window; use ffi; +use gio; use glib; +use glib::StaticType; +use glib::Value; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; @@ -32,9 +35,14 @@ glib_wrapper! { } impl AppChooserDialog { - //pub fn new<'a, P: IsA + 'a, Q: Into>, R: IsA>(parent: Q, flags: DialogFlags, file: &R) -> AppChooserDialog { - // unsafe { TODO: call ffi::gtk_app_chooser_dialog_new() } - //} + pub fn new<'a, P: IsA + 'a, Q: Into>, R: IsA>(parent: Q, flags: DialogFlags, file: &R) -> AppChooserDialog { + assert_initialized_main_thread!(); + let parent = parent.into(); + let parent = parent.to_glib_none(); + unsafe { + Widget::from_glib_none(ffi::gtk_app_chooser_dialog_new(parent.0, flags.to_glib(), file.to_glib_none().0)).downcast_unchecked() + } + } pub fn new_for_content_type<'a, P: IsA + 'a, Q: Into>>(parent: Q, flags: DialogFlags, content_type: &str) -> AppChooserDialog { assert_initialized_main_thread!(); @@ -53,7 +61,7 @@ pub trait AppChooserDialogExt { fn set_heading(&self, heading: &str); - //fn get_property_gfile(&self) -> /*Ignored*/Option; + fn get_property_gfile(&self) -> Option; fn connect_property_gfile_notify(&self, f: F) -> SignalHandlerId; @@ -79,13 +87,14 @@ impl + IsA> AppChooserDialogExt f } } - //fn get_property_gfile(&self) -> /*Ignored*/Option { - // let mut value = Value::from(None::<&/*Ignored*/gio::File>); - // unsafe { - // gobject_ffi::g_object_get_property(self.to_glib_none().0, "gfile".to_glib_none().0, value.to_glib_none_mut().0); - // } - // value.get() - //} + fn get_property_gfile(&self) -> Option { + unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "gfile".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } fn connect_property_gfile_notify(&self, f: F) -> SignalHandlerId { unsafe { diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index 39004c0f07..91f1711e5c 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index 58635cd2ed..348529a2a0 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ApplicationInhibitFlags; @@ -7,6 +7,7 @@ use ffi; use gio; use gio_ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -242,19 +243,21 @@ impl + IsA> GtkApplicationExt for O { } fn get_property_active_window(&self) -> Option { - let mut value = Value::from(None::<&Window>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active-window".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_register_session(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "register-session".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_register_session(&self, register_session: bool) { diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 808c043005..1d30131337 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 01c066f7ad..f14670d708 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ArrowType; @@ -8,6 +8,7 @@ use ShadowType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -62,30 +63,30 @@ impl + IsA> ArrowExt for O { } fn get_property_arrow_type(&self) -> ArrowType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "arrow-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_arrow_type(&self, arrow_type: ArrowType) { - let arrow_type = arrow_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "arrow-type".to_glib_none().0, Value::from(&arrow_type).to_glib_none().0); } } fn get_property_shadow_type(&self) -> ShadowType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_shadow_type(&self, shadow_type: ShadowType) { - let shadow_type = shadow_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, Value::from(&shadow_type).to_glib_none().0); } diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 2be96dd3ed..6fe555c27a 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use Frame; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -76,11 +77,12 @@ impl + IsA> AspectFrameExt for O { } fn get_property_obey_child(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "obey-child".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_obey_child(&self, obey_child: bool) { @@ -90,11 +92,12 @@ impl + IsA> AspectFrameExt for O { } fn get_property_ratio(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ratio".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_ratio(&self, ratio: f32) { @@ -104,11 +107,12 @@ impl + IsA> AspectFrameExt for O { } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { @@ -118,11 +122,12 @@ impl + IsA> AspectFrameExt for O { } fn get_property_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yalign(&self, yalign: f32) { diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 7c1653a004..b13875363d 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AssistantPageType; @@ -9,6 +9,7 @@ use Widget; use Window; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -270,19 +271,21 @@ impl + IsA + IsA + glib::obje #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_use_header_bar(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-header-bar".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_child_complete>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "complete".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_complete>(&self, item: &T, complete: bool) { @@ -292,11 +295,12 @@ impl + IsA + IsA + glib::obje } fn get_child_has_padding>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "has-padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_has_padding>(&self, item: &T, has_padding: bool) { @@ -306,26 +310,27 @@ impl + IsA + IsA + glib::obje } fn get_child_page_type>(&self, item: &T) -> AssistantPageType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "page-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_child_page_type>(&self, item: &T, page_type: AssistantPageType) { - let page_type = page_type.to_glib() as i32; unsafe { ffi::gtk_container_child_set_property(self.to_glib_none().0, item.to_glib_none().0, "page-type".to_glib_none().0, Value::from(&page_type).to_glib_none().0); } } fn get_child_title>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_child_title<'a, P: Into>, T: IsA>(&self, item: &T, title: P) { diff --git a/src/auto/bin.rs b/src/auto/bin.rs index c836a968be..6de25ca908 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index 7db1ddccfc..c3fa7b2bb9 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -11,6 +11,7 @@ use PackType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -200,11 +201,12 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_expand>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -216,11 +218,12 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_fill>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "fill".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -232,16 +235,16 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_pack_type>(&self, item: &T) -> PackType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[doc(hidden)] fn set_child_pack_type>(&self, item: &T, pack_type: PackType) { - let pack_type = pack_type.to_glib() as i32; unsafe { ffi::gtk_container_child_set_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, Value::from(&pack_type).to_glib_none().0); } @@ -249,11 +252,12 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_padding>(&self, item: &T) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "padding".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -264,11 +268,12 @@ impl + IsA + IsA> BoxExt for O { } fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_position>(&self, item: &T, position: i32) { diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 9e02ccdaa0..5e040454f5 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index ab850b465e..169e662429 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 9da60802de..3067d6ec17 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -11,6 +11,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -288,11 +289,12 @@ impl + IsA + glib::object::ObjectExt> Butto } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { @@ -302,11 +304,12 @@ impl + IsA + glib::object::ObjectExt> Butto } fn get_property_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yalign(&self, yalign: f32) { diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index b75c94affe..707fa34389 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; @@ -10,6 +10,7 @@ use Orientation; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -98,15 +99,15 @@ impl + IsA> ButtonBoxExt for O { } fn get_property_layout_style(&self) -> ButtonBoxStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "layout-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_layout_style(&self, layout_style: ButtonBoxStyle) { - let layout_style = layout_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "layout-style".to_glib_none().0, Value::from(&layout_style).to_glib_none().0); } diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index eb522eb50b..b30a0e3b4b 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -6,6 +6,7 @@ use CalendarDisplayOptions; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -226,11 +227,12 @@ impl + IsA> CalendarExt for O { } fn get_property_day(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "day".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_day(&self, day: i32) { @@ -240,11 +242,12 @@ impl + IsA> CalendarExt for O { } fn get_property_month(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "month".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_month(&self, month: i32) { @@ -254,11 +257,12 @@ impl + IsA> CalendarExt for O { } fn get_property_no_month_change(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "no-month-change".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_no_month_change(&self, no_month_change: bool) { @@ -268,11 +272,12 @@ impl + IsA> CalendarExt for O { } fn get_property_show_day_names(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-day-names".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_day_names(&self, show_day_names: bool) { @@ -282,11 +287,12 @@ impl + IsA> CalendarExt for O { } fn get_property_show_details(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-details".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_details(&self, show_details: bool) { @@ -296,11 +302,12 @@ impl + IsA> CalendarExt for O { } fn get_property_show_heading(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-heading".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_heading(&self, show_heading: bool) { @@ -310,11 +317,12 @@ impl + IsA> CalendarExt for O { } fn get_property_show_week_numbers(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-week-numbers".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_week_numbers(&self, show_week_numbers: bool) { @@ -324,11 +332,12 @@ impl + IsA> CalendarExt for O { } fn get_property_year(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "year".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_year(&self, year: i32) { diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 445004bc96..56b64a2abc 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 6f1789087e..1cc2481694 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index d647d01f99..71bff9516d 100644 --- a/src/auto/cell_area_context.rs +++ b/src/auto/cell_area_context.rs @@ -1,9 +1,10 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellArea; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -142,35 +143,39 @@ impl + IsA> CellAreaContextExt for } fn get_property_minimum_height(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "minimum-height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_minimum_width(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "minimum-width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_natural_height(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "natural-height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_natural_width(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "natural-width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn connect_property_area_notify(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 6912f2b961..f61b70c4b6 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -6,6 +6,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -66,11 +67,12 @@ impl + IsA> CellEditableExt for O { } fn get_property_editing_canceled(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editing-canceled".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_editing_canceled(&self, editing_canceled: bool) { diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index 107ffd8ee2..6b731e5f6c 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index 05d88c148f..b088628a82 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellEditable; @@ -13,6 +13,7 @@ use cairo; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -340,11 +341,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_cell_background_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-background-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_cell_background_rgba(&self, cell_background_rgba: Option<&gdk::RGBA>) { @@ -354,11 +356,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_cell_background_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-background-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_cell_background_set(&self, cell_background_set: bool) { @@ -368,19 +371,21 @@ impl + IsA> CellRendererExt for O { } fn get_property_editing(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_height(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_height(&self, height: i32) { @@ -390,11 +395,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_is_expanded(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-expanded".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_is_expanded(&self, is_expanded: bool) { @@ -404,11 +410,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_is_expander(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-expander".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_is_expander(&self, is_expander: bool) { @@ -418,26 +425,27 @@ impl + IsA> CellRendererExt for O { } fn get_property_mode(&self) -> CellRendererMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_mode(&self, mode: CellRendererMode) { - let mode = mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "mode".to_glib_none().0, Value::from(&mode).to_glib_none().0); } } fn get_property_width(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_width(&self, width: i32) { @@ -447,11 +455,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { @@ -461,11 +470,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_xpad(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xpad".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xpad(&self, xpad: u32) { @@ -475,11 +485,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yalign(&self, yalign: f32) { @@ -489,11 +500,12 @@ impl + IsA> CellRendererExt for O { } fn get_property_ypad(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ypad".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_ypad(&self, ypad: u32) { diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 1f159e8a8c..30cd9d15ec 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -9,6 +9,7 @@ use ffi; use gdk; use gdk_ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -78,11 +79,12 @@ pub trait CellRendererAccelExt { impl + IsA> CellRendererAccelExt for O { fn get_property_accel_key(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-key".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_accel_key(&self, accel_key: u32) { @@ -92,41 +94,42 @@ impl + IsA> CellRendererAccelExt } fn get_property_accel_mode(&self) -> CellRendererAccelMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_accel_mode(&self, accel_mode: CellRendererAccelMode) { - let accel_mode = accel_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "accel-mode".to_glib_none().0, Value::from(&accel_mode).to_glib_none().0); } } fn get_property_accel_mods(&self) -> gdk::ModifierType { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-mods".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_accel_mods(&self, accel_mods: gdk::ModifierType) { - let accel_mods = accel_mods.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "accel-mods".to_glib_none().0, Value::from(&accel_mods).to_glib_none().0); } } fn get_property_keycode(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "keycode".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_keycode(&self, keycode: u32) { diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 305a14f4ca..566fd198bc 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -8,6 +8,7 @@ use TreeModel; use TreePath; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -69,11 +70,12 @@ pub trait CellRendererComboExt { impl + IsA> CellRendererComboExt for O { fn get_property_has_entry(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-entry".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_has_entry(&self, has_entry: bool) { @@ -83,11 +85,12 @@ impl + IsA> CellRendererComboExt } fn get_property_model(&self) -> Option { - let mut value = Value::from(None::<&TreeModel>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "model".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_model + IsA + glib::value::SetValueOptional>(&self, model: Option<&P>) { @@ -97,11 +100,12 @@ impl + IsA> CellRendererComboExt } fn get_property_text_column(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-column".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_text_column(&self, text_column: i32) { diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index 4b27ded619..d0411d1880 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -6,6 +6,7 @@ use ffi; use gdk_pixbuf; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -100,11 +101,12 @@ pub trait CellRendererPixbufExt { impl + IsA> CellRendererPixbufExt for O { fn get_property_follow_state(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "follow-state".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_follow_state(&self, follow_state: bool) { @@ -114,11 +116,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_gicon(&self) -> Option { - let mut value = Value::from(None::<&gio::Icon>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gicon".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gicon + IsA + glib::value::SetValueOptional>(&self, gicon: Option<&P>) { @@ -128,11 +131,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_icon_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_icon_name(&self, icon_name: Option<&str>) { @@ -142,11 +146,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_pixbuf(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::Pixbuf>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_pixbuf(&self, pixbuf: Option<&gdk_pixbuf::Pixbuf>) { @@ -156,11 +161,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_pixbuf_expander_closed(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::Pixbuf>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-expander-closed".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_pixbuf_expander_closed(&self, pixbuf_expander_closed: Option<&gdk_pixbuf::Pixbuf>) { @@ -170,11 +176,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_pixbuf_expander_open(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::Pixbuf>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-expander-open".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_pixbuf_expander_open(&self, pixbuf_expander_open: Option<&gdk_pixbuf::Pixbuf>) { @@ -184,11 +191,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_stock_detail(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-detail".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_stock_detail(&self, stock_detail: Option<&str>) { @@ -198,11 +206,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_stock_id(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-id".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_stock_id(&self, stock_id: Option<&str>) { @@ -212,11 +221,12 @@ impl + IsA> CellRendererPixbufE } fn get_property_stock_size(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_stock_size(&self, stock_size: u32) { diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index 3ba9df71f5..edd5d231bd 100644 --- a/src/auto/cell_renderer_progress.rs +++ b/src/auto/cell_renderer_progress.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; use Orientable; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -81,11 +82,12 @@ pub trait CellRendererProgressExt { impl + IsA> CellRendererProgressExt for O { fn get_property_inverted(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inverted".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_inverted(&self, inverted: bool) { @@ -95,11 +97,12 @@ impl + IsA> CellRendererProgr } fn get_property_pulse(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pulse".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pulse(&self, pulse: i32) { @@ -109,11 +112,12 @@ impl + IsA> CellRendererProgr } fn get_property_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_text(&self, text: Option<&str>) { @@ -123,11 +127,12 @@ impl + IsA> CellRendererProgr } fn get_property_text_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_text_xalign(&self, text_xalign: f32) { @@ -137,11 +142,12 @@ impl + IsA> CellRendererProgr } fn get_property_text_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_text_yalign(&self, text_yalign: f32) { @@ -151,11 +157,12 @@ impl + IsA> CellRendererProgr } fn get_property_value(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "value".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_value(&self, value: i32) { diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index 632b3cafe8..f269570cfa 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -6,6 +6,7 @@ use CellRenderer; use CellRendererText; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -64,11 +65,12 @@ pub trait CellRendererSpinExt { impl + IsA> CellRendererSpinExt for O { fn get_property_adjustment(&self) -> Option { - let mut value = Value::from(None::<&Adjustment>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "adjustment".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_adjustment(&self, adjustment: Option<&Adjustment>) { @@ -78,11 +80,12 @@ impl + IsA> CellRendererSpinExt f } fn get_property_climb_rate(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "climb-rate".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_climb_rate(&self, climb_rate: f64) { @@ -92,11 +95,12 @@ impl + IsA> CellRendererSpinExt f } fn get_property_digits(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "digits".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_digits(&self, digits: u32) { diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 56fb4819c8..93c547ec66 100644 --- a/src/auto/cell_renderer_spinner.rs +++ b/src/auto/cell_renderer_spinner.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; use IconSize; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -63,11 +64,12 @@ pub trait CellRendererSpinnerExt { impl + IsA> CellRendererSpinnerExt for O { fn get_property_active(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_active(&self, active: bool) { @@ -77,11 +79,12 @@ impl + IsA> CellRendererSpinne } fn get_property_pulse(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pulse".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pulse(&self, pulse: u32) { @@ -91,15 +94,15 @@ impl + IsA> CellRendererSpinne } fn get_property_size(&self) -> IconSize { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_size(&self, size: IconSize) { - let size = size.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "size".to_glib_none().0, Value::from(&size).to_glib_none().0); } diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index 907f1dccb9..97325871e5 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -6,6 +6,7 @@ use TreePath; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -312,11 +313,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_align_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "align-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_align_set(&self, align_set: bool) { @@ -332,11 +334,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_background_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>) { @@ -346,11 +349,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_background_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_background_set(&self, background_set: bool) { @@ -360,11 +364,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_editable(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_editable(&self, editable: bool) { @@ -374,11 +379,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_editable_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_editable_set(&self, editable_set: bool) { @@ -388,26 +394,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_ellipsize(&self) -> pango::EllipsizeMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ellipsize".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_ellipsize(&self, ellipsize: pango::EllipsizeMode) { - let ellipsize = ellipsize.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "ellipsize".to_glib_none().0, Value::from(&ellipsize).to_glib_none().0); } } fn get_property_ellipsize_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ellipsize-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_ellipsize_set(&self, ellipsize_set: bool) { @@ -417,11 +424,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_family(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_family(&self, family: Option<&str>) { @@ -431,11 +439,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_family_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_family_set(&self, family_set: bool) { @@ -445,11 +454,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_font(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_font(&self, font: Option<&str>) { @@ -465,11 +475,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_foreground_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>) { @@ -479,11 +490,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_foreground_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_foreground_set(&self, foreground_set: bool) { @@ -493,11 +505,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_language(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_language(&self, language: Option<&str>) { @@ -507,11 +520,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_language_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_language_set(&self, language_set: bool) { @@ -527,11 +541,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_max_width_chars(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-width-chars".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_max_width_chars(&self, max_width_chars: i32) { @@ -541,11 +556,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_placeholder_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "placeholder-text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_placeholder_text(&self, placeholder_text: Option<&str>) { @@ -555,11 +571,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_rise(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_rise(&self, rise: i32) { @@ -569,11 +586,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_rise_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_rise_set(&self, rise_set: bool) { @@ -583,11 +601,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_scale(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_scale(&self, scale: f64) { @@ -597,11 +616,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_scale_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_scale_set(&self, scale_set: bool) { @@ -611,11 +631,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_single_paragraph_mode(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "single-paragraph-mode".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_single_paragraph_mode(&self, single_paragraph_mode: bool) { @@ -625,11 +646,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size(&self, size: i32) { @@ -639,11 +661,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_size_points(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-points".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size_points(&self, size_points: f64) { @@ -653,11 +676,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_size_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size_set(&self, size_set: bool) { @@ -667,26 +691,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_stretch(&self) -> pango::Stretch { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_stretch(&self, stretch: pango::Stretch) { - let stretch = stretch.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "stretch".to_glib_none().0, Value::from(&stretch).to_glib_none().0); } } fn get_property_stretch_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_stretch_set(&self, stretch_set: bool) { @@ -696,11 +721,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_strikethrough(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_strikethrough(&self, strikethrough: bool) { @@ -710,11 +736,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_strikethrough_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_strikethrough_set(&self, strikethrough_set: bool) { @@ -724,26 +751,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_style(&self) -> pango::Style { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_style(&self, style: pango::Style) { - let style = style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "style".to_glib_none().0, Value::from(&style).to_glib_none().0); } } fn get_property_style_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_style_set(&self, style_set: bool) { @@ -753,11 +781,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_text(&self, text: Option<&str>) { @@ -767,26 +796,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_underline(&self) -> pango::Underline { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_underline(&self, underline: pango::Underline) { - let underline = underline.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "underline".to_glib_none().0, Value::from(&underline).to_glib_none().0); } } fn get_property_underline_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_underline_set(&self, underline_set: bool) { @@ -796,26 +826,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_variant(&self) -> pango::Variant { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_variant(&self, variant: pango::Variant) { - let variant = variant.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "variant".to_glib_none().0, Value::from(&variant).to_glib_none().0); } } fn get_property_variant_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_variant_set(&self, variant_set: bool) { @@ -825,11 +856,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_weight(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_weight(&self, weight: i32) { @@ -839,11 +871,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_weight_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_weight_set(&self, weight_set: bool) { @@ -853,11 +886,12 @@ impl + IsA> CellRendererTextExt f } fn get_property_width_chars(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width-chars".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_width_chars(&self, width_chars: i32) { @@ -867,26 +901,27 @@ impl + IsA> CellRendererTextExt f } fn get_property_wrap_mode(&self) -> pango::WrapMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_wrap_mode(&self, wrap_mode: pango::WrapMode) { - let wrap_mode = wrap_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, Value::from(&wrap_mode).to_glib_none().0); } } fn get_property_wrap_width(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_wrap_width(&self, wrap_width: i32) { diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 4496813751..da34a5f1f5 100644 --- a/src/auto/cell_renderer_toggle.rs +++ b/src/auto/cell_renderer_toggle.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CellRenderer; use TreePath; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -114,11 +115,12 @@ impl + IsA> CellRendererToggleE } fn get_property_inconsistent(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inconsistent".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_inconsistent(&self, inconsistent: bool) { @@ -128,11 +130,12 @@ impl + IsA> CellRendererToggleE } fn get_property_indicator_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indicator-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_indicator_size(&self, indicator_size: i32) { diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index e3b1016e93..31a83ea9c3 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 1bc3a3450c..ede1bed900 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index e2b3664412..5f3a09c4cd 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index 5cc331f1f6..f12d7f05ab 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -11,6 +11,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -103,11 +104,12 @@ impl + IsA> ColorButtonExt for O { } fn get_property_alpha(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "alpha".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_alpha(&self, alpha: u32) { @@ -118,11 +120,12 @@ impl + IsA> ColorButtonExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_show_editor(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index cd9e513158..43faac6eb3 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index c27bf312b8..03c1b89c0e 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -10,6 +10,7 @@ use Widget; use Window; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -54,11 +55,12 @@ pub trait ColorChooserDialogExt { impl + IsA> ColorChooserDialogExt for O { fn get_property_show_editor(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_editor(&self, show_editor: bool) { diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index eaa6cdc692..42c88ded96 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; @@ -9,6 +9,7 @@ use Orientable; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -55,11 +56,12 @@ pub trait ColorChooserWidgetExt { impl + IsA> ColorChooserWidgetExt for O { fn get_property_show_editor(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_editor(&self, show_editor: bool) { diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index 9e676b4786..3ce40938a8 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -15,6 +15,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -436,19 +437,21 @@ impl + IsA + glib::object::ObjectExt> Com } fn get_property_cell_area(&self) -> Option { - let mut value = Value::from(None::<&CellArea>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_has_frame(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-frame".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_has_frame(&self, has_frame: bool) { @@ -458,19 +461,21 @@ impl + IsA + glib::object::ObjectExt> Com } fn get_property_popup_shown(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "popup-shown".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_tearoff_title(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tearoff-title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_tearoff_title(&self, tearoff_title: Option<&str>) { diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index 225f72966c..1037e2898a 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index 79d9f95921..a7e0c77ad9 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 7c7e0be578..1bb00d5e98 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CssSection; use Error; use StyleProvider; use ffi; +use gio; use glib; use glib::object::Downcast; use glib::object::IsA; @@ -68,7 +69,7 @@ impl fmt::Display for CssProvider { pub trait CssProviderExt { fn load_from_data(&self, data: &[u8]) -> Result<(), Error>; - //fn load_from_file>(&self, file: &P) -> Result<(), Error>; + fn load_from_file>(&self, file: &P) -> Result<(), Error>; fn load_from_path(&self, path: &str) -> Result<(), Error>; @@ -90,9 +91,13 @@ impl + IsA> CssProviderExt for O { } } - //fn load_from_file>(&self, file: &P) -> Result<(), Error> { - // unsafe { TODO: call ffi::gtk_css_provider_load_from_file() } - //} + fn load_from_file>(&self, file: &P) -> Result<(), Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ffi::gtk_css_provider_load_from_file(self.to_glib_none().0, file.to_glib_none().0, &mut error); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } fn load_from_path(&self, path: &str) -> Result<(), Error> { unsafe { diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index a705676459..aff048c793 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,8 +1,9 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CssSectionType; use ffi; +use gio; use glib::translate::*; use glib_ffi; use gobject_ffi; @@ -32,9 +33,11 @@ impl CssSection { } } - //pub fn get_file(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_css_section_get_file() } - //} + pub fn get_file(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_css_section_get_file(self.to_glib_none().0)) + } + } pub fn get_parent(&self) -> Option { unsafe { diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 76a7921ee8..b004e18cab 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -10,6 +10,8 @@ use Window; use ffi; use glib; #[cfg(any(feature = "v3_12", feature = "dox"))] +use glib::StaticType; +#[cfg(any(feature = "v3_12", feature = "dox"))] use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -179,11 +181,12 @@ impl + IsA + glib::object::ObjectExt> Dialo #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_use_header_bar(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-header-bar".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn connect_close(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index a25ee4c88a..55aaf1c85c 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index a7f682d9b4..13619cef4a 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 9c5b557ddf..79cfc6dff1 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -24,6 +24,7 @@ use gdk_ffi; use gdk_pixbuf; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -951,11 +952,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_caps_lock_warning(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps-lock-warning".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_caps_lock_warning(&self, caps_lock_warning: bool) { @@ -965,19 +967,21 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_cursor_position(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_im_module(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "im-module".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_im_module(&self, im_module: Option<&str>) { @@ -987,11 +991,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_invisible_char_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible-char-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_invisible_char_set(&self, invisible_char_set: bool) { @@ -1002,11 +1007,12 @@ impl + IsA + glib::object::ObjectExt> EntryE #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_populate_all(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -1017,11 +1023,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_activatable(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-activatable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_primary_icon_activatable(&self, primary_icon_activatable: bool) { @@ -1031,11 +1038,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_gicon(&self) -> Option { - let mut value = Value::from(None::<&gio::Icon>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-gicon".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_gicon + IsA + glib::value::SetValueOptional>(&self, primary_icon_gicon: Option<&P>) { @@ -1045,11 +1053,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_name(&self, primary_icon_name: Option<&str>) { @@ -1059,11 +1068,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_pixbuf(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::Pixbuf>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-pixbuf".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_pixbuf(&self, primary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>) { @@ -1073,11 +1083,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_sensitive(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-sensitive".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_primary_icon_sensitive(&self, primary_icon_sensitive: bool) { @@ -1087,11 +1098,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_stock(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-stock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_stock(&self, primary_icon_stock: Option<&str>) { @@ -1101,19 +1113,21 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_storage_type(&self) -> ImageType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-storage-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn get_property_primary_icon_tooltip_markup(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-tooltip-markup".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_tooltip_markup(&self, primary_icon_tooltip_markup: Option<&str>) { @@ -1123,11 +1137,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_primary_icon_tooltip_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-tooltip-text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_primary_icon_tooltip_text(&self, primary_icon_tooltip_text: Option<&str>) { @@ -1137,19 +1152,21 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_scroll_offset(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scroll-offset".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_secondary_icon_activatable(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-activatable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_secondary_icon_activatable(&self, secondary_icon_activatable: bool) { @@ -1159,11 +1176,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_gicon(&self) -> Option { - let mut value = Value::from(None::<&gio::Icon>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-gicon".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_gicon + IsA + glib::value::SetValueOptional>(&self, secondary_icon_gicon: Option<&P>) { @@ -1173,11 +1191,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_name(&self, secondary_icon_name: Option<&str>) { @@ -1187,11 +1206,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_pixbuf(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::Pixbuf>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-pixbuf".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_pixbuf(&self, secondary_icon_pixbuf: Option<&gdk_pixbuf::Pixbuf>) { @@ -1201,11 +1221,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_sensitive(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-sensitive".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool) { @@ -1215,11 +1236,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_stock(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-stock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_stock(&self, secondary_icon_stock: Option<&str>) { @@ -1229,19 +1251,21 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_storage_type(&self) -> ImageType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-storage-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn get_property_secondary_icon_tooltip_markup(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-tooltip-markup".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_tooltip_markup(&self, secondary_icon_tooltip_markup: Option<&str>) { @@ -1251,11 +1275,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_secondary_icon_tooltip_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-tooltip-text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_icon_tooltip_text(&self, secondary_icon_tooltip_text: Option<&str>) { @@ -1265,34 +1290,36 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_selection_bound(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-bound".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_shadow_type(&self) -> ShadowType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_shadow_type(&self, shadow_type: ShadowType) { - let shadow_type = shadow_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, Value::from(&shadow_type).to_glib_none().0); } } fn get_property_show_emoji_icon(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-emoji-icon".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_emoji_icon(&self, show_emoji_icon: bool) { @@ -1302,11 +1329,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_truncate_multiline(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "truncate-multiline".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_truncate_multiline(&self, truncate_multiline: bool) { @@ -1316,11 +1344,12 @@ impl + IsA + glib::object::ObjectExt> EntryE } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index 918386cb90..fd7591fdd4 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -9,6 +9,7 @@ use TreeModel; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -289,11 +290,12 @@ impl + IsA> EntryCompletionExt for } fn get_property_cell_area(&self) -> Option { - let mut value = Value::from(None::<&CellArea>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_action_activated(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/enums.rs b/src/auto/enums.rs index f9572bd7e0..5f39ee4530 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index aef4073416..b22d869399 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 96d92b15ed..b2a9d0703e 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 875f239db3..cafe3c1a3a 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index be8efacb90..9015515edf 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; @@ -7,6 +7,7 @@ use FileChooserConfirmation; use FileFilter; use Widget; use ffi; +use gio; use glib; use glib::object::Downcast; use glib::object::IsA; @@ -45,7 +46,7 @@ pub trait FileChooserExt { fn get_current_folder(&self) -> Option; - //fn get_current_folder_file(&self) -> /*Ignored*/Option; + fn get_current_folder_file(&self) -> Option; fn get_current_folder_uri(&self) -> Option; @@ -56,19 +57,19 @@ pub trait FileChooserExt { fn get_extra_widget(&self) -> Option; - //fn get_file(&self) -> /*Ignored*/Option; + fn get_file(&self) -> Option; fn get_filename(&self) -> Option; fn get_filenames(&self) -> Vec; - //fn get_files(&self) -> /*Ignored*/Vec; + fn get_files(&self) -> Vec; fn get_filter(&self) -> Option; fn get_local_only(&self) -> bool; - //fn get_preview_file(&self) -> /*Ignored*/Option; + fn get_preview_file(&self) -> Option; fn get_preview_filename(&self) -> Option; @@ -105,7 +106,7 @@ pub trait FileChooserExt { fn select_all(&self); - //fn select_file>(&self, file: &P) -> Result<(), Error>; + fn select_file>(&self, file: &P) -> Result<(), Error>; fn select_filename>(&self, filename: P) -> bool; @@ -120,7 +121,7 @@ pub trait FileChooserExt { fn set_current_folder>(&self, filename: P) -> bool; - //fn set_current_folder_file>(&self, file: &P) -> Result<(), Error>; + fn set_current_folder_file>(&self, file: &P) -> Result<(), Error>; fn set_current_folder_uri(&self, uri: &str) -> bool; @@ -130,7 +131,7 @@ pub trait FileChooserExt { fn set_extra_widget>(&self, extra_widget: &P); - //fn set_file>(&self, file: &P) -> Result<(), Error>; + fn set_file>(&self, file: &P) -> Result<(), Error>; fn set_filename>(&self, filename: P) -> bool; @@ -152,7 +153,7 @@ pub trait FileChooserExt { fn unselect_all(&self); - //fn unselect_file>(&self, file: &P); + fn unselect_file>(&self, file: &P); fn unselect_filename>(&self, filename: P); @@ -239,9 +240,11 @@ impl + IsA> FileChooserExt for O { } } - //fn get_current_folder_file(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_file_chooser_get_current_folder_file() } - //} + fn get_current_folder_file(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_file_chooser_get_current_folder_file(self.to_glib_none().0)) + } + } fn get_current_folder_uri(&self) -> Option { unsafe { @@ -268,9 +271,11 @@ impl + IsA> FileChooserExt for O { } } - //fn get_file(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_file_chooser_get_file() } - //} + fn get_file(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_file_chooser_get_file(self.to_glib_none().0)) + } + } fn get_filename(&self) -> Option { unsafe { @@ -284,9 +289,11 @@ impl + IsA> FileChooserExt for O { } } - //fn get_files(&self) -> /*Ignored*/Vec { - // unsafe { TODO: call ffi::gtk_file_chooser_get_files() } - //} + fn get_files(&self) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_full(ffi::gtk_file_chooser_get_files(self.to_glib_none().0)) + } + } fn get_filter(&self) -> Option { unsafe { @@ -300,9 +307,11 @@ impl + IsA> FileChooserExt for O { } } - //fn get_preview_file(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_file_chooser_get_preview_file() } - //} + fn get_preview_file(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_file_chooser_get_preview_file(self.to_glib_none().0)) + } + } fn get_preview_filename(&self) -> Option { unsafe { @@ -411,9 +420,13 @@ impl + IsA> FileChooserExt for O { } } - //fn select_file>(&self, file: &P) -> Result<(), Error> { - // unsafe { TODO: call ffi::gtk_file_chooser_select_file() } - //} + fn select_file>(&self, file: &P) -> Result<(), Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ffi::gtk_file_chooser_select_file(self.to_glib_none().0, file.to_glib_none().0, &mut error); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } fn select_filename>(&self, filename: P) -> bool { unsafe { @@ -452,9 +465,13 @@ impl + IsA> FileChooserExt for O { } } - //fn set_current_folder_file>(&self, file: &P) -> Result<(), Error> { - // unsafe { TODO: call ffi::gtk_file_chooser_set_current_folder_file() } - //} + fn set_current_folder_file>(&self, file: &P) -> Result<(), Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ffi::gtk_file_chooser_set_current_folder_file(self.to_glib_none().0, file.to_glib_none().0, &mut error); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } fn set_current_folder_uri(&self, uri: &str) -> bool { unsafe { @@ -480,9 +497,13 @@ impl + IsA> FileChooserExt for O { } } - //fn set_file>(&self, file: &P) -> Result<(), Error> { - // unsafe { TODO: call ffi::gtk_file_chooser_set_file() } - //} + fn set_file>(&self, file: &P) -> Result<(), Error> { + unsafe { + let mut error = ptr::null_mut(); + let _ = ffi::gtk_file_chooser_set_file(self.to_glib_none().0, file.to_glib_none().0, &mut error); + if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + } + } fn set_filename>(&self, filename: P) -> bool { unsafe { @@ -544,9 +565,11 @@ impl + IsA> FileChooserExt for O { } } - //fn unselect_file>(&self, file: &P) { - // unsafe { TODO: call ffi::gtk_file_chooser_unselect_file() } - //} + fn unselect_file>(&self, file: &P) { + unsafe { + ffi::gtk_file_chooser_unselect_file(self.to_glib_none().0, file.to_glib_none().0); + } + } fn unselect_filename>(&self, filename: P) { unsafe { diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index e5a75e619a..2395ec9843 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index f1cc16efeb..5123fcc53a 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index f33de45057..a784b48002 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; @@ -10,6 +10,7 @@ use Orientable; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -103,11 +104,12 @@ pub trait FileChooserWidgetExt { impl + IsA + glib::object::ObjectExt> FileChooserWidgetExt for O { fn get_property_search_mode(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "search-mode".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_search_mode(&self, search_mode: bool) { @@ -117,11 +119,12 @@ impl + IsA + glib::object::Objec } fn get_property_subtitle(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "subtitle".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_desktop_folder(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index 63523d3754..b0e7dec84d 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index b313f5e6b3..866859378b 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 7d5b79b856..b249d63fa0 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index cc14ca3a97..415d56f5ba 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -12,6 +12,7 @@ use SelectionMode; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -413,11 +414,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_activate_on_single_click(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "activate-on-single-click".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_activate_on_single_click(&self, activate_on_single_click: bool) { @@ -427,11 +429,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_column_spacing(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "column-spacing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_column_spacing(&self, column_spacing: u32) { @@ -441,11 +444,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_homogeneous(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_homogeneous(&self, homogeneous: bool) { @@ -455,11 +459,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_max_children_per_line(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-children-per-line".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_max_children_per_line(&self, max_children_per_line: u32) { @@ -469,11 +474,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_min_children_per_line(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-children-per-line".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_min_children_per_line(&self, min_children_per_line: u32) { @@ -483,11 +489,12 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_row_spacing(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "row-spacing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_row_spacing(&self, row_spacing: u32) { @@ -497,15 +504,15 @@ impl + IsA + glib::object::ObjectExt> Flow } fn get_property_selection_mode(&self) -> SelectionMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_selection_mode(&self, selection_mode: SelectionMode) { - let selection_mode = selection_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, Value::from(&selection_mode).to_glib_none().0); } diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index c5e1d04dec..111ce90919 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index dac3fa675f..5a3f84955a 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 20b0e7d82a..5b719b8ee1 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 61697601ac..dc8f701579 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 2ea58ad4e3..fcc69ca8a2 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index b9f5401ec2..874b11128d 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use ShadowType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -133,11 +134,12 @@ impl + IsA> FrameExt for O { } fn get_property_label_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "label-xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_label_xalign(&self, label_xalign: f32) { @@ -147,11 +149,12 @@ impl + IsA> FrameExt for O { } fn get_property_label_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "label-yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_label_yalign(&self, label_yalign: f32) { diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 42ba9c6179..4dbb1b3040 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index c91e3abddc..a6cd412ecd 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; @@ -9,6 +9,8 @@ use ffi; use gdk; use glib; #[cfg(any(feature = "v3_14", feature = "dox"))] +use glib::StaticType; +#[cfg(any(feature = "v3_14", feature = "dox"))] use glib::Value; #[cfg(any(feature = "v3_14", feature = "dox"))] use glib::object::Downcast; @@ -245,11 +247,12 @@ impl + IsA> GestureExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_n_points(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "n-points".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } //#[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 1b32a93862..5555aad84c 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index e0f99b70d3..fb4e6a5aa1 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; @@ -8,6 +8,7 @@ use GestureSingle; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -57,11 +58,12 @@ pub trait GestureLongPressExt { impl + IsA> GestureLongPressExt for O { fn get_property_delay_factor(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "delay-factor".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_delay_factor(&self, delay_factor: f64) { diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index bfe58d7962..3f389bfd70 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index 158b5b5707..643d8cecd2 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index ba10f455ff..590bd181df 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 43663c9af1..190cac9a13 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 5248493021..9be9162f82 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 52c0da2d9f..29bde0ac23 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 417affd6bc..d49e88d609 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index b4f13c683a..a05883459b 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -10,6 +10,7 @@ use PositionType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -254,11 +255,12 @@ impl + IsA + IsA> GridExt for O { } fn get_property_baseline_row(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "baseline-row".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_baseline_row(&self, baseline_row: i32) { @@ -268,11 +270,12 @@ impl + IsA + IsA> GridExt for O { } fn get_cell_height>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_cell_height>(&self, item: &T, height: i32) { @@ -282,11 +285,12 @@ impl + IsA + IsA> GridExt for O { } fn get_cell_width>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_cell_width>(&self, item: &T, width: i32) { @@ -296,11 +300,12 @@ impl + IsA + IsA> GridExt for O { } fn get_cell_left_attach>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "left-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_cell_left_attach>(&self, item: &T, left_attach: i32) { @@ -310,11 +315,12 @@ impl + IsA + IsA> GridExt for O { } fn get_cell_top_attach>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "top-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_cell_top_attach>(&self, item: &T, top_attach: i32) { diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 1ae7f571af..2af58b1d75 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -7,6 +7,7 @@ use PackType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -250,11 +251,12 @@ impl + IsA + IsA> HeaderBarEx } fn get_property_custom_title(&self) -> Option { - let mut value = Value::from(None::<&Widget>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "custom-title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_custom_title + IsA + glib::value::SetValueOptional>(&self, custom_title: Option<&P>) { @@ -265,11 +267,12 @@ impl + IsA + IsA> HeaderBarEx #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_decoration_layout_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "decoration-layout-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -280,11 +283,12 @@ impl + IsA + IsA> HeaderBarEx } fn get_property_show_close_button(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-close-button".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_close_button(&self, show_close_button: bool) { @@ -294,11 +298,12 @@ impl + IsA + IsA> HeaderBarEx } fn get_property_spacing(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "spacing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_spacing(&self, spacing: i32) { @@ -308,11 +313,12 @@ impl + IsA + IsA> HeaderBarEx } fn get_property_subtitle(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "subtitle".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_subtitle(&self, subtitle: Option<&str>) { @@ -322,11 +328,12 @@ impl + IsA + IsA> HeaderBarEx } fn get_property_title(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_title(&self, title: Option<&str>) { @@ -336,26 +343,27 @@ impl + IsA + IsA> HeaderBarEx } fn get_child_pack_type>(&self, item: &T) -> PackType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_child_pack_type>(&self, item: &T, pack_type: PackType) { - let pack_type = pack_type.to_glib() as i32; unsafe { ffi::gtk_container_child_set_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, Value::from(&pack_type).to_glib_none().0); } } fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_position>(&self, item: &T, position: i32) { diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index 36d5f5eab4..616d7800ef 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -9,6 +9,8 @@ use ffi; use gdk; use glib; #[cfg(any(feature = "v3_6", feature = "dox"))] +use glib::StaticType; +#[cfg(any(feature = "v3_6", feature = "dox"))] use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -165,16 +167,16 @@ impl + IsA> IMContextExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_input_hints(&self) -> InputHints { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "input-hints".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[cfg(any(feature = "v3_6", feature = "dox"))] fn set_property_input_hints(&self, input_hints: InputHints) { - let input_hints = input_hints.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "input-hints".to_glib_none().0, Value::from(&input_hints).to_glib_none().0); } @@ -182,16 +184,16 @@ impl + IsA> IMContextExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_input_purpose(&self) -> InputPurpose { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "input-purpose".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[cfg(any(feature = "v3_6", feature = "dox"))] fn set_property_input_purpose(&self, input_purpose: InputPurpose) { - let input_purpose = input_purpose.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "input-purpose".to_glib_none().0, Value::from(&input_purpose).to_glib_none().0); } diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index 5a095168dc..94040dcbec 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 63dfe74906..4c36cfea77 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index 26c9a98a4b..b9f93a5af4 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index fde151b296..406163d46b 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index c7d88de841..85c4ae0a08 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index c935aa9b1a..0a47c89e71 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 7cfbaf79b3..2936a23cdb 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -21,6 +21,7 @@ use ffi; #[cfg(any(feature = "v3_6", feature = "dox"))] use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -650,11 +651,12 @@ impl + IsA + glib::object::ObjectExt> Ico } fn get_property_cell_area(&self) -> Option { - let mut value = Value::from(None::<&CellArea>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_activate_cursor_item bool + 'static>(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/image.rs b/src/auto/image.rs index 3e6f9d3475..5f62b6f46a 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -12,6 +12,7 @@ use ffi; use gdk_pixbuf; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -330,11 +331,12 @@ impl + IsA> ImageExt for O { } fn get_property_file(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "file".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_file(&self, file: Option<&str>) { @@ -350,11 +352,12 @@ impl + IsA> ImageExt for O { } fn get_property_icon_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_icon_name(&self, icon_name: Option<&str>) { @@ -364,11 +367,12 @@ impl + IsA> ImageExt for O { } fn get_property_icon_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_icon_size(&self, icon_size: i32) { @@ -384,11 +388,12 @@ impl + IsA> ImageExt for O { } fn get_property_pixbuf_animation(&self) -> Option { - let mut value = Value::from(None::<&gdk_pixbuf::PixbufAnimation>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-animation".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_pixbuf_animation + IsA + glib::value::SetValueOptional>(&self, pixbuf_animation: Option<&P>) { @@ -399,11 +404,12 @@ impl + IsA> ImageExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_resource(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "resource".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -414,11 +420,12 @@ impl + IsA> ImageExt for O { } fn get_property_stock(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_stock(&self, stock: Option<&str>) { @@ -428,11 +435,12 @@ impl + IsA> ImageExt for O { } fn get_property_use_fallback(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-fallback".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_use_fallback(&self, use_fallback: bool) { diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index a852a38c49..095dd684f2 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 2d646b6089..2ed30c7fbe 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/label.rs b/src/auto/label.rs index 99dfe0abf8..70b87e5014 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -9,6 +9,7 @@ use MovementStep; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -538,27 +539,30 @@ impl + IsA + glib::object::ObjectExt> LabelE } fn get_property_cursor_position(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_selection_bound(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-bound".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_wrap(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_wrap(&self, wrap: bool) { @@ -568,15 +572,15 @@ impl + IsA + glib::object::ObjectExt> LabelE } fn get_property_wrap_mode(&self) -> pango::WrapMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_wrap_mode(&self, wrap_mode: pango::WrapMode) { - let wrap_mode = wrap_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, Value::from(&wrap_mode).to_glib_none().0); } diff --git a/src/auto/layout.rs b/src/auto/layout.rs index c5a0a4eac4..60388bf8ec 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -9,6 +9,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -110,11 +111,12 @@ impl + IsA + IsA> LayoutExt for } fn get_property_height(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_height(&self, height: u32) { @@ -124,11 +126,12 @@ impl + IsA + IsA> LayoutExt for } fn get_property_width(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_width(&self, width: u32) { @@ -138,11 +141,12 @@ impl + IsA + IsA> LayoutExt for } fn get_child_x>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "x".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_x>(&self, item: &T, x: i32) { @@ -152,11 +156,12 @@ impl + IsA + IsA> LayoutExt for } fn get_child_y>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "y".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_y>(&self, item: &T, y: i32) { diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 1693436502..7621fd87b4 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 7988a595c4..4861f42d35 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 007cf877f1..c50cb0dc01 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -12,6 +12,7 @@ use SelectionMode; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -366,11 +367,12 @@ impl + IsA + glib::object::ObjectExt> List } fn get_property_activate_on_single_click(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "activate-on-single-click".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_activate_on_single_click(&self, activate_on_single_click: bool) { @@ -380,15 +382,15 @@ impl + IsA + glib::object::ObjectExt> List } fn get_property_selection_mode(&self) -> SelectionMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_selection_mode(&self, selection_mode: SelectionMode) { - let selection_mode = selection_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, Value::from(&selection_mode).to_glib_none().0); } diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 18f81ce3c7..c5481c44fb 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 477ac640c2..0ab614d92a 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index ea455d06e8..d197c5f0f8 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -12,6 +12,7 @@ use ffi; use gdk; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -386,16 +387,16 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_anchor_hints(&self) -> gdk::AnchorHints { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "anchor-hints".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[cfg(any(feature = "v3_22", feature = "dox"))] fn set_property_anchor_hints(&self, anchor_hints: gdk::AnchorHints) { - let anchor_hints = anchor_hints.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "anchor-hints".to_glib_none().0, Value::from(&anchor_hints).to_glib_none().0); } @@ -409,16 +410,16 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_menu_type_hint(&self) -> gdk::WindowTypeHint { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "menu-type-hint".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[cfg(any(feature = "v3_22", feature = "dox"))] fn set_property_menu_type_hint(&self, menu_type_hint: gdk::WindowTypeHint) { - let menu_type_hint = menu_type_hint.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "menu-type-hint".to_glib_none().0, Value::from(&menu_type_hint).to_glib_none().0); } @@ -426,11 +427,12 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_rect_anchor_dx(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rect-anchor-dx".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_22", feature = "dox"))] @@ -442,11 +444,12 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_rect_anchor_dy(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rect-anchor-dy".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_22", feature = "dox"))] @@ -457,11 +460,12 @@ impl + IsA + IsA + glib::object::O } fn get_property_tearoff_title(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tearoff-title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_tearoff_title(&self, tearoff_title: Option<&str>) { @@ -471,11 +475,12 @@ impl + IsA + IsA + glib::object::O } fn get_item_bottom_attach + IsA>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "bottom-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_bottom_attach + IsA>(&self, item: &T, bottom_attach: i32) { @@ -485,11 +490,12 @@ impl + IsA + IsA + glib::object::O } fn get_item_left_attach + IsA>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "left-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_left_attach + IsA>(&self, item: &T, left_attach: i32) { @@ -499,11 +505,12 @@ impl + IsA + IsA + glib::object::O } fn get_item_right_attach + IsA>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "right-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_right_attach + IsA>(&self, item: &T, right_attach: i32) { @@ -513,11 +520,12 @@ impl + IsA + IsA + glib::object::O } fn get_item_top_attach + IsA>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "top-attach".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_top_attach + IsA>(&self, item: &T, top_attach: i32) { diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 30f3ce211c..42112c844e 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index f3127e686d..33c8d1acc2 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index 3fa3f842d1..8c6298fef6 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -9,6 +9,7 @@ use Menu; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -208,11 +209,12 @@ impl + IsA + glib::object::ObjectExt> Men } fn get_property_right_justified(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-justified".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_right_justified(&self, right_justified: bool) { diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 2ba5de1d88..11bcdbd984 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 9827c0bde5..f09d88a737 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 0b7ea1ada3..f0277c2367 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -10,6 +10,7 @@ use Widget; use Window; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -125,26 +126,27 @@ impl + IsA> MessageDialogExt for O { } fn get_property_message_type(&self) -> MessageType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "message-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_message_type(&self, message_type: MessageType) { - let message_type = message_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "message-type".to_glib_none().0, Value::from(&message_type).to_glib_none().0); } } fn get_property_secondary_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_secondary_text(&self, secondary_text: Option<&str>) { @@ -154,11 +156,12 @@ impl + IsA> MessageDialogExt for O { } fn get_property_secondary_use_markup(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-use-markup".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_secondary_use_markup(&self, secondary_use_markup: bool) { @@ -168,11 +171,12 @@ impl + IsA> MessageDialogExt for O { } fn get_property_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_text(&self, text: Option<&str>) { @@ -182,11 +186,12 @@ impl + IsA> MessageDialogExt for O { } fn get_property_use_markup(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-markup".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_use_markup(&self, use_markup: bool) { diff --git a/src/auto/misc.rs b/src/auto/misc.rs index fd6f769960..4d62724e90 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -92,11 +93,12 @@ impl + IsA> MiscExt for O { } fn get_property_xalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xalign(&self, xalign: f32) { @@ -106,11 +108,12 @@ impl + IsA> MiscExt for O { } fn get_property_xpad(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xpad".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_xpad(&self, xpad: i32) { @@ -120,11 +123,12 @@ impl + IsA> MiscExt for O { } fn get_property_yalign(&self) -> f32 { - let mut value = Value::from(&0f32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_yalign(&self, yalign: f32) { @@ -134,11 +138,12 @@ impl + IsA> MiscExt for O { } fn get_property_ypad(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ypad".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_ypad(&self, ypad: i32) { diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 727ead5ab9..c3b576bc32 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 43df860b4f..a1b56b0f3f 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -14,6 +14,8 @@ use ffi; use gio; use glib; #[cfg(any(feature = "v3_16", feature = "dox"))] +use glib::StaticType; +#[cfg(any(feature = "v3_16", feature = "dox"))] use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -133,11 +135,12 @@ pub trait ModelButtonExt { impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_active(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -149,11 +152,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_centered(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "centered".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -165,11 +169,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_icon(&self) -> Option { - let mut value = Value::from(None::<&gio::Icon>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -181,11 +186,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_iconic(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "iconic".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -197,11 +203,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_inverted(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inverted".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -213,11 +220,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_menu_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "menu-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -229,16 +237,16 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_role(&self) -> ButtonRole { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "role".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } #[cfg(any(feature = "v3_16", feature = "dox"))] fn set_property_role(&self, role: ButtonRole) { - let role = role.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "role".to_glib_none().0, Value::from(&role).to_glib_none().0); } @@ -246,11 +254,12 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_text(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_16", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index 0040ee5e0c..a8d7cc0097 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -10,6 +10,7 @@ use PositionType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -385,11 +386,12 @@ impl + IsA + IsA + glib::objec } fn get_property_enable_popup(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-popup".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_enable_popup(&self, enable_popup: bool) { @@ -399,11 +401,12 @@ impl + IsA + IsA + glib::objec } fn get_property_page(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "page".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_page(&self, page: i32) { @@ -414,11 +417,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_detachable>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "detachable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -430,11 +434,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_menu_label>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "menu-label".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[doc(hidden)] @@ -447,11 +452,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -463,11 +469,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_reorderable>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "reorderable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -479,11 +486,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_expand>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -495,11 +503,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_fill>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-fill".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[doc(hidden)] @@ -511,11 +520,12 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_label>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-label".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[doc(hidden)] diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index c691d6893b..eff5a460c5 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index f4772b3b21..bc846b8921 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -6,6 +6,7 @@ use Buildable; use Container; use Widget; use ffi; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -86,11 +87,12 @@ impl + IsA> OverlayExt for O { } fn get_child_index>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "index".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_index>(&self, item: &T, index: i32) { diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index e794ca8538..175ced1db9 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index 8697bc8c39..25df29b83c 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -10,6 +10,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -187,27 +188,30 @@ impl + IsA + IsA + glib::object:: } fn get_property_max_position(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_min_position(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_position_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "position-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_position_set(&self, position_set: bool) { @@ -217,11 +221,12 @@ impl + IsA + IsA + glib::object:: } fn get_child_resize>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "resize".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_resize>(&self, item: &T, resize: bool) { @@ -231,11 +236,12 @@ impl + IsA + IsA + glib::object:: } fn get_child_shrink>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "shrink".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_shrink>(&self, item: &T, shrink: bool) { diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index ef6fe3d389..5c168f16a8 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 40f1419f3c..27b516e772 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -10,7 +10,11 @@ use Widget; use ffi; #[cfg(any(feature = "v3_18", feature = "dox"))] use gdk; +use gio; +#[cfg(any(feature = "v3_10", feature = "dox"))] +use gio_ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -52,17 +56,17 @@ impl Default for PlacesSidebar { } pub trait PlacesSidebarExt { - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn add_shortcut>(&self, location: &P); + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn add_shortcut>(&self, location: &P); #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_local_only(&self) -> bool; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn get_location(&self) -> /*Ignored*/Option; + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn get_location(&self) -> Option; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn get_nth_bookmark(&self, n: i32) -> /*Ignored*/Option; + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn get_nth_bookmark(&self, n: i32) -> Option; #[cfg(any(feature = "v3_10", feature = "dox"))] fn get_open_flags(&self) -> PlacesOpenFlags; @@ -84,11 +88,11 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_show_trash(&self) -> bool; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn list_shortcuts(&self) -> /*Ignored*/Vec; + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn list_shortcuts(&self) -> Vec; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn remove_shortcut>(&self, location: &P); + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn remove_shortcut>(&self, location: &P); #[cfg(any(feature = "v3_18", feature = "dox"))] fn set_drop_targets_visible(&self, visible: bool, context: &gdk::DragContext); @@ -96,8 +100,8 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn set_local_only(&self, local_only: bool); - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn set_location<'a, P: IsA + 'a, Q: Into>>(&self, location: Q); + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn set_location<'a, P: IsA + 'a, Q: Into>>(&self, location: Q); #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_open_flags(&self, flags: PlacesOpenFlags); @@ -124,9 +128,9 @@ pub trait PlacesSidebarExt { fn set_property_local_only(&self, local_only: bool); - //fn get_property_location(&self) -> /*Ignored*/Option; + fn get_property_location(&self) -> Option; - //fn set_property_location + IsA + glib::value::SetValueOptional>(&self, location: Option<&P>); + fn set_property_location + IsA + glib::value::SetValueOptional>(&self, location: Option<&P>); fn get_property_open_flags(&self) -> PlacesOpenFlags; @@ -163,17 +167,11 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_10", feature = "dox"))] fn connect_drag_action_ask i32 + 'static>(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_drag_action_requested(&self, f: F) -> SignalHandlerId; - - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_drag_perform_drop(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v3_20", feature = "dox"))] //fn connect_mount(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_open_location(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn connect_open_location(&self, f: F) -> SignalHandlerId; //#[cfg(any(feature = "v3_10", feature = "dox"))] //fn connect_populate_popup(&self, f: F) -> SignalHandlerId; @@ -218,10 +216,12 @@ pub trait PlacesSidebarExt { } impl + IsA> PlacesSidebarExt for O { - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn add_shortcut>(&self, location: &P) { - // unsafe { TODO: call ffi::gtk_places_sidebar_add_shortcut() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn add_shortcut>(&self, location: &P) { + unsafe { + ffi::gtk_places_sidebar_add_shortcut(self.to_glib_none().0, location.to_glib_none().0); + } + } #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_local_only(&self) -> bool { @@ -230,15 +230,19 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn get_location(&self) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_places_sidebar_get_location() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn get_location(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_places_sidebar_get_location(self.to_glib_none().0)) + } + } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn get_nth_bookmark(&self, n: i32) -> /*Ignored*/Option { - // unsafe { TODO: call ffi::gtk_places_sidebar_get_nth_bookmark() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn get_nth_bookmark(&self, n: i32) -> Option { + unsafe { + from_glib_full(ffi::gtk_places_sidebar_get_nth_bookmark(self.to_glib_none().0, n)) + } + } #[cfg(any(feature = "v3_10", feature = "dox"))] fn get_open_flags(&self) -> PlacesOpenFlags { @@ -288,15 +292,19 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn list_shortcuts(&self) -> /*Ignored*/Vec { - // unsafe { TODO: call ffi::gtk_places_sidebar_list_shortcuts() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn list_shortcuts(&self) -> Vec { + unsafe { + FromGlibPtrContainer::from_glib_full(ffi::gtk_places_sidebar_list_shortcuts(self.to_glib_none().0)) + } + } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn remove_shortcut>(&self, location: &P) { - // unsafe { TODO: call ffi::gtk_places_sidebar_remove_shortcut() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn remove_shortcut>(&self, location: &P) { + unsafe { + ffi::gtk_places_sidebar_remove_shortcut(self.to_glib_none().0, location.to_glib_none().0); + } + } #[cfg(any(feature = "v3_18", feature = "dox"))] fn set_drop_targets_visible(&self, visible: bool, context: &gdk::DragContext) { @@ -312,10 +320,14 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn set_location<'a, P: IsA + 'a, Q: Into>>(&self, location: Q) { - // unsafe { TODO: call ffi::gtk_places_sidebar_set_location() } - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn set_location<'a, P: IsA + 'a, Q: Into>>(&self, location: Q) { + let location = location.into(); + let location = location.to_glib_none(); + unsafe { + ffi::gtk_places_sidebar_set_location(self.to_glib_none().0, location.0); + } + } #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_open_flags(&self, flags: PlacesOpenFlags) { @@ -367,11 +379,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_local_only(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "local-only".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_local_only(&self, local_only: bool) { @@ -380,30 +393,31 @@ impl + IsA> PlacesSidebarExt for O { } } - //fn get_property_location(&self) -> /*Ignored*/Option { - // let mut value = Value::from(None::<&/*Ignored*/gio::File>); - // unsafe { - // gobject_ffi::g_object_get_property(self.to_glib_none().0, "location".to_glib_none().0, value.to_glib_none_mut().0); - // } - // value.get() - //} + fn get_property_location(&self) -> Option { + unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "location".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } - //fn set_property_location + IsA + glib::value::SetValueOptional>(&self, location: Option<&P>) { - // unsafe { - // gobject_ffi::g_object_set_property(self.to_glib_none().0, "location".to_glib_none().0, Value::from(location).to_glib_none().0); - // } - //} + fn set_property_location + IsA + glib::value::SetValueOptional>(&self, location: Option<&P>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "location".to_glib_none().0, Value::from(location).to_glib_none().0); + } + } fn get_property_open_flags(&self) -> PlacesOpenFlags { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "open-flags".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_open_flags(&self, open_flags: PlacesOpenFlags) { - let open_flags = open_flags.to_glib().bits() as u32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "open-flags".to_glib_none().0, Value::from(&open_flags).to_glib_none().0); } @@ -411,11 +425,12 @@ impl + IsA> PlacesSidebarExt for O { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_property_populate_all(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_18", feature = "dox"))] @@ -432,11 +447,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_show_desktop(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-desktop".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_desktop(&self, show_desktop: bool) { @@ -446,11 +462,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_show_enter_location(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-enter-location".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_enter_location(&self, show_enter_location: bool) { @@ -460,11 +477,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_show_other_locations(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-other-locations".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_other_locations(&self, show_other_locations: bool) { @@ -474,11 +492,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_show_recent(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-recent".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_recent(&self, show_recent: bool) { @@ -488,11 +507,12 @@ impl + IsA> PlacesSidebarExt for O { } fn get_property_show_trash(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-trash".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_trash(&self, show_trash: bool) { @@ -510,31 +530,22 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_drag_action_requested(&self, f: F) -> SignalHandlerId { - // Ignored dest_file: Gio.File - // Ignored source_file_list: *.List TypeId { ns_id: 6, id: 15 } - //} - - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_drag_perform_drop(&self, f: F) -> SignalHandlerId { - // Ignored dest_file: Gio.File - // Ignored source_file_list: *.List TypeId { ns_id: 6, id: 15 } - //} - //#[cfg(any(feature = "v3_20", feature = "dox"))] //fn connect_mount(&self, f: F) -> SignalHandlerId { // Ignored mount_operation: Gio.MountOperation //} - //#[cfg(any(feature = "v3_10", feature = "dox"))] - //fn connect_open_location(&self, f: F) -> SignalHandlerId { - // Ignored location: Gio.File - //} + #[cfg(any(feature = "v3_10", feature = "dox"))] + fn connect_open_location(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "open-location", + transmute(open_location_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } //#[cfg(any(feature = "v3_10", feature = "dox"))] //fn connect_populate_popup(&self, f: F) -> SignalHandlerId { - // Ignored selected_item: Gio.File // Ignored selected_volume: Gio.Volume //} @@ -677,6 +688,14 @@ where P: IsA { f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), actions) } +#[cfg(any(feature = "v3_10", feature = "dox"))] +unsafe extern "C" fn open_location_trampoline

(this: *mut ffi::GtkPlacesSidebar, location: *mut gio_ffi::GFile, open_flags: ffi::GtkPlacesOpenFlags, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, &gio::File, PlacesOpenFlags) + 'static) = transmute(f); + f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(location), from_glib(open_flags)) +} + unsafe extern "C" fn show_connect_to_server_trampoline

(this: *mut ffi::GtkPlacesSidebar, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 83ca40b90b..30079846c3 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 0c7572b29d..69fd092721 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use Popover; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -74,11 +75,12 @@ impl + IsA + IsA> PopoverMe } fn get_property_visible_submenu(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-submenu".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_visible_submenu(&self, visible_submenu: Option<&str>) { @@ -88,11 +90,12 @@ impl + IsA + IsA> PopoverMe } fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_position>(&self, item: &T, position: i32) { @@ -102,11 +105,12 @@ impl + IsA + IsA> PopoverMe } fn get_child_submenu>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "submenu".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_child_submenu<'a, P: Into>, T: IsA>(&self, item: &T, submenu: P) { diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 1355a0400c..dcf8da2c90 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index fe55cb05c5..b8e5cffefb 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; @@ -14,6 +14,7 @@ use Widget; use Window; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -378,83 +379,93 @@ impl + IsA> PrintOperationExt for O } fn get_property_allow_async(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "allow-async".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_current_page(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "current-page".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_custom_tab_label(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "custom-tab-label".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_export_filename(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "export-filename".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_job_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "job-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_n_pages(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "n-pages".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_show_progress(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-progress".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_track_print_status(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "track-print-status".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_unit(&self) -> Unit { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "unit".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn get_property_use_full_page(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-full-page".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn connect_begin_print(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 4fd1d14334..776389a7f3 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index ce901ca9f2..7034137929 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index 63c77c7bb7..d768efd941 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 724b6bb8d6..7f313d5306 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index 88729066e5..e2639150ea 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 744b412284..552fa023da 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index fca170e9f2..d328c3679f 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index ed084c2dec..cd8f658388 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 38912312ea..6df21922b3 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index edd1eaf211..0afdda3145 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index 145a74d2a2..0b45bf87ed 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index ce3eb10247..290561009c 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index c862cba484..dde07dcfd2 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Error; @@ -6,6 +6,7 @@ use RecentData; use RecentInfo; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -137,19 +138,21 @@ impl + IsA> RecentManagerExt for O { } fn get_property_filename(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "filename".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn get_property_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn connect_changed(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 4b0b4ebc1e..cb89de69a8 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use RevealerTransitionType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -142,19 +143,21 @@ impl + IsA> RevealerExt for O { } fn get_property_child_revealed(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "child-revealed".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_reveal_child(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "reveal-child".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_reveal_child(&self, reveal_child: bool) { @@ -164,11 +167,12 @@ impl + IsA> RevealerExt for O { } fn get_property_transition_duration(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-duration".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_transition_duration(&self, transition_duration: u32) { @@ -178,15 +182,15 @@ impl + IsA> RevealerExt for O { } fn get_property_transition_type(&self) -> RevealerTransitionType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_transition_type(&self, transition_type: RevealerTransitionType) { - let transition_type = transition_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "transition-type".to_glib_none().0, Value::from(&transition_type).to_glib_none().0); } diff --git a/src/auto/scale.rs b/src/auto/scale.rs index 46646a1b57..b3cabdd38d 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 0f6758a03e..a83bf91fe5 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -12,6 +12,7 @@ use Orientable; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -60,6 +61,8 @@ pub trait ScaleButtonExt { fn set_value(&self, value: f64); + fn get_property_icons(&self) -> Vec; + fn get_property_size(&self) -> IconSize; fn set_property_size(&self, size: IconSize); @@ -132,16 +135,25 @@ impl + IsA + glib::object::ObjectExt> } } + fn get_property_icons(&self) -> Vec { + unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, as StaticType>::static_type().to_glib()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "icons".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() + } + } + fn get_property_size(&self) -> IconSize { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_size(&self, size: IconSize) { - let size = size.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "size".to_glib_none().0, Value::from(&size).to_glib_none().0); } diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index 8da16600c7..d91379375d 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 8456a8d961..0e4421ef7a 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index e9cb9ca047..59235ee2e1 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -15,6 +15,7 @@ use ShadowType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -397,56 +398,57 @@ impl + IsA + glib::object::ObjectEx } fn get_property_hscrollbar_policy(&self) -> PolicyType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "hscrollbar-policy".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_hscrollbar_policy(&self, hscrollbar_policy: PolicyType) { - let hscrollbar_policy = hscrollbar_policy.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "hscrollbar-policy".to_glib_none().0, Value::from(&hscrollbar_policy).to_glib_none().0); } } fn get_property_vscrollbar_policy(&self) -> PolicyType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "vscrollbar-policy".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_vscrollbar_policy(&self, vscrollbar_policy: PolicyType) { - let vscrollbar_policy = vscrollbar_policy.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "vscrollbar-policy".to_glib_none().0, Value::from(&vscrollbar_policy).to_glib_none().0); } } fn get_property_window_placement(&self) -> CornerType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-placement".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_window_placement(&self, window_placement: CornerType) { - let window_placement = window_placement.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "window-placement".to_glib_none().0, Value::from(&window_placement).to_glib_none().0); } } fn get_property_window_placement_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-placement-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_window_placement_set(&self, window_placement_set: bool) { diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index 185c1d07cc..135ede7c10 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -11,6 +11,7 @@ use ffi; #[cfg(any(feature = "v3_10", feature = "dox"))] use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -125,11 +126,12 @@ impl + IsA> SearchBarExt for O { } fn get_property_search_mode_enabled(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "search-mode-enabled".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_search_mode_enabled(&self, search_mode_enabled: bool) { @@ -139,11 +141,12 @@ impl + IsA> SearchBarExt for O { } fn get_property_show_close_button(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-close-button".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_show_close_button(&self, show_close_button: bool) { diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index 2551f6610b..aeb59aaab0 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index d693b55e93..fc9c7ad0ed 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 646d16d2e4..737724227f 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index f0ba863937..43f4a84aba 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index c92f4ffb54..c15b5f4b6f 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 30e8468963..eed60a8e6e 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CornerType; @@ -11,6 +11,7 @@ use ToolbarStyle; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -69,6 +70,8 @@ pub trait SettingsExt { fn set_string_property(&self, name: &str, v_string: &str, origin: &str); + //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 }; + fn get_property_gtk_alternative_button_order(&self) -> bool; fn set_property_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool); @@ -615,12 +618,22 @@ impl + IsA> SettingsExt for O { } } + //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 } { + // unsafe { + // let mut value = Value::uninitialized(); + // gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + // gobject_ffi::g_object_get_property(self.to_glib_none().0, "color-hash".to_glib_none().0, value.to_glib_none_mut().0); + // value.get().unwrap() + // } + //} + fn get_property_gtk_alternative_button_order(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-alternative-button-order".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_alternative_button_order(&self, gtk_alternative_button_order: bool) { @@ -630,11 +643,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_alternative_sort_arrows(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-alternative-sort-arrows".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_alternative_sort_arrows(&self, gtk_alternative_sort_arrows: bool) { @@ -644,11 +658,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_application_prefer_dark_theme(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-application-prefer-dark-theme".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool) { @@ -658,11 +673,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_auto_mnemonics(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-auto-mnemonics".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_auto_mnemonics(&self, gtk_auto_mnemonics: bool) { @@ -672,11 +688,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_button_images(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-button-images".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_button_images(&self, gtk_button_images: bool) { @@ -686,11 +703,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_can_change_accels(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-can-change-accels".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_can_change_accels(&self, gtk_can_change_accels: bool) { @@ -700,11 +718,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_color_palette(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-color-palette".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_color_palette(&self, gtk_color_palette: Option<&str>) { @@ -714,11 +733,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_color_scheme(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-color-scheme".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_color_scheme(&self, gtk_color_scheme: Option<&str>) { @@ -728,11 +748,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_cursor_blink(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_cursor_blink(&self, gtk_cursor_blink: bool) { @@ -742,11 +763,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_cursor_blink_time(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink-time".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_cursor_blink_time(&self, gtk_cursor_blink_time: i32) { @@ -756,11 +778,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_cursor_blink_timeout(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink-timeout".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_cursor_blink_timeout(&self, gtk_cursor_blink_timeout: i32) { @@ -770,11 +793,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_cursor_theme_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-theme-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_cursor_theme_name(&self, gtk_cursor_theme_name: Option<&str>) { @@ -784,11 +808,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_cursor_theme_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-theme-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_cursor_theme_size(&self, gtk_cursor_theme_size: i32) { @@ -799,11 +824,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_gtk_decoration_layout(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-decoration-layout".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -815,11 +841,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_gtk_dialogs_use_header(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-dialogs-use-header".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -830,11 +857,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_dnd_drag_threshold(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-dnd-drag-threshold".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_dnd_drag_threshold(&self, gtk_dnd_drag_threshold: i32) { @@ -844,11 +872,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_double_click_distance(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-double-click-distance".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_double_click_distance(&self, gtk_double_click_distance: i32) { @@ -858,11 +887,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_double_click_time(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-double-click-time".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_double_click_time(&self, gtk_double_click_time: i32) { @@ -872,11 +902,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_accels(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-accels".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_accels(&self, gtk_enable_accels: bool) { @@ -886,11 +917,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_animations(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-animations".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_animations(&self, gtk_enable_animations: bool) { @@ -900,11 +932,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_event_sounds(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-event-sounds".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_event_sounds(&self, gtk_enable_event_sounds: bool) { @@ -914,11 +947,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_input_feedback_sounds(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-input-feedback-sounds".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool) { @@ -928,11 +962,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_mnemonics(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-mnemonics".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_mnemonics(&self, gtk_enable_mnemonics: bool) { @@ -942,11 +977,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_primary_paste(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-primary-paste".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool) { @@ -956,11 +992,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_enable_tooltips(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-tooltips".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_enable_tooltips(&self, gtk_enable_tooltips: bool) { @@ -970,11 +1007,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_entry_password_hint_timeout(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-entry-password-hint-timeout".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_entry_password_hint_timeout(&self, gtk_entry_password_hint_timeout: u32) { @@ -984,11 +1022,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_entry_select_on_focus(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-entry-select-on-focus".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_entry_select_on_focus(&self, gtk_entry_select_on_focus: bool) { @@ -998,11 +1037,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_error_bell(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-error-bell".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_error_bell(&self, gtk_error_bell: bool) { @@ -1012,11 +1052,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_fallback_icon_theme(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-fallback-icon-theme".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_fallback_icon_theme(&self, gtk_fallback_icon_theme: Option<&str>) { @@ -1026,11 +1067,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_file_chooser_backend(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-file-chooser-backend".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_file_chooser_backend(&self, gtk_file_chooser_backend: Option<&str>) { @@ -1040,11 +1082,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_font_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-font-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_font_name(&self, gtk_font_name: Option<&str>) { @@ -1054,11 +1097,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_fontconfig_timestamp(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-fontconfig-timestamp".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32) { @@ -1068,11 +1112,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_icon_sizes(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-icon-sizes".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_icon_sizes(&self, gtk_icon_sizes: Option<&str>) { @@ -1082,11 +1127,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_icon_theme_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-icon-theme-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_icon_theme_name(&self, gtk_icon_theme_name: Option<&str>) { @@ -1096,11 +1142,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_im_module(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-module".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_im_module(&self, gtk_im_module: Option<&str>) { @@ -1110,41 +1157,42 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_im_preedit_style(&self) -> IMPreeditStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-preedit-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_im_preedit_style(&self, gtk_im_preedit_style: IMPreeditStyle) { - let gtk_im_preedit_style = gtk_im_preedit_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-im-preedit-style".to_glib_none().0, Value::from(>k_im_preedit_style).to_glib_none().0); } } fn get_property_gtk_im_status_style(&self) -> IMStatusStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-status-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_im_status_style(&self, gtk_im_status_style: IMStatusStyle) { - let gtk_im_status_style = gtk_im_status_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-im-status-style".to_glib_none().0, Value::from(>k_im_status_style).to_glib_none().0); } } fn get_property_gtk_key_theme_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-key-theme-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>) { @@ -1154,11 +1202,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_keynav_cursor_only(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-cursor-only".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_keynav_cursor_only(&self, gtk_keynav_cursor_only: bool) { @@ -1169,11 +1218,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_gtk_keynav_use_caret(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-use-caret".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_20", feature = "dox"))] @@ -1184,11 +1234,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_keynav_wrap_around(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-wrap-around".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_keynav_wrap_around(&self, gtk_keynav_wrap_around: bool) { @@ -1198,11 +1249,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_label_select_on_focus(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-label-select-on-focus".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_label_select_on_focus(&self, gtk_label_select_on_focus: bool) { @@ -1213,11 +1265,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_long_press_time(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-long-press-time".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -1228,11 +1281,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_menu_bar_accel(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-bar-accel".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_menu_bar_accel(&self, gtk_menu_bar_accel: Option<&str>) { @@ -1242,11 +1296,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_menu_bar_popup_delay(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-bar-popup-delay".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_menu_bar_popup_delay(&self, gtk_menu_bar_popup_delay: i32) { @@ -1256,11 +1311,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_menu_images(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-images".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_menu_images(&self, gtk_menu_images: bool) { @@ -1270,11 +1326,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_menu_popdown_delay(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-popdown-delay".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_menu_popdown_delay(&self, gtk_menu_popdown_delay: i32) { @@ -1284,11 +1341,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_menu_popup_delay(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-popup-delay".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_menu_popup_delay(&self, gtk_menu_popup_delay: i32) { @@ -1298,11 +1356,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_modules(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-modules".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_modules(&self, gtk_modules: Option<&str>) { @@ -1313,11 +1372,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_gtk_primary_button_warps_slider(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-primary-button-warps-slider".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -1328,11 +1388,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_print_backends(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-print-backends".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_print_backends(&self, gtk_print_backends: Option<&str>) { @@ -1342,11 +1403,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_print_preview_command(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-print-preview-command".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_print_preview_command(&self, gtk_print_preview_command: Option<&str>) { @@ -1357,11 +1419,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_gtk_recent_files_enabled(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-enabled".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -1372,11 +1435,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_recent_files_limit(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-limit".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_recent_files_limit(&self, gtk_recent_files_limit: i32) { @@ -1386,11 +1450,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_recent_files_max_age(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-max-age".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32) { @@ -1400,26 +1465,27 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_scrolled_window_placement(&self) -> CornerType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-scrolled-window-placement".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_scrolled_window_placement(&self, gtk_scrolled_window_placement: CornerType) { - let gtk_scrolled_window_placement = gtk_scrolled_window_placement.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-scrolled-window-placement".to_glib_none().0, Value::from(>k_scrolled_window_placement).to_glib_none().0); } } fn get_property_gtk_shell_shows_app_menu(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-app-menu".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_shell_shows_app_menu(&self, gtk_shell_shows_app_menu: bool) { @@ -1429,11 +1495,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_shell_shows_desktop(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-desktop".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_shell_shows_desktop(&self, gtk_shell_shows_desktop: bool) { @@ -1443,11 +1510,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_shell_shows_menubar(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-menubar".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool) { @@ -1457,11 +1525,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_show_input_method_menu(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-show-input-method-menu".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_show_input_method_menu(&self, gtk_show_input_method_menu: bool) { @@ -1471,11 +1540,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_show_unicode_menu(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-show-unicode-menu".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_show_unicode_menu(&self, gtk_show_unicode_menu: bool) { @@ -1485,11 +1555,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_sound_theme_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-sound-theme-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_sound_theme_name(&self, gtk_sound_theme_name: Option<&str>) { @@ -1499,11 +1570,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_split_cursor(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-split-cursor".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_split_cursor(&self, gtk_split_cursor: bool) { @@ -1513,11 +1585,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_theme_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-theme-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_theme_name(&self, gtk_theme_name: Option<&str>) { @@ -1527,11 +1600,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_timeout_expand(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_timeout_expand(&self, gtk_timeout_expand: i32) { @@ -1541,11 +1615,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_timeout_initial(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-initial".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_timeout_initial(&self, gtk_timeout_initial: i32) { @@ -1555,11 +1630,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_timeout_repeat(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-repeat".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_timeout_repeat(&self, gtk_timeout_repeat: i32) { @@ -1570,11 +1646,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_double_click(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-double-click".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -1586,11 +1663,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_middle_click(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-middle-click".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -1602,11 +1680,12 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_right_click(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-right-click".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -1617,41 +1696,42 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_toolbar_icon_size(&self) -> IconSize { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-toolbar-icon-size".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_toolbar_icon_size(&self, gtk_toolbar_icon_size: IconSize) { - let gtk_toolbar_icon_size = gtk_toolbar_icon_size.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-toolbar-icon-size".to_glib_none().0, Value::from(>k_toolbar_icon_size).to_glib_none().0); } } fn get_property_gtk_toolbar_style(&self) -> ToolbarStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_toolbar_style(&self, gtk_toolbar_style: ToolbarStyle) { - let gtk_toolbar_style = gtk_toolbar_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-toolbar-style".to_glib_none().0, Value::from(>k_toolbar_style).to_glib_none().0); } } fn get_property_gtk_tooltip_browse_mode_timeout(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-browse-mode-timeout".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_tooltip_browse_mode_timeout(&self, gtk_tooltip_browse_mode_timeout: i32) { @@ -1661,11 +1741,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_tooltip_browse_timeout(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-browse-timeout".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_tooltip_browse_timeout(&self, gtk_tooltip_browse_timeout: i32) { @@ -1675,11 +1756,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_tooltip_timeout(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-timeout".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_tooltip_timeout(&self, gtk_tooltip_timeout: i32) { @@ -1689,26 +1771,27 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_visible_focus(&self) -> PolicyType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-visible-focus".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_gtk_visible_focus(&self, gtk_visible_focus: PolicyType) { - let gtk_visible_focus = gtk_visible_focus.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "gtk-visible-focus".to_glib_none().0, Value::from(>k_visible_focus).to_glib_none().0); } } fn get_property_gtk_xft_antialias(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-antialias".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_xft_antialias(&self, gtk_xft_antialias: i32) { @@ -1718,11 +1801,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_xft_dpi(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-dpi".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_xft_dpi(&self, gtk_xft_dpi: i32) { @@ -1732,11 +1816,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_xft_hinting(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-hinting".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_gtk_xft_hinting(&self, gtk_xft_hinting: i32) { @@ -1746,11 +1831,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_xft_hintstyle(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-hintstyle".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_xft_hintstyle(&self, gtk_xft_hintstyle: Option<&str>) { @@ -1760,11 +1846,12 @@ impl + IsA> SettingsExt for O { } fn get_property_gtk_xft_rgba(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>) { diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index 5a34ef5e8f..b8e8f974f3 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use Widget; use Window; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -53,11 +54,12 @@ pub trait ShortcutsWindowExt { impl + IsA + glib::object::ObjectExt> ShortcutsWindowExt for O { fn get_property_section_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "section-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_section_name(&self, section_name: Option<&str>) { @@ -67,11 +69,12 @@ impl + IsA + glib::object::ObjectE } fn get_property_view_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "view-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_view_name(&self, view_name: Option<&str>) { diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index bf8fa7805e..67520a763f 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index 90abdcd2aa..30efb522bf 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -12,6 +12,7 @@ use SpinType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -259,11 +260,12 @@ impl + IsA> SpinButtonExt for O { } fn get_property_climb_rate(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "climb-rate".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_climb_rate(&self, climb_rate: f64) { diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index 482c902c7f..736d220212 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,10 +1,11 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -67,11 +68,12 @@ impl + IsA> SpinnerExt for O { } fn get_property_active(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_active(&self, active: bool) { diff --git a/src/auto/stack.rs b/src/auto/stack.rs index 67c955c1c5..aceec2f01e 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -7,6 +7,7 @@ use StackTransitionType; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -325,11 +326,12 @@ impl + IsA + IsA> StackExt for O } fn get_property_homogeneous(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_homogeneous(&self, homogeneous: bool) { @@ -339,11 +341,12 @@ impl + IsA + IsA> StackExt for O } fn get_property_interpolate_size(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "interpolate-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_interpolate_size(&self, interpolate_size: bool) { @@ -353,11 +356,12 @@ impl + IsA + IsA> StackExt for O } fn get_property_transition_duration(&self) -> u32 { - let mut value = Value::from(&0u32); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-duration".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_transition_duration(&self, transition_duration: u32) { @@ -367,34 +371,36 @@ impl + IsA + IsA> StackExt for O } fn get_property_transition_running(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-running".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_transition_type(&self) -> StackTransitionType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_transition_type(&self, transition_type: StackTransitionType) { - let transition_type = transition_type.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "transition-type".to_glib_none().0, Value::from(&transition_type).to_glib_none().0); } } fn get_property_visible_child(&self) -> Option { - let mut value = Value::from(None::<&Widget>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-child".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_visible_child + IsA + glib::value::SetValueOptional>(&self, visible_child: Option<&P>) { @@ -404,11 +410,12 @@ impl + IsA + IsA> StackExt for O } fn get_property_visible_child_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-child-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_visible_child_name(&self, visible_child_name: Option<&str>) { @@ -418,11 +425,12 @@ impl + IsA + IsA> StackExt for O } fn get_child_icon_name>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_child_icon_name<'a, P: Into>, T: IsA>(&self, item: &T, icon_name: P) { @@ -433,11 +441,12 @@ impl + IsA + IsA> StackExt for O } fn get_child_name>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_child_name<'a, P: Into>, T: IsA>(&self, item: &T, name: P) { @@ -448,11 +457,12 @@ impl + IsA + IsA> StackExt for O } fn get_child_needs_attention>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "needs-attention".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_needs_attention>(&self, item: &T, needs_attention: bool) { @@ -462,11 +472,12 @@ impl + IsA + IsA> StackExt for O } fn get_child_position>(&self, item: &T) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_child_position>(&self, item: &T, position: i32) { @@ -476,11 +487,12 @@ impl + IsA + IsA> StackExt for O } fn get_child_title>(&self, item: &T) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_child_title<'a, P: Into>, T: IsA>(&self, item: &T, title: P) { diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index 0e76830dce..e4c43df4a2 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -8,6 +8,7 @@ use Stack; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -76,11 +77,12 @@ impl + IsA> StackSidebarExt for O { } fn get_property_stack(&self) -> Option { - let mut value = Value::from(None::<&Stack>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stack".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_stack(&self, stack: Option<&Stack>) { diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index 4345eb3819..778e75fa18 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; @@ -9,6 +9,7 @@ use Stack; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -89,11 +90,12 @@ impl + IsA> StackSwitcherExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_icon_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_20", feature = "dox"))] @@ -104,11 +106,12 @@ impl + IsA> StackSwitcherExt for O { } fn get_property_stack(&self) -> Option { - let mut value = Value::from(None::<&Stack>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stack".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_stack(&self, stack: Option<&Stack>) { diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 4d10293637..c9ae0286a2 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ImageType; @@ -11,6 +11,7 @@ use gdk_ffi; use gdk_pixbuf; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -383,11 +384,12 @@ impl + IsA + glib::object::ObjectExt> S } fn get_property_embedded(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "embedded".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_file(&self, file: Option<&str>) { @@ -409,10 +411,11 @@ impl + IsA + glib::object::ObjectExt> S } fn get_property_orientation(&self) -> Orientation { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "orientation".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 59811a75f7..37b0ff374e 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 3974cd1282..34145da8fb 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use CssSection; @@ -15,6 +15,8 @@ use ffi; use gdk; use glib; #[cfg(any(feature = "v3_8", feature = "dox"))] +use glib::StaticType; +#[cfg(any(feature = "v3_8", feature = "dox"))] use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -494,11 +496,12 @@ impl + IsA> StyleContextExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_paint_clock(&self) -> Option { - let mut value = Value::from(None::<&gdk::FrameClock>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paint-clock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_8", feature = "dox"))] diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index 087eff2617..06b3672163 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 92294b5423..c64bd002ab 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index ffaa9f21aa..022eb55b21 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 124501b83a..1a3f79afad 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index d398878f9f..4a7e7f6344 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index d74466af37..cd384e524a 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 6f3b2f77ad..f0d686b16e 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Clipboard; @@ -14,6 +14,7 @@ use gdk; use gdk_pixbuf; use gdk_pixbuf_ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -708,11 +709,12 @@ impl + IsA> TextBufferExt for O { } fn get_property_cursor_position(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn connect_apply_tag(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index c61d5b1f9c..d6a5bdd08d 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index 051112e303..f73bff5238 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index a0e834a90d..a871be4e8b 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index a094bcc9ec..f5662cf8c2 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Justification; @@ -9,6 +9,7 @@ use ffi; use gdk; use gdk_ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -510,11 +511,12 @@ impl + IsA> TextTagExt for O { } fn get_property_accumulative_margin(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accumulative-margin".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_accumulative_margin(&self, accumulative_margin: bool) { @@ -530,11 +532,12 @@ impl + IsA> TextTagExt for O { } fn get_property_background_full_height(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-full-height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_background_full_height(&self, background_full_height: bool) { @@ -544,11 +547,12 @@ impl + IsA> TextTagExt for O { } fn get_property_background_full_height_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-full-height-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_background_full_height_set(&self, background_full_height_set: bool) { @@ -558,11 +562,12 @@ impl + IsA> TextTagExt for O { } fn get_property_background_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_background_rgba(&self, background_rgba: Option<&gdk::RGBA>) { @@ -572,11 +577,12 @@ impl + IsA> TextTagExt for O { } fn get_property_background_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_background_set(&self, background_set: bool) { @@ -586,26 +592,27 @@ impl + IsA> TextTagExt for O { } fn get_property_direction(&self) -> TextDirection { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "direction".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_direction(&self, direction: TextDirection) { - let direction = direction.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "direction".to_glib_none().0, Value::from(&direction).to_glib_none().0); } } fn get_property_editable(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_editable(&self, editable: bool) { @@ -615,11 +622,12 @@ impl + IsA> TextTagExt for O { } fn get_property_editable_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_editable_set(&self, editable_set: bool) { @@ -630,11 +638,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_fallback(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "fallback".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -645,11 +654,12 @@ impl + IsA> TextTagExt for O { } fn get_property_fallback_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "fallback-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_fallback_set(&self, fallback_set: bool) { @@ -659,11 +669,12 @@ impl + IsA> TextTagExt for O { } fn get_property_family(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_family(&self, family: Option<&str>) { @@ -673,11 +684,12 @@ impl + IsA> TextTagExt for O { } fn get_property_family_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_family_set(&self, family_set: bool) { @@ -687,11 +699,12 @@ impl + IsA> TextTagExt for O { } fn get_property_font(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_font(&self, font: Option<&str>) { @@ -702,11 +715,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_property_font_features(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font-features".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_18", feature = "dox"))] @@ -717,11 +731,12 @@ impl + IsA> TextTagExt for O { } fn get_property_font_features_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font-features-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_font_features_set(&self, font_features_set: bool) { @@ -737,11 +752,12 @@ impl + IsA> TextTagExt for O { } fn get_property_foreground_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_foreground_rgba(&self, foreground_rgba: Option<&gdk::RGBA>) { @@ -751,11 +767,12 @@ impl + IsA> TextTagExt for O { } fn get_property_foreground_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_foreground_set(&self, foreground_set: bool) { @@ -765,11 +782,12 @@ impl + IsA> TextTagExt for O { } fn get_property_indent(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indent".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_indent(&self, indent: i32) { @@ -779,11 +797,12 @@ impl + IsA> TextTagExt for O { } fn get_property_indent_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indent-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_indent_set(&self, indent_set: bool) { @@ -793,11 +812,12 @@ impl + IsA> TextTagExt for O { } fn get_property_invisible(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_invisible(&self, invisible: bool) { @@ -807,11 +827,12 @@ impl + IsA> TextTagExt for O { } fn get_property_invisible_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_invisible_set(&self, invisible_set: bool) { @@ -821,26 +842,27 @@ impl + IsA> TextTagExt for O { } fn get_property_justification(&self) -> Justification { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "justification".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_justification(&self, justification: Justification) { - let justification = justification.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "justification".to_glib_none().0, Value::from(&justification).to_glib_none().0); } } fn get_property_justification_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "justification-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_justification_set(&self, justification_set: bool) { @@ -850,11 +872,12 @@ impl + IsA> TextTagExt for O { } fn get_property_language(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_language(&self, language: Option<&str>) { @@ -864,11 +887,12 @@ impl + IsA> TextTagExt for O { } fn get_property_language_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_language_set(&self, language_set: bool) { @@ -878,11 +902,12 @@ impl + IsA> TextTagExt for O { } fn get_property_left_margin(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-margin".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_left_margin(&self, left_margin: i32) { @@ -892,11 +917,12 @@ impl + IsA> TextTagExt for O { } fn get_property_left_margin_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-margin-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_left_margin_set(&self, left_margin_set: bool) { @@ -907,11 +933,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_letter_spacing(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "letter-spacing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -922,11 +949,12 @@ impl + IsA> TextTagExt for O { } fn get_property_letter_spacing_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "letter-spacing-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_letter_spacing_set(&self, letter_spacing_set: bool) { @@ -936,11 +964,12 @@ impl + IsA> TextTagExt for O { } fn get_property_name(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "name".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_paragraph_background(&self, paragraph_background: Option<&str>) { @@ -950,11 +979,12 @@ impl + IsA> TextTagExt for O { } fn get_property_paragraph_background_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paragraph-background-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_paragraph_background_rgba(&self, paragraph_background_rgba: Option<&gdk::RGBA>) { @@ -964,11 +994,12 @@ impl + IsA> TextTagExt for O { } fn get_property_paragraph_background_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paragraph-background-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_paragraph_background_set(&self, paragraph_background_set: bool) { @@ -978,11 +1009,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_above_lines(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-above-lines".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_above_lines(&self, pixels_above_lines: i32) { @@ -992,11 +1024,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_above_lines_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-above-lines-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool) { @@ -1006,11 +1039,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_below_lines(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-below-lines".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_below_lines(&self, pixels_below_lines: i32) { @@ -1020,11 +1054,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_below_lines_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-below-lines-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool) { @@ -1034,11 +1069,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_inside_wrap(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-inside-wrap".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32) { @@ -1048,11 +1084,12 @@ impl + IsA> TextTagExt for O { } fn get_property_pixels_inside_wrap_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-inside-wrap-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool) { @@ -1062,11 +1099,12 @@ impl + IsA> TextTagExt for O { } fn get_property_right_margin(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-margin".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_right_margin(&self, right_margin: i32) { @@ -1076,11 +1114,12 @@ impl + IsA> TextTagExt for O { } fn get_property_right_margin_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-margin-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_right_margin_set(&self, right_margin_set: bool) { @@ -1090,11 +1129,12 @@ impl + IsA> TextTagExt for O { } fn get_property_rise(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_rise(&self, rise: i32) { @@ -1104,11 +1144,12 @@ impl + IsA> TextTagExt for O { } fn get_property_rise_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_rise_set(&self, rise_set: bool) { @@ -1118,11 +1159,12 @@ impl + IsA> TextTagExt for O { } fn get_property_scale(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_scale(&self, scale: f64) { @@ -1132,11 +1174,12 @@ impl + IsA> TextTagExt for O { } fn get_property_scale_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_scale_set(&self, scale_set: bool) { @@ -1146,11 +1189,12 @@ impl + IsA> TextTagExt for O { } fn get_property_size(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size(&self, size: i32) { @@ -1160,11 +1204,12 @@ impl + IsA> TextTagExt for O { } fn get_property_size_points(&self) -> f64 { - let mut value = Value::from(&0f64); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-points".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size_points(&self, size_points: f64) { @@ -1174,11 +1219,12 @@ impl + IsA> TextTagExt for O { } fn get_property_size_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_size_set(&self, size_set: bool) { @@ -1188,26 +1234,27 @@ impl + IsA> TextTagExt for O { } fn get_property_stretch(&self) -> pango::Stretch { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_stretch(&self, stretch: pango::Stretch) { - let stretch = stretch.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "stretch".to_glib_none().0, Value::from(&stretch).to_glib_none().0); } } fn get_property_stretch_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_stretch_set(&self, stretch_set: bool) { @@ -1217,11 +1264,12 @@ impl + IsA> TextTagExt for O { } fn get_property_strikethrough(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_strikethrough(&self, strikethrough: bool) { @@ -1232,11 +1280,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_strikethrough_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -1248,11 +1297,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_strikethrough_rgba_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-rgba-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -1263,11 +1313,12 @@ impl + IsA> TextTagExt for O { } fn get_property_strikethrough_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_strikethrough_set(&self, strikethrough_set: bool) { @@ -1277,26 +1328,27 @@ impl + IsA> TextTagExt for O { } fn get_property_style(&self) -> pango::Style { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_style(&self, style: pango::Style) { - let style = style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "style".to_glib_none().0, Value::from(&style).to_glib_none().0); } } fn get_property_style_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_style_set(&self, style_set: bool) { @@ -1306,11 +1358,12 @@ impl + IsA> TextTagExt for O { } fn get_property_tabs_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tabs-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_tabs_set(&self, tabs_set: bool) { @@ -1320,15 +1373,15 @@ impl + IsA> TextTagExt for O { } fn get_property_underline(&self) -> pango::Underline { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_underline(&self, underline: pango::Underline) { - let underline = underline.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "underline".to_glib_none().0, Value::from(&underline).to_glib_none().0); } @@ -1336,11 +1389,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_underline_rgba(&self) -> Option { - let mut value = Value::from(None::<&gdk::RGBA>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -1352,11 +1406,12 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_underline_rgba_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-rgba-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -1367,11 +1422,12 @@ impl + IsA> TextTagExt for O { } fn get_property_underline_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_underline_set(&self, underline_set: bool) { @@ -1381,26 +1437,27 @@ impl + IsA> TextTagExt for O { } fn get_property_variant(&self) -> pango::Variant { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_variant(&self, variant: pango::Variant) { - let variant = variant.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "variant".to_glib_none().0, Value::from(&variant).to_glib_none().0); } } fn get_property_variant_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_variant_set(&self, variant_set: bool) { @@ -1410,11 +1467,12 @@ impl + IsA> TextTagExt for O { } fn get_property_weight(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_weight(&self, weight: i32) { @@ -1424,11 +1482,12 @@ impl + IsA> TextTagExt for O { } fn get_property_weight_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_weight_set(&self, weight_set: bool) { @@ -1438,26 +1497,27 @@ impl + IsA> TextTagExt for O { } fn get_property_wrap_mode(&self) -> WrapMode { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_wrap_mode(&self, wrap_mode: WrapMode) { - let wrap_mode = wrap_mode.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, Value::from(&wrap_mode).to_glib_none().0); } } fn get_property_wrap_mode_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_wrap_mode_set(&self, wrap_mode_set: bool) { diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index a3cae790d5..42e86578b6 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index c7fc454aaf..65678188c0 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -25,6 +25,7 @@ use WrapMode; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -796,11 +797,12 @@ impl + IsA + glib::object::ObjectExt> Tex } fn get_property_im_module(&self) -> Option { - let mut value = Value::from(None::<&str>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "im-module".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn set_property_im_module(&self, im_module: Option<&str>) { @@ -810,11 +812,12 @@ impl + IsA + glib::object::ObjectExt> Tex } fn get_property_monospace(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "monospace".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_monospace(&self, monospace: bool) { @@ -825,11 +828,12 @@ impl + IsA + glib::object::ObjectExt> Tex #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_populate_all(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } #[cfg(any(feature = "v3_8", feature = "dox"))] diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 1c8d8430e8..8efde6aa7b 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -9,6 +9,7 @@ use Container; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -131,11 +132,12 @@ impl + IsA> ToggleButtonExt for O { } fn get_property_draw_indicator(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "draw-indicator".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_draw_indicator(&self, draw_indicator: bool) { diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index e60094b823..56ed0a75ec 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 0b39d5c115..e703e989c2 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 832abd8a87..010da86e2f 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index b8549e724a..675a07ad5f 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -9,6 +9,7 @@ use ToolShell; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -198,11 +199,12 @@ impl + IsA + IsA> ToolIte } fn get_item_expand + IsA>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_expand + IsA>(&self, item: &T, expand: bool) { @@ -212,11 +214,12 @@ impl + IsA + IsA> ToolIte } fn get_item_fill + IsA>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "fill".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_fill + IsA>(&self, item: &T, fill: bool) { @@ -226,11 +229,12 @@ impl + IsA + IsA> ToolIte } fn get_item_homogeneous + IsA>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_homogeneous + IsA>(&self, item: &T, homogeneous: bool) { @@ -240,11 +244,12 @@ impl + IsA + IsA> ToolIte } fn get_item_new_row + IsA>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "new-row".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_new_row + IsA>(&self, item: &T, new_row: bool) { diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 8c1f84af79..448bf02812 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -16,6 +16,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -220,11 +221,12 @@ impl + IsA> ToolPaletteExt for O { } fn get_property_icon_size_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_icon_size_set(&self, icon_size_set: bool) { @@ -234,15 +236,15 @@ impl + IsA> ToolPaletteExt for O { } fn get_property_toolbar_style(&self) -> ToolbarStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_toolbar_style(&self, toolbar_style: ToolbarStyle) { - let toolbar_style = toolbar_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, Value::from(&toolbar_style).to_glib_none().0); } diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 2d7d44d7aa..8472ba4795 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 54a64a06c5..4481e9b088 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -12,6 +12,7 @@ use ToolbarStyle; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -194,11 +195,12 @@ impl + IsA + IsA + glib::object } fn get_property_icon_size_set(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_icon_size_set(&self, icon_size_set: bool) { @@ -208,26 +210,27 @@ impl + IsA + IsA + glib::object } fn get_property_toolbar_style(&self) -> ToolbarStyle { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_toolbar_style(&self, toolbar_style: ToolbarStyle) { - let toolbar_style = toolbar_style.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, Value::from(&toolbar_style).to_glib_none().0); } } fn get_item_expand>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_expand>(&self, item: &T, expand: bool) { @@ -237,11 +240,12 @@ impl + IsA + IsA + glib::object } fn get_item_homogeneous>(&self, item: &T) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_item_homogeneous>(&self, item: &T, homogeneous: bool) { diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 8bf9da7d79..795a0f65c4 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index f6a5fbafbb..9cb77050b0 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index de30b1b1dc..33d5a57be4 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index aad8c29c8b..61151beb82 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TreeIter; @@ -6,6 +6,7 @@ use TreeModel; use TreePath; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -115,11 +116,12 @@ impl + IsA> TreeModelFilterExt for //} fn get_property_child_model(&self) -> Option { - let mut value = Value::from(None::<&TreeModel>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "child-model".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_property_child_model_notify(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 6d5330061f..4136d4eeaf 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index 3ef2270332..cf3129c51d 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index b8989675f2..57cb49ee03 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 63d451dacd..9b21198609 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 65196f021d..ff182f5416 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 6b8bd56566..7964a2e67a 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -20,6 +20,7 @@ use cairo; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -959,15 +960,15 @@ impl + IsA + glib::object::ObjectExt> Tre } fn get_property_enable_grid_lines(&self) -> TreeViewGridLines { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-grid-lines".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines) { - let enable_grid_lines = enable_grid_lines.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "enable-grid-lines".to_glib_none().0, Value::from(&enable_grid_lines).to_glib_none().0); } diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index 66ef81c431..9cc36ba128 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 (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -13,6 +13,7 @@ use Widget; use ffi; use gdk; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -468,11 +469,12 @@ impl + IsA> TreeViewColumnExt for O } fn get_property_cell_area(&self) -> Option { - let mut value = Value::from(None::<&CellArea>); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); + value.get() } - value.get() } fn connect_clicked(&self, f: F) -> SignalHandlerId { diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index 9a319a41dc..2c1a9beeda 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 550bba4208..6b428654ff 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -11,6 +11,7 @@ use ScaleButton; use Widget; use ffi; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -57,11 +58,12 @@ pub trait VolumeButtonExt { impl + IsA> VolumeButtonExt for O { fn get_property_use_symbolic(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-symbolic".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_use_symbolic(&self, use_symbolic: bool) { diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 06b1be9fae..715da18dfe 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AccelFlags; @@ -29,6 +29,7 @@ use gdk_ffi; use gdk_pixbuf; use gio; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -2349,19 +2350,21 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_composite_child(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "composite-child".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_expand(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_expand(&self, expand: bool) { @@ -2371,11 +2374,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_has_default(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-default".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_has_default(&self, has_default: bool) { @@ -2385,11 +2389,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_has_focus(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-focus".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_has_focus(&self, has_focus: bool) { @@ -2399,11 +2404,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_height_request(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height-request".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_height_request(&self, height_request: i32) { @@ -2413,11 +2419,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_is_focus(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-focus".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_is_focus(&self, is_focus: bool) { @@ -2427,11 +2434,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_margin(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "margin".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_margin(&self, margin: i32) { @@ -2441,11 +2449,12 @@ impl + IsA + glib::object::ObjectExt> Widge } fn get_property_width_request(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width-request".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_width_request(&self, width_request: i32) { diff --git a/src/auto/window.rs b/src/auto/window.rs index c30bf19810..6db4225930 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -15,6 +15,7 @@ use ffi; use gdk; use gdk_pixbuf; use glib; +use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; @@ -1125,11 +1126,12 @@ impl + IsA + glib::object::ObjectExt> GtkWi } fn get_property_default_height(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "default-height".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_default_height(&self, default_height: i32) { @@ -1139,11 +1141,12 @@ impl + IsA + glib::object::ObjectExt> GtkWi } fn get_property_default_width(&self) -> i32 { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "default-width".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn set_property_default_width(&self, default_width: i32) { @@ -1153,55 +1156,60 @@ impl + IsA + glib::object::ObjectExt> GtkWi } fn get_property_has_toplevel_focus(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-toplevel-focus".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_is_active(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-active".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_is_maximized(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-maximized".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_resize_grip_visible(&self) -> bool { - let mut value = Value::from(&false); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "resize-grip-visible".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() } - value.get().unwrap() } fn get_property_type(&self) -> WindowType { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "type".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn get_property_window_position(&self) -> WindowPosition { - let mut value = Value::from(&0); unsafe { + let mut value = Value::uninitialized(); + gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-position".to_glib_none().0, value.to_glib_none_mut().0); - from_glib(transmute(value.get::().unwrap())) + value.get().unwrap() } } fn set_property_window_position(&self, window_position: WindowPosition) { - let window_position = window_position.to_glib() as i32; unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "window-position".to_glib_none().0, Value::from(&window_position).to_glib_none().0); } diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index 9834222c81..4c114af8b5 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d933f9a) from gir-files (469db10) +// This file was generated by gir (d50d839) from gir-files (469db10) // DO NOT EDIT use Widget; From e5969541da2b097e0ef3901ee1eac77ca2af99ed Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sun, 3 Dec 2017 10:58:57 +0300 Subject: [PATCH 005/210] Update gir submodule --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index d50d839cea..38add47f07 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit d50d839ceaed9cc5eabac729dbc161c295306270 +Subproject commit 38add47f079dc36a59983537b287fc0e6d65c849 From 8728d3777ab797f51f59814efbcb673ad7614146 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sun, 3 Dec 2017 09:16:38 +0300 Subject: [PATCH 006/210] Change version for Gtk.ButtonRole --- Gir.toml | 48 ++++++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/Gir.toml b/Gir.toml index 9697683da1..81fa739fd7 100644 --- a/Gir.toml +++ b/Gir.toml @@ -27,7 +27,6 @@ generate = [ "Gtk.Button", "Gtk.ButtonBox", "Gtk.ButtonBoxStyle", - "Gtk.ButtonRole", "Gtk.ButtonsType", "Gtk.Calendar", "Gtk.CalendarDisplayOptions", @@ -363,27 +362,6 @@ status = "generate" #manual trait ignore = true -[[object]] -name = "Gtk.IconTheme" -status = "generate" - [[object.function]] - name = "set_search_path" - ignore = true - [[object.function]] - name = "choose_icon" - ignore = true - [[object.function]] - name = "choose_icon_for_scale" - ignore = true - [[object.function]] - name = "get_icon_sizes" - #array - ignore = true - [[object.function]] - name = "get_search_path" - #array - ignore = true - [[object]] name = "Gtk.AboutDialog" status = "generate" @@ -493,6 +471,11 @@ status = "generate" pattern = "[gs]et_name" ignore = true +[[object]] +name = "Gtk.ButtonRole" +status = "generate" +version = "3.16" + [[object]] name = "Gtk.CellArea" status = "generate" @@ -829,6 +812,27 @@ status = "generate" name = "path" const = true +[[object]] +name = "Gtk.IconTheme" +status = "generate" + [[object.function]] + name = "set_search_path" + ignore = true + [[object.function]] + name = "choose_icon" + ignore = true + [[object.function]] + name = "choose_icon_for_scale" + ignore = true + [[object.function]] + name = "get_icon_sizes" + #array + ignore = true + [[object.function]] + name = "get_search_path" + #array + ignore = true + [[object]] name = "Gtk.Image" status = "generate" From 354e891e3981e2c0da3c2fc26defa44cbdd21d6c Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sun, 3 Dec 2017 09:18:45 +0300 Subject: [PATCH 007/210] Regen --- src/auto/about_dialog.rs | 2 +- src/auto/accel_group.rs | 2 +- src/auto/action_bar.rs | 8 +- src/auto/actionable.rs | 2 +- src/auto/adjustment.rs | 2 +- src/auto/alignment.rs | 26 +-- src/auto/app_chooser_dialog.rs | 5 +- src/auto/app_chooser_widget.rs | 2 +- src/auto/application.rs | 8 +- src/auto/application_window.rs | 2 +- src/auto/arrow.rs | 8 +- src/auto/aspect_frame.rs | 14 +- src/auto/assistant.rs | 17 +- src/auto/bin.rs | 2 +- src/auto/box_.rs | 17 +- src/auto/buildable.rs | 2 +- src/auto/builder.rs | 2 +- src/auto/button.rs | 8 +- src/auto/button_box.rs | 5 +- src/auto/calendar.rs | 26 +-- src/auto/cell_area.rs | 2 +- src/auto/cell_area_box.rs | 2 +- src/auto/cell_area_context.rs | 14 +- src/auto/cell_editable.rs | 5 +- src/auto/cell_layout.rs | 2 +- src/auto/cell_renderer.rs | 38 ++--- src/auto/cell_renderer_accel.rs | 14 +- src/auto/cell_renderer_combo.rs | 11 +- src/auto/cell_renderer_pixbuf.rs | 29 ++-- src/auto/cell_renderer_progress.rs | 20 +-- src/auto/cell_renderer_spin.rs | 11 +- src/auto/cell_renderer_spinner.rs | 11 +- src/auto/cell_renderer_text.rs | 122 +++++--------- src/auto/cell_renderer_toggle.rs | 8 +- src/auto/check_button.rs | 2 +- src/auto/check_menu_item.rs | 2 +- src/auto/clipboard.rs | 2 +- src/auto/color_button.rs | 8 +- src/auto/color_chooser.rs | 2 +- src/auto/color_chooser_dialog.rs | 5 +- src/auto/color_chooser_widget.rs | 5 +- src/auto/combo_box.rs | 14 +- src/auto/combo_box_text.rs | 2 +- src/auto/container.rs | 2 +- src/auto/css_provider.rs | 2 +- src/auto/css_section.rs | 2 +- src/auto/dialog.rs | 5 +- src/auto/drawing_area.rs | 2 +- src/auto/editable.rs | 2 +- src/auto/entry.rs | 89 ++++------ src/auto/entry_completion.rs | 5 +- src/auto/enums.rs | 9 +- 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_widget.rs | 8 +- src/auto/file_filter.rs | 2 +- src/auto/fixed.rs | 2 +- src/auto/flags.rs | 2 +- src/auto/flow_box.rs | 23 +-- 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 | 8 +- src/auto/functions.rs | 2 +- src/auto/gesture.rs | 7 +- src/auto/gesture_drag.rs | 2 +- src/auto/gesture_long_press.rs | 5 +- 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 | 17 +- src/auto/header_bar.rs | 26 +-- src/auto/i_m_context.rs | 8 +- src/auto/i_m_multicontext.rs | 2 +- src/auto/icon_factory.rs | 2 +- src/auto/icon_info.rs | 2 +- src/auto/icon_set.rs | 2 +- src/auto/icon_source.rs | 2 +- src/auto/icon_theme.rs | 2 +- src/auto/icon_view.rs | 5 +- src/auto/image.rs | 23 +-- src/auto/image_menu_item.rs | 2 +- src/auto/info_bar.rs | 2 +- src/auto/label.rs | 14 +- src/auto/layout.rs | 14 +- src/auto/level_bar.rs | 2 +- src/auto/link_button.rs | 2 +- src/auto/list_box.rs | 8 +- src/auto/list_box_row.rs | 2 +- src/auto/list_store.rs | 2 +- src/auto/menu.rs | 29 ++-- src/auto/menu_bar.rs | 2 +- src/auto/menu_button.rs | 2 +- src/auto/menu_item.rs | 5 +- src/auto/menu_shell.rs | 2 +- src/auto/menu_tool_button.rs | 2 +- src/auto/message_dialog.rs | 17 +- src/auto/misc.rs | 14 +- src/auto/mod.rs | 3 +- src/auto/model_button.rs | 26 +-- src/auto/notebook.rs | 29 ++-- src/auto/orientable.rs | 2 +- src/auto/overlay.rs | 5 +- src/auto/page_setup.rs | 2 +- src/auto/paned.rs | 17 +- src/auto/paper_size.rs | 2 +- src/auto/places_sidebar.rs | 29 ++-- src/auto/popover.rs | 8 +- src/auto/popover_menu.rs | 11 +- src/auto/print_context.rs | 2 +- src/auto/print_operation.rs | 32 ++-- 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 | 8 +- src/auto/revealer.rs | 14 +- src/auto/scale.rs | 2 +- src/auto/scale_button.rs | 8 +- src/auto/scrollable.rs | 2 +- src/auto/scrollbar.rs | 2 +- src/auto/scrolled_window.rs | 14 +- src/auto/search_bar.rs | 8 +- 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 | 248 ++++++++++------------------ src/auto/shortcuts_window.rs | 8 +- src/auto/size_group.rs | 2 +- src/auto/spin_button.rs | 5 +- src/auto/spinner.rs | 5 +- src/auto/stack.rs | 38 ++--- src/auto/stack_sidebar.rs | 5 +- src/auto/stack_switcher.rs | 8 +- src/auto/status_icon.rs | 8 +- src/auto/statusbar.rs | 2 +- src/auto/style_context.rs | 5 +- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 5 +- src/auto/text_child_anchor.rs | 2 +- src/auto/text_iter.rs | 2 +- src/auto/text_mark.rs | 2 +- src/auto/text_tag.rs | 200 ++++++++-------------- src/auto/text_tag_table.rs | 2 +- src/auto/text_view.rs | 11 +- src/auto/toggle_button.rs | 5 +- 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 | 14 +- src/auto/tool_palette.rs | 8 +- src/auto/tool_shell.rs | 2 +- src/auto/toolbar.rs | 14 +- src/auto/tooltip.rs | 2 +- src/auto/tree_iter.rs | 2 +- src/auto/tree_model.rs | 2 +- src/auto/tree_model_filter.rs | 5 +- 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 | 5 +- src/auto/tree_view_column.rs | 5 +- src/auto/viewport.rs | 2 +- src/auto/volume_button.rs | 5 +- src/auto/widget.rs | 26 +-- src/auto/window.rs | 26 +-- src/auto/window_group.rs | 2 +- 194 files changed, 705 insertions(+), 1184 deletions(-) diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 61fb3fd5fc..678067e884 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 9a5ddd4064..cc7b86322f 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 6a8c775cb7..bc85725edf 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -97,8 +97,7 @@ impl + IsA> ActionBarExt for O { fn get_child_pack_type>(&self, item: &T) -> PackType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -112,8 +111,7 @@ impl + IsA> ActionBarExt for O { fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 13595505f5..26301c8144 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index e383cd40ef..f9a9e0b2b8 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index a22cc9fe1e..91b8eb4cbe 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -120,8 +120,7 @@ impl + IsA> AlignmentExt for O { fn get_property_bottom_padding(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "bottom-padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -135,8 +134,7 @@ impl + IsA> AlignmentExt for O { fn get_property_left_padding(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -150,8 +148,7 @@ impl + IsA> AlignmentExt for O { fn get_property_right_padding(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -165,8 +162,7 @@ impl + IsA> AlignmentExt for O { fn get_property_top_padding(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "top-padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -180,8 +176,7 @@ impl + IsA> AlignmentExt for O { fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -195,8 +190,7 @@ impl + IsA> AlignmentExt for O { fn get_property_xscale(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xscale".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -210,8 +204,7 @@ impl + IsA> AlignmentExt for O { fn get_property_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -225,8 +218,7 @@ impl + IsA> AlignmentExt for O { fn get_property_yscale(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yscale".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 7d223eecab..2621c48fd4 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AppChooser; @@ -89,8 +89,7 @@ impl + IsA> AppChooserDialogExt f fn get_property_gfile(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gfile".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index 91f1711e5c..2fb8432979 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index 348529a2a0..dcc0f1b554 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ApplicationInhibitFlags; @@ -244,8 +244,7 @@ impl + IsA> GtkApplicationExt for O { fn get_property_active_window(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active-window".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -253,8 +252,7 @@ impl + IsA> GtkApplicationExt for O { fn get_property_register_session(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "register-session".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 1d30131337..1495153ddc 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index f14670d708..2d9456c8c3 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ArrowType; @@ -64,8 +64,7 @@ impl + IsA> ArrowExt for O { fn get_property_arrow_type(&self) -> ArrowType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "arrow-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -79,8 +78,7 @@ impl + IsA> ArrowExt for O { fn get_property_shadow_type(&self) -> ShadowType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 6fe555c27a..ffc5047e73 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -78,8 +78,7 @@ impl + IsA> AspectFrameExt for O { fn get_property_obey_child(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "obey-child".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -93,8 +92,7 @@ impl + IsA> AspectFrameExt for O { fn get_property_ratio(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ratio".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -108,8 +106,7 @@ impl + IsA> AspectFrameExt for O { fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -123,8 +120,7 @@ impl + IsA> AspectFrameExt for O { fn get_property_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index b13875363d..6f47f3b439 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AssistantPageType; @@ -272,8 +272,7 @@ impl + IsA + IsA + glib::obje #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_use_header_bar(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-header-bar".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -281,8 +280,7 @@ impl + IsA + IsA + glib::obje fn get_child_complete>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "complete".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -296,8 +294,7 @@ impl + IsA + IsA + glib::obje fn get_child_has_padding>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "has-padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -311,8 +308,7 @@ impl + IsA + IsA + glib::obje fn get_child_page_type>(&self, item: &T) -> AssistantPageType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "page-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -326,8 +322,7 @@ impl + IsA + IsA + glib::obje fn get_child_title>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 6de25ca908..7f8b8cc33d 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index c3fa7b2bb9..ee28d87f4f 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -202,8 +202,7 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_expand>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -219,8 +218,7 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_fill>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "fill".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -236,8 +234,7 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_pack_type>(&self, item: &T) -> PackType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -253,8 +250,7 @@ impl + IsA + IsA> BoxExt for O { #[doc(hidden)] fn get_child_padding>(&self, item: &T) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "padding".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -269,8 +265,7 @@ impl + IsA + IsA> BoxExt for O { fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 5e040454f5..5687d9418d 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 169e662429..1ade9e5d33 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 3067d6ec17..42811f4ea2 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -290,8 +290,7 @@ impl + IsA + glib::object::ObjectExt> Butto fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -305,8 +304,7 @@ impl + IsA + glib::object::ObjectExt> Butto fn get_property_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index 707fa34389..778166c7d0 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; @@ -100,8 +100,7 @@ impl + IsA> ButtonBoxExt for O { fn get_property_layout_style(&self) -> ButtonBoxStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "layout-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index b30a0e3b4b..f325027ef4 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -228,8 +228,7 @@ impl + IsA> CalendarExt for O { fn get_property_day(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "day".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -243,8 +242,7 @@ impl + IsA> CalendarExt for O { fn get_property_month(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "month".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -258,8 +256,7 @@ impl + IsA> CalendarExt for O { fn get_property_no_month_change(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "no-month-change".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -273,8 +270,7 @@ impl + IsA> CalendarExt for O { fn get_property_show_day_names(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-day-names".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -288,8 +284,7 @@ impl + IsA> CalendarExt for O { fn get_property_show_details(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-details".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -303,8 +298,7 @@ impl + IsA> CalendarExt for O { fn get_property_show_heading(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-heading".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -318,8 +312,7 @@ impl + IsA> CalendarExt for O { fn get_property_show_week_numbers(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-week-numbers".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -333,8 +326,7 @@ impl + IsA> CalendarExt for O { fn get_property_year(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "year".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 56b64a2abc..22cf454b6d 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 1cc2481694..79d8148927 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 71bff9516d..574b637d18 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellArea; @@ -144,8 +144,7 @@ impl + IsA> CellAreaContextExt for fn get_property_minimum_height(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "minimum-height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -153,8 +152,7 @@ impl + IsA> CellAreaContextExt for fn get_property_minimum_width(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "minimum-width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -162,8 +160,7 @@ impl + IsA> CellAreaContextExt for fn get_property_natural_height(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "natural-height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -171,8 +168,7 @@ impl + IsA> CellAreaContextExt for fn get_property_natural_width(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "natural-width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index f61b70c4b6..2e6ea8e458 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -68,8 +68,7 @@ impl + IsA> CellEditableExt for O { fn get_property_editing_canceled(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editing-canceled".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index 6b731e5f6c..eca5515ea3 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index b088628a82..1df3971d2c 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellEditable; @@ -342,8 +342,7 @@ impl + IsA> CellRendererExt for O { fn get_property_cell_background_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-background-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -357,8 +356,7 @@ impl + IsA> CellRendererExt for O { fn get_property_cell_background_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-background-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -372,8 +370,7 @@ impl + IsA> CellRendererExt for O { fn get_property_editing(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editing".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -381,8 +378,7 @@ impl + IsA> CellRendererExt for O { fn get_property_height(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -396,8 +392,7 @@ impl + IsA> CellRendererExt for O { fn get_property_is_expanded(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-expanded".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -411,8 +406,7 @@ impl + IsA> CellRendererExt for O { fn get_property_is_expander(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-expander".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -426,8 +420,7 @@ impl + IsA> CellRendererExt for O { fn get_property_mode(&self) -> CellRendererMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -441,8 +434,7 @@ impl + IsA> CellRendererExt for O { fn get_property_width(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -456,8 +448,7 @@ impl + IsA> CellRendererExt for O { fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -471,8 +462,7 @@ impl + IsA> CellRendererExt for O { fn get_property_xpad(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xpad".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -486,8 +476,7 @@ impl + IsA> CellRendererExt for O { fn get_property_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -501,8 +490,7 @@ impl + IsA> CellRendererExt for O { fn get_property_ypad(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ypad".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 30cd9d15ec..ca54c87bfd 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -80,8 +80,7 @@ pub trait CellRendererAccelExt { impl + IsA> CellRendererAccelExt for O { fn get_property_accel_key(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-key".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -95,8 +94,7 @@ impl + IsA> CellRendererAccelExt fn get_property_accel_mode(&self) -> CellRendererAccelMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -110,8 +108,7 @@ impl + IsA> CellRendererAccelExt fn get_property_accel_mods(&self) -> gdk::ModifierType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accel-mods".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -125,8 +122,7 @@ impl + IsA> CellRendererAccelExt fn get_property_keycode(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "keycode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 566fd198bc..4b9932b89a 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -71,8 +71,7 @@ pub trait CellRendererComboExt { impl + IsA> CellRendererComboExt for O { fn get_property_has_entry(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-entry".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -86,8 +85,7 @@ impl + IsA> CellRendererComboExt fn get_property_model(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "model".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -101,8 +99,7 @@ impl + IsA> CellRendererComboExt fn get_property_text_column(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-column".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index d0411d1880..01791b5f5e 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -102,8 +102,7 @@ pub trait CellRendererPixbufExt { impl + IsA> CellRendererPixbufExt for O { fn get_property_follow_state(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "follow-state".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -117,8 +116,7 @@ impl + IsA> CellRendererPixbufE fn get_property_gicon(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gicon".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -132,8 +130,7 @@ impl + IsA> CellRendererPixbufE fn get_property_icon_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -147,8 +144,7 @@ impl + IsA> CellRendererPixbufE fn get_property_pixbuf(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -162,8 +158,7 @@ impl + IsA> CellRendererPixbufE fn get_property_pixbuf_expander_closed(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-expander-closed".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -177,8 +172,7 @@ impl + IsA> CellRendererPixbufE fn get_property_pixbuf_expander_open(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-expander-open".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -192,8 +186,7 @@ impl + IsA> CellRendererPixbufE fn get_property_stock_detail(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-detail".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -207,8 +200,7 @@ impl + IsA> CellRendererPixbufE fn get_property_stock_id(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-id".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -222,8 +214,7 @@ impl + IsA> CellRendererPixbufE fn get_property_stock_size(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index edd5d231bd..a050bddfe1 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -83,8 +83,7 @@ pub trait CellRendererProgressExt { impl + IsA> CellRendererProgressExt for O { fn get_property_inverted(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inverted".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -98,8 +97,7 @@ impl + IsA> CellRendererProgr fn get_property_pulse(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pulse".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -113,8 +111,7 @@ impl + IsA> CellRendererProgr fn get_property_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -128,8 +125,7 @@ impl + IsA> CellRendererProgr fn get_property_text_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -143,8 +139,7 @@ impl + IsA> CellRendererProgr fn get_property_text_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -158,8 +153,7 @@ impl + IsA> CellRendererProgr fn get_property_value(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "value".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index f269570cfa..73210a2771 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -66,8 +66,7 @@ pub trait CellRendererSpinExt { impl + IsA> CellRendererSpinExt for O { fn get_property_adjustment(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "adjustment".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -81,8 +80,7 @@ impl + IsA> CellRendererSpinExt f fn get_property_climb_rate(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "climb-rate".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -96,8 +94,7 @@ impl + IsA> CellRendererSpinExt f fn get_property_digits(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "digits".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 93c547ec66..ce6e0d714b 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -65,8 +65,7 @@ pub trait CellRendererSpinnerExt { impl + IsA> CellRendererSpinnerExt for O { fn get_property_active(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -80,8 +79,7 @@ impl + IsA> CellRendererSpinne fn get_property_pulse(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pulse".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -95,8 +93,7 @@ impl + IsA> CellRendererSpinne fn get_property_size(&self) -> IconSize { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index 97325871e5..c416d26114 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -314,8 +314,7 @@ impl + IsA> CellRendererTextExt f fn get_property_align_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "align-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -335,8 +334,7 @@ impl + IsA> CellRendererTextExt f fn get_property_background_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -350,8 +348,7 @@ impl + IsA> CellRendererTextExt f fn get_property_background_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -365,8 +362,7 @@ impl + IsA> CellRendererTextExt f fn get_property_editable(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -380,8 +376,7 @@ impl + IsA> CellRendererTextExt f fn get_property_editable_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -395,8 +390,7 @@ impl + IsA> CellRendererTextExt f fn get_property_ellipsize(&self) -> pango::EllipsizeMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ellipsize".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -410,8 +404,7 @@ impl + IsA> CellRendererTextExt f fn get_property_ellipsize_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ellipsize-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -425,8 +418,7 @@ impl + IsA> CellRendererTextExt f fn get_property_family(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -440,8 +432,7 @@ impl + IsA> CellRendererTextExt f fn get_property_family_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -455,8 +446,7 @@ impl + IsA> CellRendererTextExt f fn get_property_font(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -476,8 +466,7 @@ impl + IsA> CellRendererTextExt f fn get_property_foreground_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -491,8 +480,7 @@ impl + IsA> CellRendererTextExt f fn get_property_foreground_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -506,8 +494,7 @@ impl + IsA> CellRendererTextExt f fn get_property_language(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -521,8 +508,7 @@ impl + IsA> CellRendererTextExt f fn get_property_language_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -542,8 +528,7 @@ impl + IsA> CellRendererTextExt f fn get_property_max_width_chars(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-width-chars".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -557,8 +542,7 @@ impl + IsA> CellRendererTextExt f fn get_property_placeholder_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "placeholder-text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -572,8 +556,7 @@ impl + IsA> CellRendererTextExt f fn get_property_rise(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -587,8 +570,7 @@ impl + IsA> CellRendererTextExt f fn get_property_rise_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -602,8 +584,7 @@ impl + IsA> CellRendererTextExt f fn get_property_scale(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -617,8 +598,7 @@ impl + IsA> CellRendererTextExt f fn get_property_scale_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -632,8 +612,7 @@ impl + IsA> CellRendererTextExt f fn get_property_single_paragraph_mode(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "single-paragraph-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -647,8 +626,7 @@ impl + IsA> CellRendererTextExt f fn get_property_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -662,8 +640,7 @@ impl + IsA> CellRendererTextExt f fn get_property_size_points(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-points".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -677,8 +654,7 @@ impl + IsA> CellRendererTextExt f fn get_property_size_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -692,8 +668,7 @@ impl + IsA> CellRendererTextExt f fn get_property_stretch(&self) -> pango::Stretch { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -707,8 +682,7 @@ impl + IsA> CellRendererTextExt f fn get_property_stretch_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -722,8 +696,7 @@ impl + IsA> CellRendererTextExt f fn get_property_strikethrough(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -737,8 +710,7 @@ impl + IsA> CellRendererTextExt f fn get_property_strikethrough_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -752,8 +724,7 @@ impl + IsA> CellRendererTextExt f fn get_property_style(&self) -> pango::Style { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -767,8 +738,7 @@ impl + IsA> CellRendererTextExt f fn get_property_style_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -782,8 +752,7 @@ impl + IsA> CellRendererTextExt f fn get_property_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -797,8 +766,7 @@ impl + IsA> CellRendererTextExt f fn get_property_underline(&self) -> pango::Underline { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -812,8 +780,7 @@ impl + IsA> CellRendererTextExt f fn get_property_underline_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -827,8 +794,7 @@ impl + IsA> CellRendererTextExt f fn get_property_variant(&self) -> pango::Variant { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -842,8 +808,7 @@ impl + IsA> CellRendererTextExt f fn get_property_variant_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -857,8 +822,7 @@ impl + IsA> CellRendererTextExt f fn get_property_weight(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -872,8 +836,7 @@ impl + IsA> CellRendererTextExt f fn get_property_weight_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -887,8 +850,7 @@ impl + IsA> CellRendererTextExt f fn get_property_width_chars(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width-chars".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -902,8 +864,7 @@ impl + IsA> CellRendererTextExt f fn get_property_wrap_mode(&self) -> pango::WrapMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -917,8 +878,7 @@ impl + IsA> CellRendererTextExt f fn get_property_wrap_width(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index da34a5f1f5..b6cfb9a5a9 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -116,8 +116,7 @@ impl + IsA> CellRendererToggleE fn get_property_inconsistent(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inconsistent".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -131,8 +130,7 @@ impl + IsA> CellRendererToggleE fn get_property_indicator_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indicator-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index 31a83ea9c3..ea81a290e5 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index ede1bed900..2704c5ee47 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 5f3a09c4cd..5bf6460d94 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index f12d7f05ab..3a007ecdbd 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -105,8 +105,7 @@ impl + IsA> ColorButtonExt for O { fn get_property_alpha(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "alpha".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -121,8 +120,7 @@ impl + IsA> ColorButtonExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_show_editor(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 43faac6eb3..27af095287 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 03c1b89c0e..9ac05885cc 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -56,8 +56,7 @@ pub trait ColorChooserDialogExt { impl + IsA> ColorChooserDialogExt for O { fn get_property_show_editor(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index 42c88ded96..a6315e15e6 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; @@ -57,8 +57,7 @@ pub trait ColorChooserWidgetExt { impl + IsA> ColorChooserWidgetExt for O { fn get_property_show_editor(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-editor".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index 3ce40938a8..d7ef327721 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -438,8 +438,7 @@ impl + IsA + glib::object::ObjectExt> Com fn get_property_cell_area(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -447,8 +446,7 @@ impl + IsA + glib::object::ObjectExt> Com fn get_property_has_frame(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-frame".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -462,8 +460,7 @@ impl + IsA + glib::object::ObjectExt> Com fn get_property_popup_shown(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "popup-shown".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -471,8 +468,7 @@ impl + IsA + glib::object::ObjectExt> Com fn get_property_tearoff_title(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tearoff-title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index 1037e2898a..bfea9d13f0 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index a7e0c77ad9..7b1953f71b 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 1bb00d5e98..77c1567bc7 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index aff048c793..e022e4f2a4 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index b004e18cab..4b6d82da46 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -182,8 +182,7 @@ impl + IsA + glib::object::ObjectExt> Dialo #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_use_header_bar(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-header-bar".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index 55aaf1c85c..b315e93402 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index 13619cef4a..4c1a378a2f 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 79cfc6dff1..474fa47046 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -953,8 +953,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_caps_lock_warning(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "caps-lock-warning".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -968,8 +967,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_cursor_position(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -977,8 +975,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_im_module(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "im-module".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -992,8 +989,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_invisible_char_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible-char-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1008,8 +1004,7 @@ impl + IsA + glib::object::ObjectExt> EntryE #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_populate_all(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1024,8 +1019,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_activatable(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-activatable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1039,8 +1033,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_gicon(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-gicon".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1054,8 +1047,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1069,8 +1061,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_pixbuf(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-pixbuf".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1084,8 +1075,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_sensitive(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-sensitive".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1099,8 +1089,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_stock(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-stock".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1114,8 +1103,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_storage_type(&self) -> ImageType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-storage-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1123,8 +1111,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_tooltip_markup(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-tooltip-markup".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1138,8 +1125,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_primary_icon_tooltip_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "primary-icon-tooltip-text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1153,8 +1139,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_scroll_offset(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scroll-offset".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1162,8 +1147,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_activatable(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-activatable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1177,8 +1161,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_gicon(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-gicon".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1192,8 +1175,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1207,8 +1189,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_pixbuf(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-pixbuf".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1222,8 +1203,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_sensitive(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-sensitive".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1237,8 +1217,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_stock(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-stock".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1252,8 +1231,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_storage_type(&self) -> ImageType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-storage-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1261,8 +1239,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_tooltip_markup(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-tooltip-markup".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1276,8 +1253,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_secondary_icon_tooltip_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-icon-tooltip-text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1291,8 +1267,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_selection_bound(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-bound".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1300,8 +1275,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_shadow_type(&self) -> ShadowType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "shadow-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1315,8 +1289,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_show_emoji_icon(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-emoji-icon".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1330,8 +1303,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_truncate_multiline(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "truncate-multiline".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1345,8 +1317,7 @@ impl + IsA + glib::object::ObjectExt> EntryE fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index fd7591fdd4..57efba4c40 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -291,8 +291,7 @@ impl + IsA> EntryCompletionExt for fn get_property_cell_area(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 5f39ee4530..7ee43052e8 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; @@ -472,6 +472,7 @@ impl SetValue for ButtonBoxStyle { } } +#[cfg(any(feature = "v3_16", feature = "dox"))] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum ButtonRole { Normal, @@ -481,6 +482,7 @@ pub enum ButtonRole { __Unknown(i32), } +#[cfg(any(feature = "v3_16", feature = "dox"))] #[doc(hidden)] impl ToGlib for ButtonRole { type GlibType = ffi::GtkButtonRole; @@ -495,6 +497,7 @@ impl ToGlib for ButtonRole { } } +#[cfg(any(feature = "v3_16", feature = "dox"))] #[doc(hidden)] impl FromGlib for ButtonRole { fn from_glib(value: ffi::GtkButtonRole) -> Self { @@ -508,24 +511,28 @@ impl FromGlib for ButtonRole { } } +#[cfg(any(feature = "v3_16", feature = "dox"))] impl StaticType for ButtonRole { fn static_type() -> Type { unsafe { from_glib(ffi::gtk_button_role_get_type()) } } } +#[cfg(any(feature = "v3_16", feature = "dox"))] impl<'a> FromValueOptional<'a> for ButtonRole { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg(any(feature = "v3_16", feature = "dox"))] impl<'a> FromValue<'a> for ButtonRole { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } +#[cfg(any(feature = "v3_16", feature = "dox"))] impl SetValue for ButtonRole { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index b22d869399..f769eea17a 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index b2a9d0703e..67593dd890 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index cafe3c1a3a..30487c44f5 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 9015515edf..57c8d1e279 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index 2395ec9843..cb657092e5 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index 5123fcc53a..d5bab5a1aa 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index a784b48002..755885a12d 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; @@ -105,8 +105,7 @@ pub trait FileChooserWidgetExt { impl + IsA + glib::object::ObjectExt> FileChooserWidgetExt for O { fn get_property_search_mode(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "search-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -120,8 +119,7 @@ impl + IsA + glib::object::Objec fn get_property_subtitle(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "subtitle".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index b0e7dec84d..a408077410 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index 866859378b..37c52f0483 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index b249d63fa0..5dd45b37c2 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 415d56f5ba..3c38f06f97 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -415,8 +415,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_activate_on_single_click(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "activate-on-single-click".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -430,8 +429,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_column_spacing(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "column-spacing".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -445,8 +443,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_homogeneous(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -460,8 +457,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_max_children_per_line(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-children-per-line".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -475,8 +471,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_min_children_per_line(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-children-per-line".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -490,8 +485,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_row_spacing(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "row-spacing".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -505,8 +499,7 @@ impl + IsA + glib::object::ObjectExt> Flow fn get_property_selection_mode(&self) -> SelectionMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index 111ce90919..a278e2ad82 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index 5a3f84955a..e1cf5dfda5 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 5b719b8ee1..a5aa2c8710 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index dc8f701579..1299391a46 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index fcc69ca8a2..9556954da9 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index 874b11128d..bf7cc4d320 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -135,8 +135,7 @@ impl + IsA> FrameExt for O { fn get_property_label_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "label-xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -150,8 +149,7 @@ impl + IsA> FrameExt for O { fn get_property_label_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "label-yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 4dbb1b3040..f0bd95a51d 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index a6cd412ecd..62b8213f22 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; @@ -50,6 +50,7 @@ pub trait GestureExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_group(&self) -> Vec; + //#[cfg(any(feature = "v3_14", feature = "dox"))] //fn get_last_event(&self, sequence: /*Ignored*/&gdk::EventSequence) -> Option; //#[cfg(any(feature = "v3_14", feature = "dox"))] @@ -153,6 +154,7 @@ impl + IsA> GestureExt for O { } } + //#[cfg(any(feature = "v3_14", feature = "dox"))] //fn get_last_event(&self, sequence: /*Ignored*/&gdk::EventSequence) -> Option { // unsafe { TODO: call ffi::gtk_gesture_get_last_event() } //} @@ -248,8 +250,7 @@ impl + IsA> GestureExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_n_points(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "n-points".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 5555aad84c..a3e9cd28eb 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index fb4e6a5aa1..134eff1522 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; @@ -59,8 +59,7 @@ pub trait GestureLongPressExt { impl + IsA> GestureLongPressExt for O { fn get_property_delay_factor(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "delay-factor".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index 3f389bfd70..a2c529cc60 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index 643d8cecd2..beef86a27d 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index 590bd181df..e76934e378 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 190cac9a13..a90aa2a4a5 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 9be9162f82..1c3ba4ddac 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 29bde0ac23..e27450ae27 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index d49e88d609..2cd6592d4b 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index a05883459b..f5b0307d67 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -256,8 +256,7 @@ impl + IsA + IsA> GridExt for O { fn get_property_baseline_row(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "baseline-row".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -271,8 +270,7 @@ impl + IsA + IsA> GridExt for O { fn get_cell_height>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -286,8 +284,7 @@ impl + IsA + IsA> GridExt for O { fn get_cell_width>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -301,8 +298,7 @@ impl + IsA + IsA> GridExt for O { fn get_cell_left_attach>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "left-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -316,8 +312,7 @@ impl + IsA + IsA> GridExt for O { fn get_cell_top_attach>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "top-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 2af58b1d75..aa175c9b16 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -252,8 +252,7 @@ impl + IsA + IsA> HeaderBarEx fn get_property_custom_title(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "custom-title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -268,8 +267,7 @@ impl + IsA + IsA> HeaderBarEx #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_decoration_layout_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "decoration-layout-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -284,8 +282,7 @@ impl + IsA + IsA> HeaderBarEx fn get_property_show_close_button(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-close-button".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -299,8 +296,7 @@ impl + IsA + IsA> HeaderBarEx fn get_property_spacing(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "spacing".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -314,8 +310,7 @@ impl + IsA + IsA> HeaderBarEx fn get_property_subtitle(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "subtitle".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -329,8 +324,7 @@ impl + IsA + IsA> HeaderBarEx fn get_property_title(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -344,8 +338,7 @@ impl + IsA + IsA> HeaderBarEx fn get_child_pack_type>(&self, item: &T) -> PackType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "pack-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -359,8 +352,7 @@ impl + IsA + IsA> HeaderBarEx fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index 616d7800ef..e5a7a867c6 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -168,8 +168,7 @@ impl + IsA> IMContextExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_input_hints(&self) -> InputHints { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "input-hints".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -185,8 +184,7 @@ impl + IsA> IMContextExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_input_purpose(&self) -> InputPurpose { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "input-purpose".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index 94040dcbec..e6449469f1 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 4c36cfea77..078b224275 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index b9f93a5af4..f5e642387a 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 406163d46b..5ebb9bc101 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index 85c4ae0a08..b648e8b3b5 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 0a47c89e71..0fc4b6f327 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 2936a23cdb..5151e41f84 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -652,8 +652,7 @@ impl + IsA + glib::object::ObjectExt> Ico fn get_property_cell_area(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/image.rs b/src/auto/image.rs index 5f62b6f46a..892e242bef 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -332,8 +332,7 @@ impl + IsA> ImageExt for O { fn get_property_file(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "file".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -353,8 +352,7 @@ impl + IsA> ImageExt for O { fn get_property_icon_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -368,8 +366,7 @@ impl + IsA> ImageExt for O { fn get_property_icon_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -389,8 +386,7 @@ impl + IsA> ImageExt for O { fn get_property_pixbuf_animation(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixbuf-animation".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -405,8 +401,7 @@ impl + IsA> ImageExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_resource(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "resource".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -421,8 +416,7 @@ impl + IsA> ImageExt for O { fn get_property_stock(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stock".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -436,8 +430,7 @@ impl + IsA> ImageExt for O { fn get_property_use_fallback(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-fallback".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 095dd684f2..8016f8daee 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 2ed30c7fbe..6b85efb16c 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/label.rs b/src/auto/label.rs index 70b87e5014..3f6b10a40b 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -540,8 +540,7 @@ impl + IsA + glib::object::ObjectExt> LabelE fn get_property_cursor_position(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -549,8 +548,7 @@ impl + IsA + glib::object::ObjectExt> LabelE fn get_property_selection_bound(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-bound".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -558,8 +556,7 @@ impl + IsA + glib::object::ObjectExt> LabelE fn get_property_wrap(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -573,8 +570,7 @@ impl + IsA + glib::object::ObjectExt> LabelE fn get_property_wrap_mode(&self) -> pango::WrapMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 60388bf8ec..3e78d79a8a 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -112,8 +112,7 @@ impl + IsA + IsA> LayoutExt for fn get_property_height(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -127,8 +126,7 @@ impl + IsA + IsA> LayoutExt for fn get_property_width(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -142,8 +140,7 @@ impl + IsA + IsA> LayoutExt for fn get_child_x>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "x".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -157,8 +154,7 @@ impl + IsA + IsA> LayoutExt for fn get_child_y>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "y".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 7621fd87b4..3f812ee13a 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 4861f42d35..f7cb505158 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index c50cb0dc01..04157da6eb 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -368,8 +368,7 @@ impl + IsA + glib::object::ObjectExt> List fn get_property_activate_on_single_click(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "activate-on-single-click".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -383,8 +382,7 @@ impl + IsA + glib::object::ObjectExt> List fn get_property_selection_mode(&self) -> SelectionMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "selection-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index c5481c44fb..49f09e20c8 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 0ab614d92a..aed5a94231 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index d197c5f0f8..8eb4bd5551 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -388,8 +388,7 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_anchor_hints(&self) -> gdk::AnchorHints { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "anchor-hints".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -411,8 +410,7 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_menu_type_hint(&self) -> gdk::WindowTypeHint { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "menu-type-hint".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -428,8 +426,7 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_rect_anchor_dx(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rect-anchor-dx".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -445,8 +442,7 @@ impl + IsA + IsA + glib::object::O #[cfg(any(feature = "v3_22", feature = "dox"))] fn get_property_rect_anchor_dy(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rect-anchor-dy".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -461,8 +457,7 @@ impl + IsA + IsA + glib::object::O fn get_property_tearoff_title(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tearoff-title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -476,8 +471,7 @@ impl + IsA + IsA + glib::object::O fn get_item_bottom_attach + IsA>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "bottom-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -491,8 +485,7 @@ impl + IsA + IsA + glib::object::O fn get_item_left_attach + IsA>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "left-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -506,8 +499,7 @@ impl + IsA + IsA + glib::object::O fn get_item_right_attach + IsA>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "right-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -521,8 +513,7 @@ impl + IsA + IsA + glib::object::O fn get_item_top_attach + IsA>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "top-attach".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 42112c844e..4ec2186f29 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 33c8d1acc2..3eb653d80a 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index 8c6298fef6..59b9e76fb1 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -210,8 +210,7 @@ impl + IsA + glib::object::ObjectExt> Men fn get_property_right_justified(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-justified".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 11bcdbd984..51ade06a2d 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index f09d88a737..152fadc57d 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index f0277c2367..74723cabb0 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -127,8 +127,7 @@ impl + IsA> MessageDialogExt for O { fn get_property_message_type(&self) -> MessageType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "message-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -142,8 +141,7 @@ impl + IsA> MessageDialogExt for O { fn get_property_secondary_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -157,8 +155,7 @@ impl + IsA> MessageDialogExt for O { fn get_property_secondary_use_markup(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "secondary-use-markup".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -172,8 +169,7 @@ impl + IsA> MessageDialogExt for O { fn get_property_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -187,8 +183,7 @@ impl + IsA> MessageDialogExt for O { fn get_property_use_markup(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-markup".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 4d62724e90..4e41cd4699 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -94,8 +94,7 @@ impl + IsA> MiscExt for O { fn get_property_xalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -109,8 +108,7 @@ impl + IsA> MiscExt for O { fn get_property_xpad(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "xpad".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -124,8 +122,7 @@ impl + IsA> MiscExt for O { fn get_property_yalign(&self) -> f32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "yalign".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -139,8 +136,7 @@ impl + IsA> MiscExt for O { fn get_property_ypad(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "ypad".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/mod.rs b/src/auto/mod.rs index c3b576bc32..73ca3943fe 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT mod about_dialog; @@ -833,6 +833,7 @@ pub use self::enums::AssistantPageType; pub use self::enums::BaselinePosition; pub use self::enums::BuilderError; pub use self::enums::ButtonBoxStyle; +#[cfg(any(feature = "v3_16", feature = "dox"))] pub use self::enums::ButtonRole; pub use self::enums::ButtonsType; pub use self::enums::CellRendererAccelMode; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index a1b56b0f3f..829b8b8075 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -136,8 +136,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_active(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -153,8 +152,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_centered(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "centered".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -170,8 +168,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_icon(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -187,8 +184,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_iconic(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "iconic".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -204,8 +200,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_inverted(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "inverted".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -221,8 +216,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_menu_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "menu-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -238,8 +232,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_role(&self) -> ButtonRole { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "role".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -255,8 +248,7 @@ impl + IsA> ModelButtonExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_text(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "text".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index a8d7cc0097..0247e3c64b 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -387,8 +387,7 @@ impl + IsA + IsA + glib::objec fn get_property_enable_popup(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-popup".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -402,8 +401,7 @@ impl + IsA + IsA + glib::objec fn get_property_page(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "page".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -418,8 +416,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_detachable>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "detachable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -435,8 +432,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_menu_label>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "menu-label".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -453,8 +449,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -470,8 +465,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_reorderable>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "reorderable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -487,8 +481,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_expand>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -504,8 +497,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_fill>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-fill".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -521,8 +513,7 @@ impl + IsA + IsA + glib::objec #[doc(hidden)] fn get_child_tab_label>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "tab-label".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index eff5a460c5..bec2c2154a 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index bc846b8921..1ea5fa8e4c 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -88,8 +88,7 @@ impl + IsA> OverlayExt for O { fn get_child_index>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "index".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 175ced1db9..3aa8201874 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index 25df29b83c..5a0de4503c 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -189,8 +189,7 @@ impl + IsA + IsA + glib::object:: fn get_property_max_position(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "max-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -198,8 +197,7 @@ impl + IsA + IsA + glib::object:: fn get_property_min_position(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "min-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -207,8 +205,7 @@ impl + IsA + IsA + glib::object:: fn get_property_position_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "position-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -222,8 +219,7 @@ impl + IsA + IsA + glib::object:: fn get_child_resize>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "resize".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -237,8 +233,7 @@ impl + IsA + IsA + glib::object:: fn get_child_shrink>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "shrink".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index 5c168f16a8..f5895ae747 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 27b516e772..77fed23e34 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -380,8 +380,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_local_only(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "local-only".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -395,8 +394,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_location(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "location".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -410,8 +408,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_open_flags(&self) -> PlacesOpenFlags { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "open-flags".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -426,8 +423,7 @@ impl + IsA> PlacesSidebarExt for O { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_property_populate_all(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -448,8 +444,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_show_desktop(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-desktop".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -463,8 +458,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_show_enter_location(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-enter-location".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -478,8 +472,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_show_other_locations(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-other-locations".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -493,8 +486,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_show_recent(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-recent".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -508,8 +500,7 @@ impl + IsA> PlacesSidebarExt for O { fn get_property_show_trash(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-trash".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 30079846c3..8a42b1f027 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -6,9 +6,11 @@ use Buildable; use Container; #[cfg(any(feature = "v3_20", feature = "dox"))] use PopoverConstraint; +#[cfg(any(feature = "v3_12", feature = "dox"))] use PositionType; use Widget; use ffi; +#[cfg(any(feature = "v3_12", feature = "dox"))] use gdk; #[cfg(any(feature = "v3_12", feature = "dox"))] use gio; @@ -68,8 +70,10 @@ pub trait PopoverExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_modal(&self) -> bool; + #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_pointing_to(&self) -> Option; + #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_position(&self) -> PositionType; #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -159,6 +163,7 @@ impl + IsA> PopoverExt for O { } } + #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_pointing_to(&self) -> Option { unsafe { let mut rect = gdk::Rectangle::uninitialized(); @@ -167,6 +172,7 @@ impl + IsA> PopoverExt for O { } } + #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_position(&self) -> PositionType { unsafe { from_glib(ffi::gtk_popover_get_position(self.to_glib_none().0)) diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 69fd092721..03281e6762 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -76,8 +76,7 @@ impl + IsA + IsA> PopoverMe fn get_property_visible_submenu(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-submenu".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -91,8 +90,7 @@ impl + IsA + IsA> PopoverMe fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -106,8 +104,7 @@ impl + IsA + IsA> PopoverMe fn get_child_submenu>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "submenu".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index dcf8da2c90..f9911c6d53 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index b8e5cffefb..926894a437 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; @@ -380,8 +380,7 @@ impl + IsA> PrintOperationExt for O fn get_property_allow_async(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "allow-async".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -389,8 +388,7 @@ impl + IsA> PrintOperationExt for O fn get_property_current_page(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "current-page".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -398,8 +396,7 @@ impl + IsA> PrintOperationExt for O fn get_property_custom_tab_label(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "custom-tab-label".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -407,8 +404,7 @@ impl + IsA> PrintOperationExt for O fn get_property_export_filename(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "export-filename".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -416,8 +412,7 @@ impl + IsA> PrintOperationExt for O fn get_property_job_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "job-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -425,8 +420,7 @@ impl + IsA> PrintOperationExt for O fn get_property_n_pages(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "n-pages".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -434,8 +428,7 @@ impl + IsA> PrintOperationExt for O fn get_property_show_progress(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-progress".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -443,8 +436,7 @@ impl + IsA> PrintOperationExt for O fn get_property_track_print_status(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "track-print-status".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -452,8 +444,7 @@ impl + IsA> PrintOperationExt for O fn get_property_unit(&self) -> Unit { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "unit".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -461,8 +452,7 @@ impl + IsA> PrintOperationExt for O fn get_property_use_full_page(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-full-page".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 776389a7f3..3d14d3e641 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 7034137929..dde194235e 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index d768efd941..45d01c4955 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 7f313d5306..e1cc21fb35 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index e2639150ea..1608c90063 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 552fa023da..052ad8fbba 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index d328c3679f..4ecb383233 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index cd8f658388..476ee0bf41 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 6df21922b3..22e89cb4e8 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 0afdda3145..28ed7e57a1 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index 0b45bf87ed..9c1643f07d 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 290561009c..6d398c46cb 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index dde07dcfd2..4918165e5b 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Error; @@ -139,8 +139,7 @@ impl + IsA> RecentManagerExt for O { fn get_property_filename(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "filename".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -148,8 +147,7 @@ impl + IsA> RecentManagerExt for O { fn get_property_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index cb89de69a8..1531e4dbcd 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -144,8 +144,7 @@ impl + IsA> RevealerExt for O { fn get_property_child_revealed(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "child-revealed".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -153,8 +152,7 @@ impl + IsA> RevealerExt for O { fn get_property_reveal_child(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "reveal-child".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -168,8 +166,7 @@ impl + IsA> RevealerExt for O { fn get_property_transition_duration(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-duration".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -183,8 +180,7 @@ impl + IsA> RevealerExt for O { fn get_property_transition_type(&self) -> RevealerTransitionType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/scale.rs b/src/auto/scale.rs index b3cabdd38d..6de5f222e9 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index a83bf91fe5..2884394f5a 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -137,8 +137,7 @@ impl + IsA + glib::object::ObjectExt> fn get_property_icons(&self) -> Vec { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, as StaticType>::static_type().to_glib()); + let mut value = Value::from_type( as StaticType>::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icons".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -146,8 +145,7 @@ impl + IsA + glib::object::ObjectExt> fn get_property_size(&self) -> IconSize { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index d91379375d..c6c0de5536 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 0e4421ef7a..ab4d4069b1 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index 59235ee2e1..a331ab32c2 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -399,8 +399,7 @@ impl + IsA + glib::object::ObjectEx fn get_property_hscrollbar_policy(&self) -> PolicyType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "hscrollbar-policy".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -414,8 +413,7 @@ impl + IsA + glib::object::ObjectEx fn get_property_vscrollbar_policy(&self) -> PolicyType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "vscrollbar-policy".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -429,8 +427,7 @@ impl + IsA + glib::object::ObjectEx fn get_property_window_placement(&self) -> CornerType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-placement".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -444,8 +441,7 @@ impl + IsA + glib::object::ObjectEx fn get_property_window_placement_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-placement-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index 135ede7c10..b10c65ee77 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -127,8 +127,7 @@ impl + IsA> SearchBarExt for O { fn get_property_search_mode_enabled(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "search-mode-enabled".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -142,8 +141,7 @@ impl + IsA> SearchBarExt for O { fn get_property_show_close_button(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "show-close-button".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index aeb59aaab0..64d3dd5367 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index fc9c7ad0ed..94b7640d8d 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 737724227f..59713e2694 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index 43f4a84aba..0d004e6b20 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index c15b5f4b6f..c6b58bdba0 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index eed60a8e6e..a02cf8e78c 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CornerType; @@ -620,8 +620,7 @@ impl + IsA> SettingsExt for O { //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 } { // unsafe { - // let mut value = Value::uninitialized(); - // gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + // let mut value = Value::from_type(::static_type()); // gobject_ffi::g_object_get_property(self.to_glib_none().0, "color-hash".to_glib_none().0, value.to_glib_none_mut().0); // value.get().unwrap() // } @@ -629,8 +628,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_alternative_button_order(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-alternative-button-order".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -644,8 +642,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_alternative_sort_arrows(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-alternative-sort-arrows".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -659,8 +656,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_application_prefer_dark_theme(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-application-prefer-dark-theme".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -674,8 +670,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_auto_mnemonics(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-auto-mnemonics".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -689,8 +684,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_button_images(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-button-images".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -704,8 +698,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_can_change_accels(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-can-change-accels".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -719,8 +712,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_color_palette(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-color-palette".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -734,8 +726,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_color_scheme(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-color-scheme".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -749,8 +740,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_cursor_blink(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -764,8 +754,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_cursor_blink_time(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink-time".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -779,8 +768,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_cursor_blink_timeout(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-blink-timeout".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -794,8 +782,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_cursor_theme_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-theme-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -809,8 +796,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_cursor_theme_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-cursor-theme-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -825,8 +811,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_gtk_decoration_layout(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-decoration-layout".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -842,8 +827,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_property_gtk_dialogs_use_header(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-dialogs-use-header".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -858,8 +842,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_dnd_drag_threshold(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-dnd-drag-threshold".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -873,8 +856,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_double_click_distance(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-double-click-distance".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -888,8 +870,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_double_click_time(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-double-click-time".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -903,8 +884,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_accels(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-accels".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -918,8 +898,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_animations(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-animations".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -933,8 +912,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_event_sounds(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-event-sounds".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -948,8 +926,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_input_feedback_sounds(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-input-feedback-sounds".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -963,8 +940,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_mnemonics(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-mnemonics".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -978,8 +954,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_primary_paste(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-primary-paste".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -993,8 +968,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_enable_tooltips(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-enable-tooltips".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1008,8 +982,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_entry_password_hint_timeout(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-entry-password-hint-timeout".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1023,8 +996,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_entry_select_on_focus(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-entry-select-on-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1038,8 +1010,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_error_bell(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-error-bell".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1053,8 +1024,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_fallback_icon_theme(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-fallback-icon-theme".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1068,8 +1038,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_file_chooser_backend(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-file-chooser-backend".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1083,8 +1052,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_font_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-font-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1098,8 +1066,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_fontconfig_timestamp(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-fontconfig-timestamp".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1113,8 +1080,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_icon_sizes(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-icon-sizes".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1128,8 +1094,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_icon_theme_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-icon-theme-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1143,8 +1108,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_im_module(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-module".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1158,8 +1122,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_im_preedit_style(&self) -> IMPreeditStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-preedit-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1173,8 +1136,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_im_status_style(&self) -> IMStatusStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-im-status-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1188,8 +1150,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_key_theme_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-key-theme-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1203,8 +1164,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_keynav_cursor_only(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-cursor-only".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1219,8 +1179,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_gtk_keynav_use_caret(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-use-caret".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1235,8 +1194,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_keynav_wrap_around(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-keynav-wrap-around".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1250,8 +1208,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_label_select_on_focus(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-label-select-on-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1266,8 +1223,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_long_press_time(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-long-press-time".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1282,8 +1238,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_menu_bar_accel(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-bar-accel".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1297,8 +1252,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_menu_bar_popup_delay(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-bar-popup-delay".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1312,8 +1266,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_menu_images(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-images".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1327,8 +1280,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_menu_popdown_delay(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-popdown-delay".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1342,8 +1294,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_menu_popup_delay(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-menu-popup-delay".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1357,8 +1308,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_modules(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-modules".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1373,8 +1323,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_6", feature = "dox"))] fn get_property_gtk_primary_button_warps_slider(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-primary-button-warps-slider".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1389,8 +1338,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_print_backends(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-print-backends".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1404,8 +1352,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_print_preview_command(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-print-preview-command".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1420,8 +1367,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_gtk_recent_files_enabled(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-enabled".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1436,8 +1382,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_recent_files_limit(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-limit".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1451,8 +1396,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_recent_files_max_age(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-recent-files-max-age".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1466,8 +1410,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_scrolled_window_placement(&self) -> CornerType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-scrolled-window-placement".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1481,8 +1424,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_shell_shows_app_menu(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-app-menu".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1496,8 +1438,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_shell_shows_desktop(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-desktop".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1511,8 +1452,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_shell_shows_menubar(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-shell-shows-menubar".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1526,8 +1466,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_show_input_method_menu(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-show-input-method-menu".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1541,8 +1480,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_show_unicode_menu(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-show-unicode-menu".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1556,8 +1494,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_sound_theme_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-sound-theme-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1571,8 +1508,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_split_cursor(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-split-cursor".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1586,8 +1522,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_theme_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-theme-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1601,8 +1536,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_timeout_expand(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1616,8 +1550,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_timeout_initial(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-initial".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1631,8 +1564,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_timeout_repeat(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-timeout-repeat".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1647,8 +1579,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_double_click(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-double-click".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1664,8 +1595,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_middle_click(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-middle-click".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1681,8 +1611,7 @@ impl + IsA> SettingsExt for O { #[cfg(any(feature = "v3_14", feature = "dox"))] fn get_property_gtk_titlebar_right_click(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-titlebar-right-click".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1697,8 +1626,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_toolbar_icon_size(&self) -> IconSize { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-toolbar-icon-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1712,8 +1640,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_toolbar_style(&self) -> ToolbarStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1727,8 +1654,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_tooltip_browse_mode_timeout(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-browse-mode-timeout".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1742,8 +1668,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_tooltip_browse_timeout(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-browse-timeout".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1757,8 +1682,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_tooltip_timeout(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-tooltip-timeout".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1772,8 +1696,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_visible_focus(&self) -> PolicyType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-visible-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1787,8 +1710,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_xft_antialias(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-antialias".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1802,8 +1724,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_xft_dpi(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-dpi".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1817,8 +1738,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_xft_hinting(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-hinting".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1832,8 +1752,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_xft_hintstyle(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-hintstyle".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1847,8 +1766,7 @@ impl + IsA> SettingsExt for O { fn get_property_gtk_xft_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "gtk-xft-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index b8e8f974f3..e8c7fa6000 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -55,8 +55,7 @@ pub trait ShortcutsWindowExt { impl + IsA + glib::object::ObjectExt> ShortcutsWindowExt for O { fn get_property_section_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "section-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -70,8 +69,7 @@ impl + IsA + glib::object::ObjectE fn get_property_view_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "view-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index 67520a763f..bd67d30dd8 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index 30efb522bf..e81015c36f 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -261,8 +261,7 @@ impl + IsA> SpinButtonExt for O { fn get_property_climb_rate(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "climb-rate".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index 736d220212..b76b6a8b50 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -69,8 +69,7 @@ impl + IsA> SpinnerExt for O { fn get_property_active(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "active".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/stack.rs b/src/auto/stack.rs index aceec2f01e..2060fbbc58 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -327,8 +327,7 @@ impl + IsA + IsA> StackExt for O fn get_property_homogeneous(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -342,8 +341,7 @@ impl + IsA + IsA> StackExt for O fn get_property_interpolate_size(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "interpolate-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -357,8 +355,7 @@ impl + IsA + IsA> StackExt for O fn get_property_transition_duration(&self) -> u32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-duration".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -372,8 +369,7 @@ impl + IsA + IsA> StackExt for O fn get_property_transition_running(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-running".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -381,8 +377,7 @@ impl + IsA + IsA> StackExt for O fn get_property_transition_type(&self) -> StackTransitionType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "transition-type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -396,8 +391,7 @@ impl + IsA + IsA> StackExt for O fn get_property_visible_child(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-child".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -411,8 +405,7 @@ impl + IsA + IsA> StackExt for O fn get_property_visible_child_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "visible-child-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -426,8 +419,7 @@ impl + IsA + IsA> StackExt for O fn get_child_icon_name>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "icon-name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -442,8 +434,7 @@ impl + IsA + IsA> StackExt for O fn get_child_name>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -458,8 +449,7 @@ impl + IsA + IsA> StackExt for O fn get_child_needs_attention>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "needs-attention".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -473,8 +463,7 @@ impl + IsA + IsA> StackExt for O fn get_child_position>(&self, item: &T) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -488,8 +477,7 @@ impl + IsA + IsA> StackExt for O fn get_child_title>(&self, item: &T) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "title".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index e4c43df4a2..da8f80082c 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -78,8 +78,7 @@ impl + IsA> StackSidebarExt for O { fn get_property_stack(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stack".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index 778e75fa18..c4a7bce4af 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; @@ -91,8 +91,7 @@ impl + IsA> StackSwitcherExt for O { #[cfg(any(feature = "v3_20", feature = "dox"))] fn get_property_icon_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -107,8 +106,7 @@ impl + IsA> StackSwitcherExt for O { fn get_property_stack(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stack".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index c9ae0286a2..81fa8826c5 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ImageType; @@ -385,8 +385,7 @@ impl + IsA + glib::object::ObjectExt> S fn get_property_embedded(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "embedded".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -412,8 +411,7 @@ impl + IsA + glib::object::ObjectExt> S fn get_property_orientation(&self) -> Orientation { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "orientation".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 37b0ff374e..f696dcbc07 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 34145da8fb..43b00fbd45 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use CssSection; @@ -497,8 +497,7 @@ impl + IsA> StyleContextExt for O { #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_paint_clock(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paint-clock".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index 06b3672163..adf4d9296c 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index c64bd002ab..056eaebc9d 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index 022eb55b21..3817133e1d 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 1a3f79afad..22620a85b7 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 4a7e7f6344..a115935f3c 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index cd384e524a..a4f3e2872e 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index f0d686b16e..6db19ded98 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Clipboard; @@ -710,8 +710,7 @@ impl + IsA> TextBufferExt for O { fn get_property_cursor_position(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cursor-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index d6a5bdd08d..ae5a759532 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index f73bff5238..a5c1210a22 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index a871be4e8b..38d0b0649d 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index f5662cf8c2..f9a99a0f62 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Justification; @@ -512,8 +512,7 @@ impl + IsA> TextTagExt for O { fn get_property_accumulative_margin(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "accumulative-margin".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -533,8 +532,7 @@ impl + IsA> TextTagExt for O { fn get_property_background_full_height(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-full-height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -548,8 +546,7 @@ impl + IsA> TextTagExt for O { fn get_property_background_full_height_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-full-height-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -563,8 +560,7 @@ impl + IsA> TextTagExt for O { fn get_property_background_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -578,8 +574,7 @@ impl + IsA> TextTagExt for O { fn get_property_background_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -593,8 +588,7 @@ impl + IsA> TextTagExt for O { fn get_property_direction(&self) -> TextDirection { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "direction".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -608,8 +602,7 @@ impl + IsA> TextTagExt for O { fn get_property_editable(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -623,8 +616,7 @@ impl + IsA> TextTagExt for O { fn get_property_editable_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "editable-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -639,8 +631,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_fallback(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "fallback".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -655,8 +646,7 @@ impl + IsA> TextTagExt for O { fn get_property_fallback_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "fallback-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -670,8 +660,7 @@ impl + IsA> TextTagExt for O { fn get_property_family(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -685,8 +674,7 @@ impl + IsA> TextTagExt for O { fn get_property_family_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "family-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -700,8 +688,7 @@ impl + IsA> TextTagExt for O { fn get_property_font(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -716,8 +703,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_property_font_features(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font-features".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -732,8 +718,7 @@ impl + IsA> TextTagExt for O { fn get_property_font_features_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "font-features-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -753,8 +738,7 @@ impl + IsA> TextTagExt for O { fn get_property_foreground_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -768,8 +752,7 @@ impl + IsA> TextTagExt for O { fn get_property_foreground_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "foreground-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -783,8 +766,7 @@ impl + IsA> TextTagExt for O { fn get_property_indent(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indent".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -798,8 +780,7 @@ impl + IsA> TextTagExt for O { fn get_property_indent_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "indent-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -813,8 +794,7 @@ impl + IsA> TextTagExt for O { fn get_property_invisible(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -828,8 +808,7 @@ impl + IsA> TextTagExt for O { fn get_property_invisible_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "invisible-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -843,8 +822,7 @@ impl + IsA> TextTagExt for O { fn get_property_justification(&self) -> Justification { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "justification".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -858,8 +836,7 @@ impl + IsA> TextTagExt for O { fn get_property_justification_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "justification-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -873,8 +850,7 @@ impl + IsA> TextTagExt for O { fn get_property_language(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -888,8 +864,7 @@ impl + IsA> TextTagExt for O { fn get_property_language_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "language-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -903,8 +878,7 @@ impl + IsA> TextTagExt for O { fn get_property_left_margin(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-margin".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -918,8 +892,7 @@ impl + IsA> TextTagExt for O { fn get_property_left_margin_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "left-margin-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -934,8 +907,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_letter_spacing(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "letter-spacing".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -950,8 +922,7 @@ impl + IsA> TextTagExt for O { fn get_property_letter_spacing_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "letter-spacing-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -965,8 +936,7 @@ impl + IsA> TextTagExt for O { fn get_property_name(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "name".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -980,8 +950,7 @@ impl + IsA> TextTagExt for O { fn get_property_paragraph_background_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paragraph-background-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -995,8 +964,7 @@ impl + IsA> TextTagExt for O { fn get_property_paragraph_background_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "paragraph-background-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1010,8 +978,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_above_lines(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-above-lines".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1025,8 +992,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_above_lines_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-above-lines-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1040,8 +1006,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_below_lines(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-below-lines".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1055,8 +1020,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_below_lines_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-below-lines-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1070,8 +1034,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_inside_wrap(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-inside-wrap".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1085,8 +1048,7 @@ impl + IsA> TextTagExt for O { fn get_property_pixels_inside_wrap_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "pixels-inside-wrap-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1100,8 +1062,7 @@ impl + IsA> TextTagExt for O { fn get_property_right_margin(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-margin".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1115,8 +1076,7 @@ impl + IsA> TextTagExt for O { fn get_property_right_margin_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "right-margin-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1130,8 +1090,7 @@ impl + IsA> TextTagExt for O { fn get_property_rise(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1145,8 +1104,7 @@ impl + IsA> TextTagExt for O { fn get_property_rise_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "rise-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1160,8 +1118,7 @@ impl + IsA> TextTagExt for O { fn get_property_scale(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1175,8 +1132,7 @@ impl + IsA> TextTagExt for O { fn get_property_scale_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "scale-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1190,8 +1146,7 @@ impl + IsA> TextTagExt for O { fn get_property_size(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1205,8 +1160,7 @@ impl + IsA> TextTagExt for O { fn get_property_size_points(&self) -> f64 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-points".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1220,8 +1174,7 @@ impl + IsA> TextTagExt for O { fn get_property_size_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "size-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1235,8 +1188,7 @@ impl + IsA> TextTagExt for O { fn get_property_stretch(&self) -> pango::Stretch { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1250,8 +1202,7 @@ impl + IsA> TextTagExt for O { fn get_property_stretch_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "stretch-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1265,8 +1216,7 @@ impl + IsA> TextTagExt for O { fn get_property_strikethrough(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1281,8 +1231,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_strikethrough_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1298,8 +1247,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_strikethrough_rgba_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-rgba-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1314,8 +1262,7 @@ impl + IsA> TextTagExt for O { fn get_property_strikethrough_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "strikethrough-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1329,8 +1276,7 @@ impl + IsA> TextTagExt for O { fn get_property_style(&self) -> pango::Style { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1344,8 +1290,7 @@ impl + IsA> TextTagExt for O { fn get_property_style_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "style-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1359,8 +1304,7 @@ impl + IsA> TextTagExt for O { fn get_property_tabs_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "tabs-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1374,8 +1318,7 @@ impl + IsA> TextTagExt for O { fn get_property_underline(&self) -> pango::Underline { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1390,8 +1333,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_underline_rgba(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-rgba".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -1407,8 +1349,7 @@ impl + IsA> TextTagExt for O { #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_property_underline_rgba_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-rgba-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1423,8 +1364,7 @@ impl + IsA> TextTagExt for O { fn get_property_underline_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "underline-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1438,8 +1378,7 @@ impl + IsA> TextTagExt for O { fn get_property_variant(&self) -> pango::Variant { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1453,8 +1392,7 @@ impl + IsA> TextTagExt for O { fn get_property_variant_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "variant-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1468,8 +1406,7 @@ impl + IsA> TextTagExt for O { fn get_property_weight(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1483,8 +1420,7 @@ impl + IsA> TextTagExt for O { fn get_property_weight_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "weight-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1498,8 +1434,7 @@ impl + IsA> TextTagExt for O { fn get_property_wrap_mode(&self) -> WrapMode { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1513,8 +1448,7 @@ impl + IsA> TextTagExt for O { fn get_property_wrap_mode_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "wrap-mode-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 42e86578b6..520ca722c6 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index 65678188c0..1c8bc214e8 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -798,8 +798,7 @@ impl + IsA + glib::object::ObjectExt> Tex fn get_property_im_module(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "im-module".to_glib_none().0, value.to_glib_none_mut().0); value.get() } @@ -813,8 +812,7 @@ impl + IsA + glib::object::ObjectExt> Tex fn get_property_monospace(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "monospace".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -829,8 +827,7 @@ impl + IsA + glib::object::ObjectExt> Tex #[cfg(any(feature = "v3_8", feature = "dox"))] fn get_property_populate_all(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "populate-all".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 8efde6aa7b..7ba25853db 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -133,8 +133,7 @@ impl + IsA> ToggleButtonExt for O { fn get_property_draw_indicator(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "draw-indicator".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 56ed0a75ec..2903765c05 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index e703e989c2..91024a5f58 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 010da86e2f..f1d96e34f7 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index 675a07ad5f..6263a34378 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -200,8 +200,7 @@ impl + IsA + IsA> ToolIte fn get_item_expand + IsA>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -215,8 +214,7 @@ impl + IsA + IsA> ToolIte fn get_item_fill + IsA>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "fill".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -230,8 +228,7 @@ impl + IsA + IsA> ToolIte fn get_item_homogeneous + IsA>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -245,8 +242,7 @@ impl + IsA + IsA> ToolIte fn get_item_new_row + IsA>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "new-row".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 448bf02812..ff1fad0251 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -222,8 +222,7 @@ impl + IsA> ToolPaletteExt for O { fn get_property_icon_size_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -237,8 +236,7 @@ impl + IsA> ToolPaletteExt for O { fn get_property_toolbar_style(&self) -> ToolbarStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 8472ba4795..2f5a8de6ff 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 4481e9b088..a4a45fcdbd 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -196,8 +196,7 @@ impl + IsA + IsA + glib::object fn get_property_icon_size_set(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "icon-size-set".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -211,8 +210,7 @@ impl + IsA + IsA + glib::object fn get_property_toolbar_style(&self) -> ToolbarStyle { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "toolbar-style".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -226,8 +224,7 @@ impl + IsA + IsA + glib::object fn get_item_expand>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -241,8 +238,7 @@ impl + IsA + IsA + glib::object fn get_item_homogeneous>(&self, item: &T) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); ffi::gtk_container_child_get_property(self.to_glib_none().0, item.to_glib_none().0, "homogeneous".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 795a0f65c4..ed8d4b8db0 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index 9cb77050b0..c0c1784418 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index 33d5a57be4..618be02aba 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 61151beb82..80c2c025e4 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TreeIter; @@ -117,8 +117,7 @@ impl + IsA> TreeModelFilterExt for fn get_property_child_model(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "child-model".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 4136d4eeaf..c24c5e454a 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index cf3129c51d..1962c48e21 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index 57cb49ee03..c1d252d5e2 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 9b21198609..0d5a94474b 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index ff182f5416..5ca262dc71 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 7964a2e67a..3d18d2d0fa 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -961,8 +961,7 @@ impl + IsA + glib::object::ObjectExt> Tre fn get_property_enable_grid_lines(&self) -> TreeViewGridLines { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "enable-grid-lines".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index 9cc36ba128..b4840c0f44 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 (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -470,8 +470,7 @@ impl + IsA> TreeViewColumnExt for O fn get_property_cell_area(&self) -> Option { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); value.get() } diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index 2c1a9beeda..2a06d99f14 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 6b428654ff..e0a3dd46ae 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -59,8 +59,7 @@ pub trait VolumeButtonExt { impl + IsA> VolumeButtonExt for O { fn get_property_use_symbolic(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "use-symbolic".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 715da18dfe..b584b262ba 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AccelFlags; @@ -2351,8 +2351,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_composite_child(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "composite-child".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2360,8 +2359,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_expand(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "expand".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2375,8 +2373,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_has_default(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-default".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2390,8 +2387,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_has_focus(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2405,8 +2401,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_height_request(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "height-request".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2420,8 +2415,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_is_focus(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2435,8 +2429,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_margin(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "margin".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -2450,8 +2443,7 @@ impl + IsA + glib::object::ObjectExt> Widge fn get_property_width_request(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "width-request".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/window.rs b/src/auto/window.rs index 6db4225930..fd363938f4 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -1127,8 +1127,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_default_height(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "default-height".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1142,8 +1141,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_default_width(&self) -> i32 { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "default-width".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1157,8 +1155,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_has_toplevel_focus(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "has-toplevel-focus".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1166,8 +1163,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_is_active(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-active".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1175,8 +1171,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_is_maximized(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-maximized".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1184,8 +1179,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_resize_grip_visible(&self) -> bool { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "resize-grip-visible".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1193,8 +1187,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_type(&self) -> WindowType { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "type".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } @@ -1202,8 +1195,7 @@ impl + IsA + glib::object::ObjectExt> GtkWi fn get_property_window_position(&self) -> WindowPosition { unsafe { - let mut value = Value::uninitialized(); - gobject_ffi::g_value_init(value.to_glib_none_mut().0, ::static_type().to_glib()); + let mut value = Value::from_type(::static_type()); gobject_ffi::g_object_get_property(self.to_glib_none().0, "window-position".to_glib_none().0, value.to_glib_none_mut().0); value.get().unwrap() } diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index 4c114af8b5..b20446f4ed 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (d50d839) from gir-files (469db10) +// This file was generated by gir (38add47) from gir-files (469db10) // DO NOT EDIT use Widget; From 4abe7c0b5d4ce7929e2bd086ad9be87a56ba1140 Mon Sep 17 00:00:00 2001 From: Paul Florence Date: Sun, 3 Dec 2017 10:20:51 -0500 Subject: [PATCH 008/210] Change version of Gtk.StyleContextPrintFlags --- Gir.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gir.toml b/Gir.toml index 81fa739fd7..2ec143dec3 100644 --- a/Gir.toml +++ b/Gir.toml @@ -183,7 +183,6 @@ generate = [ "Gtk.StateType", "Gtk.Statusbar", "Gtk.StatusIcon", - "Gtk.StyleContextPrintFlags", "Gtk.StyleProperties", "Gtk.StyleProvider", "Gtk.SymbolicColor", @@ -1332,6 +1331,11 @@ status = "generate" name = "paint-clock" version = "3.8" +[[object]] +name = "Gtk.StyleContextPrintFlags" +status = "generate" +version = "3.20" + [[object]] name = "Gtk.Switch" status = "generate" From 4cf3cf1894dc77ee9528fb362b1c8460c4c3ccc3 Mon Sep 17 00:00:00 2001 From: Paul Florence Date: Sun, 3 Dec 2017 10:21:24 -0500 Subject: [PATCH 009/210] Regen. --- src/auto/flags.rs | 7 +++++++ src/auto/mod.rs | 1 + 2 files changed, 8 insertions(+) diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 5dd45b37c2..cc8de1eef0 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -746,6 +746,7 @@ impl SetValue for StateFlags { } } +#[cfg(any(feature = "v3_20", feature = "dox"))] bitflags! { pub struct StyleContextPrintFlags: u32 { const NONE = 0; @@ -754,6 +755,7 @@ bitflags! { } } +#[cfg(any(feature = "v3_20", feature = "dox"))] #[doc(hidden)] impl ToGlib for StyleContextPrintFlags { type GlibType = ffi::GtkStyleContextPrintFlags; @@ -763,6 +765,7 @@ impl ToGlib for StyleContextPrintFlags { } } +#[cfg(any(feature = "v3_20", feature = "dox"))] #[doc(hidden)] impl FromGlib for StyleContextPrintFlags { fn from_glib(value: ffi::GtkStyleContextPrintFlags) -> StyleContextPrintFlags { @@ -771,24 +774,28 @@ impl FromGlib for StyleContextPrintFlags { } } +#[cfg(any(feature = "v3_20", feature = "dox"))] impl StaticType for StyleContextPrintFlags { fn static_type() -> Type { unsafe { from_glib(ffi::gtk_style_context_print_flags_get_type()) } } } +#[cfg(any(feature = "v3_20", feature = "dox"))] impl<'a> FromValueOptional<'a> for StyleContextPrintFlags { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg(any(feature = "v3_20", feature = "dox"))] impl<'a> FromValue<'a> for StyleContextPrintFlags { unsafe fn from_value(value: &Value) -> Self { from_glib(ffi::GtkStyleContextPrintFlags::from_bits_truncate(gobject_ffi::g_value_get_flags(value.to_glib_none().0))) } } +#[cfg(any(feature = "v3_20", feature = "dox"))] impl SetValue for StyleContextPrintFlags { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_flags(value.to_glib_none_mut().0, this.to_glib().bits()) diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 73ca3943fe..201d0254bc 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -937,6 +937,7 @@ pub use self::flags::PlacesOpenFlags; pub use self::flags::RecentFilterFlags; pub use self::flags::RegionFlags; pub use self::flags::StateFlags; +#[cfg(any(feature = "v3_20", feature = "dox"))] pub use self::flags::StyleContextPrintFlags; pub use self::flags::TargetFlags; pub use self::flags::TextSearchFlags; From a502a0fc5d5e2b578a47d64b14e6129b0e7041e3 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 4 Dec 2017 21:23:16 +0100 Subject: [PATCH 010/210] Update gir submodule --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index 38add47f07..80807333dc 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 38add47f079dc36a59983537b287fc0e6d65c849 +Subproject commit 80807333dcb4f3eeef58f2d0d2305f84d50c0bd7 From d793e7b0978e0cf14b03f3a060e943151f9ee71d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 3 Dec 2017 22:08:56 +0100 Subject: [PATCH 011/210] Generate new types --- Cargo.toml | 2 +- Gir.toml | 34 +++ 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 | 187 +++++++++++++++ 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 | 349 ++++++++++++++++++++++++++++ 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 | 2 +- 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 | 206 +++++++++++++++- 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 | 168 +++++++++++++ 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 | 2 +- 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 | 78 +++++++ 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 | 258 ++++++++++++++++++++ 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 | 80 ++++++- src/auto/model_button.rs | 2 +- src/auto/mount_operation.rs | 150 ++++++++++++ src/auto/native_dialog.rs | 261 +++++++++++++++++++++ src/auto/notebook.rs | 2 +- src/auto/offscreen_window.rs | 61 +++++ src/auto/orientable.rs | 2 +- src/auto/overlay.rs | 2 +- src/auto/pad_controller.rs | 121 ++++++++++ src/auto/page_setup.rs | 2 +- src/auto/paned.rs | 2 +- src/auto/paper_size.rs | 2 +- src/auto/places_sidebar.rs | 50 ++-- src/auto/plug.rs | 142 +++++++++++ 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 | 20 +- 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 | 106 +++++++++ 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 | 39 ++-- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 2 +- src/auto/window.rs | 2 +- src/auto/window_group.rs | 2 +- src/border.rs | 51 ++++ src/invisible.rs | 21 ++ src/lib.rs | 5 + src/prelude.rs | 1 + src/xlib.rs | 7 + 212 files changed, 2550 insertions(+), 225 deletions(-) create mode 100644 src/auto/app_chooser_button.rs create mode 100644 src/auto/cell_view.rs create mode 100644 src/auto/file_chooser_native.rs create mode 100644 src/auto/invisible.rs create mode 100644 src/auto/lock_button.rs create mode 100644 src/auto/mount_operation.rs create mode 100644 src/auto/native_dialog.rs create mode 100644 src/auto/offscreen_window.rs create mode 100644 src/auto/pad_controller.rs create mode 100644 src/auto/plug.rs create mode 100644 src/auto/socket.rs create mode 100644 src/border.rs create mode 100644 src/invisible.rs create mode 100644 src/xlib.rs diff --git a/Cargo.toml b/Cargo.toml index e78f4d198a..58ad77ea39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,4 +92,4 @@ git = "https://github.com/gtk-rs/gdk-pixbuf" [dependencies.pango] version = "0.3.0" -git = "https://github.com/gtk-rs/pango" \ No newline at end of file +git = "https://github.com/gtk-rs/pango" diff --git a/Gir.toml b/Gir.toml index 2ec143dec3..b82fa7ffd0 100644 --- a/Gir.toml +++ b/Gir.toml @@ -14,6 +14,7 @@ generate = [ "Gtk.Adjustment", "Gtk.Align", "Gtk.Alignment", + "Gtk.AppChooserButton", "Gtk.AppChooserWidget", "Gtk.ApplicationInhibitFlags", "Gtk.ApplicationWindow", @@ -23,6 +24,7 @@ generate = [ "Gtk.AssistantPageType", "Gtk.BaselinePosition", "Gtk.Bin", + "Gtk.BorderStyle", "Gtk.BuilderError", "Gtk.Button", "Gtk.ButtonBox", @@ -65,6 +67,7 @@ generate = [ "Gtk.FileChooserConfirmation", "Gtk.FileChooserDialog", "Gtk.FileChooserError", + "Gtk.FileChooserNative", "Gtk.FileChooserWidget", "Gtk.FileFilter", "Gtk.FileFilterFlags", @@ -94,6 +97,7 @@ generate = [ "Gtk.ImageMenuItem", "Gtk.ImageType", "Gtk.InfoBar", + "Gtk.Invisible", "Gtk.IMMulticontext", "Gtk.IMPreeditStyle", "Gtk.IMStatusStyle", @@ -106,6 +110,7 @@ generate = [ "Gtk.License", "Gtk.ListBox", "Gtk.ListBoxRow", + "Gtk.LockButton", "Gtk.MenuBar", "Gtk.MenuButton", "Gtk.MenuDirectionType", @@ -114,11 +119,17 @@ generate = [ "Gtk.MessageType", "Gtk.Misc", "Gtk.ModelButton", + "Gtk.MountOperation", "Gtk.MovementStep", + "Gtk.NativeDialog", "Gtk.NotebookTab", "Gtk.NumberUpLayout", + "Gtk.OffscreenWindow", "Gtk.Orientable", "Gtk.Orientation", +# "Gtk.PadActionEntry", <- Missing memory management functions + "Gtk.PadActionType", + "Gtk.PadController", "Gtk.PackDirection", "Gtk.PackType", "Gtk.PageOrientation", @@ -194,6 +205,7 @@ generate = [ "Gtk.TextMark", "Gtk.TextSearchFlags", "Gtk.TextTagTable", + "Gtk.TextViewLayer", "Gtk.TextWindowType", "Gtk.ToggleButton", "Gtk.ToggleToolButton", @@ -273,6 +285,7 @@ manual = [ "Gio.Icon", "Gio.Menu", "Gio.MenuModel", + "Gio.MountOperation", "Gio.Permission", "GLib.Error", "GLib.KeyFile", @@ -282,6 +295,7 @@ manual = [ "GObject.Value", "Gtk.Allocation", "Gtk.AppChooser", + "Gtk.Border", "Gtk.EntryBuffer", "Gtk.RecentData", "Gtk.Requisition", @@ -306,6 +320,7 @@ manual = [ "Pango.Underline", "Pango.Variant", "Pango.WrapMode", + "xlib.Window", ] [[object]] @@ -615,6 +630,15 @@ status = "generate" name = "path" transformation = "treepath" +[[object]] +name = "Gtk.CellView" +status = "generate" + [[object.function]] + name = "set_displayed_row" + [[object.function.parameter]] + name = "path" + nullable = false + [[object]] name = "Gtk.Clipboard" status = "generate" @@ -1113,6 +1137,11 @@ status = "generate" #[gio::File] ignore = true +[[object]] +name = "Gtk.Plug" +status = "generate" +cfg_condition = "not(windows)" + [[object]] name = "Gtk.PrintContext" status = "generate" @@ -1288,6 +1317,11 @@ status = "generate" #array without length ignore = true +[[object]] +name = "Gtk.Socket" +status = "generate" +cfg_condition = "not(windows)" + [[object]] name = "Gtk.SpinButton" status = "generate" diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 678067e884..0bb63ad21c 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index cc7b86322f..ad13fda300 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index bc85725edf..d1a52b2fa9 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 26301c8144..b041eb8506 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index f9a9e0b2b8..d3a679db50 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 91b8eb4cbe..67d2d3aef2 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs new file mode 100644 index 0000000000..ba37f24d2c --- /dev/null +++ b/src/auto/app_chooser_button.rs @@ -0,0 +1,187 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use AppChooser; +use Bin; +use Buildable; +use CellEditable; +use CellLayout; +use ComboBox; +use Container; +use Widget; +use ffi; +use gio; +use glib; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use libc; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct AppChooserButton(Object): ComboBox, Bin, Container, Widget, Buildable, CellEditable, CellLayout, AppChooser; + + match fn { + get_type => || ffi::gtk_app_chooser_button_get_type(), + } +} + +impl AppChooserButton { + pub fn new(content_type: &str) -> AppChooserButton { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_app_chooser_button_new(content_type.to_glib_none().0)).downcast_unchecked() + } + } +} + +pub trait AppChooserButtonExt { + fn append_custom_item>(&self, name: &str, label: &str, icon: &P); + + fn append_separator(&self); + + fn get_heading(&self) -> Option; + + fn get_show_default_item(&self) -> bool; + + fn get_show_dialog_item(&self) -> bool; + + fn set_active_custom_item(&self, name: &str); + + fn set_heading(&self, heading: &str); + + fn set_show_default_item(&self, setting: bool); + + fn set_show_dialog_item(&self, setting: bool); + + fn connect_custom_item_activated(&self, f: F) -> SignalHandlerId; + + fn connect_property_heading_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_show_default_item_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_show_dialog_item_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> AppChooserButtonExt for O { + fn append_custom_item>(&self, name: &str, label: &str, icon: &P) { + unsafe { + ffi::gtk_app_chooser_button_append_custom_item(self.to_glib_none().0, name.to_glib_none().0, label.to_glib_none().0, icon.to_glib_none().0); + } + } + + fn append_separator(&self) { + unsafe { + ffi::gtk_app_chooser_button_append_separator(self.to_glib_none().0); + } + } + + fn get_heading(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_app_chooser_button_get_heading(self.to_glib_none().0)) + } + } + + fn get_show_default_item(&self) -> bool { + unsafe { + from_glib(ffi::gtk_app_chooser_button_get_show_default_item(self.to_glib_none().0)) + } + } + + fn get_show_dialog_item(&self) -> bool { + unsafe { + from_glib(ffi::gtk_app_chooser_button_get_show_dialog_item(self.to_glib_none().0)) + } + } + + fn set_active_custom_item(&self, name: &str) { + unsafe { + ffi::gtk_app_chooser_button_set_active_custom_item(self.to_glib_none().0, name.to_glib_none().0); + } + } + + fn set_heading(&self, heading: &str) { + unsafe { + ffi::gtk_app_chooser_button_set_heading(self.to_glib_none().0, heading.to_glib_none().0); + } + } + + fn set_show_default_item(&self, setting: bool) { + unsafe { + ffi::gtk_app_chooser_button_set_show_default_item(self.to_glib_none().0, setting.to_glib()); + } + } + + fn set_show_dialog_item(&self, setting: bool) { + unsafe { + ffi::gtk_app_chooser_button_set_show_dialog_item(self.to_glib_none().0, setting.to_glib()); + } + } + + fn connect_custom_item_activated(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "custom-item-activated", + transmute(custom_item_activated_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_heading_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::heading", + transmute(notify_heading_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_show_default_item_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::show-default-item", + transmute(notify_show_default_item_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_show_dialog_item_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::show-dialog-item", + transmute(notify_show_dialog_item_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn custom_item_activated_trampoline

(this: *mut ffi::GtkAppChooserButton, item_name: *mut libc::c_char, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, &str) + 'static) = transmute(f); + f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(item_name)) +} + +unsafe extern "C" fn notify_heading_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_show_default_item_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_show_dialog_item_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 2621c48fd4..7423dda453 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index 2fb8432979..07958e27a0 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index dcc0f1b554..0541378d57 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ApplicationInhibitFlags; diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 1495153ddc..92bde91510 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 2d9456c8c3..9fd80d20a7 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index ffc5047e73..9adbcfa77d 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 6f47f3b439..01eeb72d07 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 7f8b8cc33d..657b36aae6 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index ee28d87f4f..66caec487c 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 5687d9418d..cd9184241a 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 1ade9e5d33..1c025a0c70 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 42811f4ea2..8776131a20 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index 778166c7d0..f163f3c620 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index f325027ef4..6c238d3a33 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 22cf454b6d..27f170699a 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 79d8148927..21373e7bbe 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 574b637d18..0505adf327 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 2e6ea8e458..9075faac16 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index eca5515ea3..3348acf771 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index 1df3971d2c..aebded623f 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index ca54c87bfd..9f55d2ffaa 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 4b9932b89a..89b3a9a4f6 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index 01791b5f5e..d747b9a73e 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index a050bddfe1..203cc531b3 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index 73210a2771..db75d60cbd 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index ce6e0d714b..c34f60531f 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index c416d26114..d4a8e0951c 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index b6cfb9a5a9..3d16c2a52a 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs new file mode 100644 index 0000000000..f87e73ad90 --- /dev/null +++ b/src/auto/cell_view.rs @@ -0,0 +1,349 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Buildable; +use CellArea; +use CellAreaContext; +use CellLayout; +use Orientable; +use TreeModel; +use TreePath; +use Widget; +use ffi; +use gdk; +use gdk_pixbuf; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct CellView(Object): Widget, Buildable, CellLayout, Orientable; + + match fn { + get_type => || ffi::gtk_cell_view_get_type(), + } +} + +impl CellView { + pub fn new() -> CellView { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_cell_view_new()).downcast_unchecked() + } + } + + pub fn new_with_context>(area: &P, context: &CellAreaContext) -> CellView { + skip_assert_initialized!(); + unsafe { + Widget::from_glib_none(ffi::gtk_cell_view_new_with_context(area.to_glib_none().0, context.to_glib_none().0)).downcast_unchecked() + } + } + + pub fn new_with_markup(markup: &str) -> CellView { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_cell_view_new_with_markup(markup.to_glib_none().0)).downcast_unchecked() + } + } + + pub fn new_with_pixbuf(pixbuf: &gdk_pixbuf::Pixbuf) -> CellView { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_cell_view_new_with_pixbuf(pixbuf.to_glib_none().0)).downcast_unchecked() + } + } + + pub fn new_with_text(text: &str) -> CellView { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_cell_view_new_with_text(text.to_glib_none().0)).downcast_unchecked() + } + } +} + +impl Default for CellView { + fn default() -> Self { + Self::new() + } +} + +pub trait CellViewExt { + fn get_displayed_row(&self) -> Option; + + fn get_draw_sensitive(&self) -> bool; + + fn get_fit_model(&self) -> bool; + + fn get_model(&self) -> Option; + + fn set_background_rgba(&self, rgba: &gdk::RGBA); + + fn set_displayed_row(&self, path: &mut TreePath); + + fn set_draw_sensitive(&self, draw_sensitive: bool); + + fn set_fit_model(&self, fit_model: bool); + + fn set_model<'a, P: IsA + 'a, Q: Into>>(&self, model: Q); + + fn set_property_background(&self, background: Option<&str>); + + fn get_property_background_rgba(&self) -> Option; + + fn get_property_background_set(&self) -> bool; + + fn set_property_background_set(&self, background_set: bool); + + fn get_property_cell_area(&self) -> Option; + + fn get_property_cell_area_context(&self) -> Option; + + fn connect_property_background_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_background_rgba_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_background_set_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_cell_area_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_cell_area_context_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_draw_sensitive_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_fit_model_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_model_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> CellViewExt for O { + fn get_displayed_row(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_cell_view_get_displayed_row(self.to_glib_none().0)) + } + } + + fn get_draw_sensitive(&self) -> bool { + unsafe { + from_glib(ffi::gtk_cell_view_get_draw_sensitive(self.to_glib_none().0)) + } + } + + fn get_fit_model(&self) -> bool { + unsafe { + from_glib(ffi::gtk_cell_view_get_fit_model(self.to_glib_none().0)) + } + } + + fn get_model(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_cell_view_get_model(self.to_glib_none().0)) + } + } + + fn set_background_rgba(&self, rgba: &gdk::RGBA) { + unsafe { + ffi::gtk_cell_view_set_background_rgba(self.to_glib_none().0, rgba.to_glib_none().0); + } + } + + fn set_displayed_row(&self, path: &mut TreePath) { + unsafe { + ffi::gtk_cell_view_set_displayed_row(self.to_glib_none().0, path.to_glib_none_mut().0); + } + } + + fn set_draw_sensitive(&self, draw_sensitive: bool) { + unsafe { + ffi::gtk_cell_view_set_draw_sensitive(self.to_glib_none().0, draw_sensitive.to_glib()); + } + } + + fn set_fit_model(&self, fit_model: bool) { + unsafe { + ffi::gtk_cell_view_set_fit_model(self.to_glib_none().0, fit_model.to_glib()); + } + } + + fn set_model<'a, P: IsA + 'a, Q: Into>>(&self, model: Q) { + let model = model.into(); + let model = model.to_glib_none(); + unsafe { + ffi::gtk_cell_view_set_model(self.to_glib_none().0, model.0); + } + } + + fn set_property_background(&self, background: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "background".to_glib_none().0, Value::from(background).to_glib_none().0); + } + } + + fn get_property_background_rgba(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-rgba".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn get_property_background_set(&self) -> bool { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "background-set".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() + } + } + + fn set_property_background_set(&self, background_set: bool) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "background-set".to_glib_none().0, Value::from(&background_set).to_glib_none().0); + } + } + + fn get_property_cell_area(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn get_property_cell_area_context(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "cell-area-context".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn connect_property_background_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::background", + transmute(notify_background_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_background_rgba_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::background-rgba", + transmute(notify_background_rgba_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_background_set_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::background-set", + transmute(notify_background_set_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_cell_area_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::cell-area", + transmute(notify_cell_area_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_cell_area_context_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::cell-area-context", + transmute(notify_cell_area_context_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_draw_sensitive_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::draw-sensitive", + transmute(notify_draw_sensitive_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_fit_model_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::fit-model", + transmute(notify_fit_model_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_model_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::model", + transmute(notify_model_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_background_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_background_rgba_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_background_set_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_cell_area_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_cell_area_context_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_draw_sensitive_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_fit_model_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_model_trampoline

(this: *mut ffi::GtkCellView, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&CellView::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index ea81a290e5..5e00017622 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 2704c5ee47..c4d098dcd0 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 5bf6460d94..2b1ec27384 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index 3a007ecdbd..c153fa8a14 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 27af095287..c10e4104ba 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 9ac05885cc..83bf932f8b 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index a6315e15e6..f9b183a333 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index d7ef327721..c483d5db56 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index bfea9d13f0..d3db7bffb8 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index 7b1953f71b..044e0aa7df 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 77c1567bc7..0d7afc54a4 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index e022e4f2a4..6d7fa6afe6 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 4b6d82da46..714b7a1ee2 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index b315e93402..07544a31cc 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index 4c1a378a2f..0d503257c6 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 474fa47046..744515ef93 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index 57efba4c40..d6496ec8d4 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 7ee43052e8..d0c54d78a4 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; @@ -278,6 +278,87 @@ impl SetValue for BaselinePosition { } } +#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] +pub enum BorderStyle { + None, + Solid, + Inset, + Outset, + Hidden, + Dotted, + Dashed, + Double, + Groove, + Ridge, + #[doc(hidden)] + __Unknown(i32), +} + +#[doc(hidden)] +impl ToGlib for BorderStyle { + type GlibType = ffi::GtkBorderStyle; + + fn to_glib(&self) -> ffi::GtkBorderStyle { + match *self { + BorderStyle::None => ffi::GTK_BORDER_STYLE_NONE, + BorderStyle::Solid => ffi::GTK_BORDER_STYLE_SOLID, + BorderStyle::Inset => ffi::GTK_BORDER_STYLE_INSET, + BorderStyle::Outset => ffi::GTK_BORDER_STYLE_OUTSET, + BorderStyle::Hidden => ffi::GTK_BORDER_STYLE_HIDDEN, + BorderStyle::Dotted => ffi::GTK_BORDER_STYLE_DOTTED, + BorderStyle::Dashed => ffi::GTK_BORDER_STYLE_DASHED, + BorderStyle::Double => ffi::GTK_BORDER_STYLE_DOUBLE, + BorderStyle::Groove => ffi::GTK_BORDER_STYLE_GROOVE, + BorderStyle::Ridge => ffi::GTK_BORDER_STYLE_RIDGE, + BorderStyle::__Unknown(value) => value + } + } +} + +#[doc(hidden)] +impl FromGlib for BorderStyle { + fn from_glib(value: ffi::GtkBorderStyle) -> Self { + skip_assert_initialized!(); + match value { + 0 => BorderStyle::None, + 1 => BorderStyle::Solid, + 2 => BorderStyle::Inset, + 3 => BorderStyle::Outset, + 4 => BorderStyle::Hidden, + 5 => BorderStyle::Dotted, + 6 => BorderStyle::Dashed, + 7 => BorderStyle::Double, + 8 => BorderStyle::Groove, + 9 => BorderStyle::Ridge, + value => BorderStyle::__Unknown(value), + } + } +} + +impl StaticType for BorderStyle { + fn static_type() -> Type { + unsafe { from_glib(ffi::gtk_border_style_get_type()) } + } +} + +impl<'a> FromValueOptional<'a> for BorderStyle { + unsafe fn from_value_optional(value: &Value) -> Option { + Some(FromValue::from_value(value)) + } +} + +impl<'a> FromValue<'a> for BorderStyle { + unsafe fn from_value(value: &Value) -> Self { + from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) + } +} + +impl SetValue for BorderStyle { + unsafe fn set_value(value: &mut Value, this: &Self) { + gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) + } +} + #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum BuilderError { InvalidTypeFunction, @@ -2747,6 +2828,66 @@ impl SetValue for PackType { } } +#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] +pub enum PadActionType { + Button, + Ring, + Strip, + #[doc(hidden)] + __Unknown(i32), +} + +#[doc(hidden)] +impl ToGlib for PadActionType { + type GlibType = ffi::GtkPadActionType; + + fn to_glib(&self) -> ffi::GtkPadActionType { + match *self { + PadActionType::Button => ffi::GTK_PAD_ACTION_BUTTON, + PadActionType::Ring => ffi::GTK_PAD_ACTION_RING, + PadActionType::Strip => ffi::GTK_PAD_ACTION_STRIP, + PadActionType::__Unknown(value) => value + } + } +} + +#[doc(hidden)] +impl FromGlib for PadActionType { + fn from_glib(value: ffi::GtkPadActionType) -> Self { + skip_assert_initialized!(); + match value { + 0 => PadActionType::Button, + 1 => PadActionType::Ring, + 2 => PadActionType::Strip, + value => PadActionType::__Unknown(value), + } + } +} + +impl StaticType for PadActionType { + fn static_type() -> Type { + unsafe { from_glib(ffi::gtk_pad_action_type_get_type()) } + } +} + +impl<'a> FromValueOptional<'a> for PadActionType { + unsafe fn from_value_optional(value: &Value) -> Option { + Some(FromValue::from_value(value)) + } +} + +impl<'a> FromValue<'a> for PadActionType { + unsafe fn from_value(value: &Value) -> Self { + from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) + } +} + +impl SetValue for PadActionType { + unsafe fn set_value(value: &mut Value, this: &Self) { + gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) + } +} + #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum PageOrientation { Portrait, @@ -5215,6 +5356,69 @@ impl SetValue for TextExtendSelection { } } +#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] +pub enum TextViewLayer { + Below, + Above, + BelowText, + AboveText, + #[doc(hidden)] + __Unknown(i32), +} + +#[doc(hidden)] +impl ToGlib for TextViewLayer { + type GlibType = ffi::GtkTextViewLayer; + + fn to_glib(&self) -> ffi::GtkTextViewLayer { + match *self { + TextViewLayer::Below => ffi::GTK_TEXT_VIEW_LAYER_BELOW, + TextViewLayer::Above => ffi::GTK_TEXT_VIEW_LAYER_ABOVE, + TextViewLayer::BelowText => ffi::GTK_TEXT_VIEW_LAYER_BELOW_TEXT, + TextViewLayer::AboveText => ffi::GTK_TEXT_VIEW_LAYER_ABOVE_TEXT, + TextViewLayer::__Unknown(value) => value + } + } +} + +#[doc(hidden)] +impl FromGlib for TextViewLayer { + fn from_glib(value: ffi::GtkTextViewLayer) -> Self { + skip_assert_initialized!(); + match value { + 0 => TextViewLayer::Below, + 1 => TextViewLayer::Above, + 2 => TextViewLayer::BelowText, + 3 => TextViewLayer::AboveText, + value => TextViewLayer::__Unknown(value), + } + } +} + +impl StaticType for TextViewLayer { + fn static_type() -> Type { + unsafe { from_glib(ffi::gtk_text_view_layer_get_type()) } + } +} + +impl<'a> FromValueOptional<'a> for TextViewLayer { + unsafe fn from_value_optional(value: &Value) -> Option { + Some(FromValue::from_value(value)) + } +} + +impl<'a> FromValue<'a> for TextViewLayer { + unsafe fn from_value(value: &Value) -> Self { + from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) + } +} + +impl SetValue for TextViewLayer { + unsafe fn set_value(value: &mut Value, this: &Self) { + gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) + } +} + #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum TextWindowType { Private, diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index f769eea17a..2ac1b371ad 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 67593dd890..52d3291252 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 30487c44f5..8faf37a730 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 57c8d1e279..7e863eb2e6 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index cb657092e5..4ab6beec62 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index d5bab5a1aa..5051f11fd9 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs new file mode 100644 index 0000000000..abd8d73c7c --- /dev/null +++ b/src/auto/file_chooser_native.rs @@ -0,0 +1,168 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use FileChooser; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use FileChooserAction; +use NativeDialog; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use Window; +use ffi; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct FileChooserNative(Object): NativeDialog, FileChooser; + + match fn { + get_type => || ffi::gtk_file_chooser_native_get_type(), + } +} + +impl FileChooserNative { + #[cfg(any(feature = "v3_20", feature = "dox"))] + pub fn new<'a, 'b, 'c, 'd, P: Into>, Q: IsA + 'b, R: Into>, S: Into>, T: Into>>(title: P, parent: R, action: FileChooserAction, accept_label: S, cancel_label: T) -> FileChooserNative { + assert_initialized_main_thread!(); + let title = title.into(); + let title = title.to_glib_none(); + let parent = parent.into(); + let parent = parent.to_glib_none(); + let accept_label = accept_label.into(); + let accept_label = accept_label.to_glib_none(); + let cancel_label = cancel_label.into(); + let cancel_label = cancel_label.to_glib_none(); + unsafe { + from_glib_full(ffi::gtk_file_chooser_native_new(title.0, parent.0, action.to_glib(), accept_label.0, cancel_label.0)) + } + } +} + +pub trait FileChooserNativeExt { + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_accept_label(&self) -> Option; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_cancel_label(&self) -> Option; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_accept_label<'a, P: Into>>(&self, accept_label: P); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_cancel_label<'a, P: Into>>(&self, cancel_label: P); + + fn get_property_accept_label(&self) -> Option; + + fn set_property_accept_label(&self, accept_label: Option<&str>); + + fn get_property_cancel_label(&self) -> Option; + + fn set_property_cancel_label(&self, cancel_label: Option<&str>); + + fn connect_property_accept_label_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_cancel_label_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> FileChooserNativeExt for O { + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_accept_label(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_file_chooser_native_get_accept_label(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_cancel_label(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_file_chooser_native_get_cancel_label(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_accept_label<'a, P: Into>>(&self, accept_label: P) { + let accept_label = accept_label.into(); + let accept_label = accept_label.to_glib_none(); + unsafe { + ffi::gtk_file_chooser_native_set_accept_label(self.to_glib_none().0, accept_label.0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_cancel_label<'a, P: Into>>(&self, cancel_label: P) { + let cancel_label = cancel_label.into(); + let cancel_label = cancel_label.to_glib_none(); + unsafe { + ffi::gtk_file_chooser_native_set_cancel_label(self.to_glib_none().0, cancel_label.0); + } + } + + fn get_property_accept_label(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "accept-label".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_accept_label(&self, accept_label: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "accept-label".to_glib_none().0, Value::from(accept_label).to_glib_none().0); + } + } + + fn get_property_cancel_label(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "cancel-label".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_cancel_label(&self, cancel_label: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "cancel-label".to_glib_none().0, Value::from(cancel_label).to_glib_none().0); + } + } + + fn connect_property_accept_label_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::accept-label", + transmute(notify_accept_label_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_cancel_label_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::cancel-label", + transmute(notify_cancel_label_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_accept_label_trampoline

(this: *mut ffi::GtkFileChooserNative, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&FileChooserNative::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_cancel_label_trampoline

(this: *mut ffi::GtkFileChooserNative, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&FileChooserNative::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index 755885a12d..3d844b5a8c 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index a408077410..be726132eb 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index 37c52f0483..f1d206b73c 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index cc8de1eef0..69b11948fd 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 3c38f06f97..4fff790d56 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index a278e2ad82..d9bfc060cb 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index e1cf5dfda5..ae06524907 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index a5aa2c8710..941c402783 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 1299391a46..46dc173845 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 9556954da9..28877c58d7 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index bf7cc4d320..a42367e5f0 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index f0bd95a51d..8c6980370a 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index 62b8213f22..3129a918a2 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index a3e9cd28eb..d119d5ddc2 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 134eff1522..28e177beb2 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index a2c529cc60..04ddb91323 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index beef86a27d..1ed55db265 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index e76934e378..48ac59e41e 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index a90aa2a4a5..20d670740c 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 1c3ba4ddac..f18ccf149c 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index e27450ae27..5814ac6ae4 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 2cd6592d4b..27a8d2a34f 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index f5b0307d67..c6c3442563 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index aa175c9b16..fb4a250426 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index e5a7a867c6..aa43a9dbd7 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index e6449469f1..b6a373f312 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 078b224275..58672b782a 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index f5e642387a..8e551dabdb 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 5ebb9bc101..3228e6aece 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index b648e8b3b5..82afca8862 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 0fc4b6f327..b51b617375 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 5151e41f84..07ed519835 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index 892e242bef..7d87fa3b66 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 8016f8daee..13ec4821ad 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 6b85efb16c..7eb6dad203 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs new file mode 100644 index 0000000000..a36b40b217 --- /dev/null +++ b/src/auto/invisible.rs @@ -0,0 +1,78 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Buildable; +use Widget; +use ffi; +use gdk; +use glib; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct Invisible(Object): Widget, Buildable; + + match fn { + get_type => || ffi::gtk_invisible_get_type(), + } +} + +impl Invisible { + pub fn new() -> Invisible { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_invisible_new()).downcast_unchecked() + } + } + + pub fn new_for_screen(screen: &gdk::Screen) -> Invisible { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_invisible_new_for_screen(screen.to_glib_none().0)).downcast_unchecked() + } + } +} + +impl Default for Invisible { + fn default() -> Self { + Self::new() + } +} + +pub trait InvisibleExt { + fn set_screen(&self, screen: &gdk::Screen); + + fn connect_property_screen_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> InvisibleExt for O { + fn set_screen(&self, screen: &gdk::Screen) { + unsafe { + ffi::gtk_invisible_set_screen(self.to_glib_none().0, screen.to_glib_none().0); + } + } + + fn connect_property_screen_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::screen", + transmute(notify_screen_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_screen_trampoline

(this: *mut ffi::GtkInvisible, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&Invisible::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/label.rs b/src/auto/label.rs index 3f6b10a40b..fbc0ed574c 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 3e78d79a8a..fe7a8e469f 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 3f812ee13a..dc33a94871 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index f7cb505158..b67766313e 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 04157da6eb..4e503f06b7 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 49f09e20c8..6dec49d0f0 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index aed5a94231..e275e5e005 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs new file mode 100644 index 0000000000..d834af9962 --- /dev/null +++ b/src/auto/lock_button.rs @@ -0,0 +1,258 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Actionable; +use Bin; +use Buildable; +use Button; +use Container; +use Widget; +use ffi; +use gio; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct LockButton(Object): Button, Bin, Container, Widget, Buildable, Actionable; + + match fn { + get_type => || ffi::gtk_lock_button_get_type(), + } +} + +impl LockButton { + pub fn new<'a, P: IsA + 'a, Q: Into>>(permission: Q) -> LockButton { + assert_initialized_main_thread!(); + let permission = permission.into(); + let permission = permission.to_glib_none(); + unsafe { + Widget::from_glib_none(ffi::gtk_lock_button_new(permission.0)).downcast_unchecked() + } + } +} + +pub trait LockButtonExt { + fn get_permission(&self) -> Option; + + fn set_permission<'a, P: IsA + 'a, Q: Into>>(&self, permission: Q); + + fn get_property_text_lock(&self) -> Option; + + fn set_property_text_lock(&self, text_lock: Option<&str>); + + fn get_property_text_unlock(&self) -> Option; + + fn set_property_text_unlock(&self, text_unlock: Option<&str>); + + fn get_property_tooltip_lock(&self) -> Option; + + fn set_property_tooltip_lock(&self, tooltip_lock: Option<&str>); + + fn get_property_tooltip_not_authorized(&self) -> Option; + + fn set_property_tooltip_not_authorized(&self, tooltip_not_authorized: Option<&str>); + + fn get_property_tooltip_unlock(&self) -> Option; + + fn set_property_tooltip_unlock(&self, tooltip_unlock: Option<&str>); + + fn connect_property_permission_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_text_lock_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_text_unlock_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_tooltip_lock_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_tooltip_not_authorized_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_tooltip_unlock_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> LockButtonExt for O { + fn get_permission(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_lock_button_get_permission(self.to_glib_none().0)) + } + } + + fn set_permission<'a, P: IsA + 'a, Q: Into>>(&self, permission: Q) { + let permission = permission.into(); + let permission = permission.to_glib_none(); + unsafe { + ffi::gtk_lock_button_set_permission(self.to_glib_none().0, permission.0); + } + } + + fn get_property_text_lock(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-lock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_text_lock(&self, text_lock: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "text-lock".to_glib_none().0, Value::from(text_lock).to_glib_none().0); + } + } + + fn get_property_text_unlock(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "text-unlock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_text_unlock(&self, text_unlock: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "text-unlock".to_glib_none().0, Value::from(text_unlock).to_glib_none().0); + } + } + + fn get_property_tooltip_lock(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "tooltip-lock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_tooltip_lock(&self, tooltip_lock: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "tooltip-lock".to_glib_none().0, Value::from(tooltip_lock).to_glib_none().0); + } + } + + fn get_property_tooltip_not_authorized(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "tooltip-not-authorized".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_tooltip_not_authorized(&self, tooltip_not_authorized: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "tooltip-not-authorized".to_glib_none().0, Value::from(tooltip_not_authorized).to_glib_none().0); + } + } + + fn get_property_tooltip_unlock(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "tooltip-unlock".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn set_property_tooltip_unlock(&self, tooltip_unlock: Option<&str>) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "tooltip-unlock".to_glib_none().0, Value::from(tooltip_unlock).to_glib_none().0); + } + } + + fn connect_property_permission_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::permission", + transmute(notify_permission_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_text_lock_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::text-lock", + transmute(notify_text_lock_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_text_unlock_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::text-unlock", + transmute(notify_text_unlock_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_tooltip_lock_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::tooltip-lock", + transmute(notify_tooltip_lock_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_tooltip_not_authorized_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::tooltip-not-authorized", + transmute(notify_tooltip_not_authorized_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_tooltip_unlock_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::tooltip-unlock", + transmute(notify_tooltip_unlock_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_permission_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_text_lock_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_text_unlock_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_tooltip_lock_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_tooltip_not_authorized_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_tooltip_unlock_trampoline

(this: *mut ffi::GtkLockButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&LockButton::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/menu.rs b/src/auto/menu.rs index 8eb4bd5551..c97d37bd46 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 4ec2186f29..77224e6373 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 3eb653d80a..051b13f184 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index 59b9e76fb1..d1f7eb4417 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 51ade06a2d..518ba54b37 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 152fadc57d..5a0e637c31 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 74723cabb0..2feed267f8 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 4e41cd4699..389656322d 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 201d0254bc..9fe5f6718a 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT mod about_dialog; @@ -28,6 +28,10 @@ mod alignment; pub use self::alignment::Alignment; pub use self::alignment::AlignmentExt; +mod app_chooser_button; +pub use self::app_chooser_button::AppChooserButton; +pub use self::app_chooser_button::AppChooserButtonExt; + mod app_chooser_dialog; pub use self::app_chooser_dialog::AppChooserDialog; pub use self::app_chooser_dialog::AppChooserDialogExt; @@ -140,6 +144,10 @@ mod cell_renderer_toggle; pub use self::cell_renderer_toggle::CellRendererToggle; pub use self::cell_renderer_toggle::CellRendererToggleExt; +mod cell_view; +pub use self::cell_view::CellView; +pub use self::cell_view::CellViewExt; + mod check_button; pub use self::check_button::CheckButton; @@ -228,6 +236,13 @@ pub use self::file_chooser_button::FileChooserButtonExt; mod file_chooser_dialog; pub use self::file_chooser_dialog::FileChooserDialog; +#[cfg(any(feature = "v3_20", feature = "dox"))] +mod file_chooser_native; +#[cfg(any(feature = "v3_20", feature = "dox"))] +pub use self::file_chooser_native::FileChooserNative; +#[cfg(any(feature = "v3_20", feature = "dox"))] +pub use self::file_chooser_native::FileChooserNativeExt; + mod file_chooser_widget; pub use self::file_chooser_widget::FileChooserWidget; pub use self::file_chooser_widget::FileChooserWidgetExt; @@ -389,6 +404,10 @@ mod info_bar; pub use self::info_bar::InfoBar; pub use self::info_bar::InfoBarExt; +mod invisible; +pub use self::invisible::Invisible; +pub use self::invisible::InvisibleExt; + mod label; pub use self::label::Label; pub use self::label::LabelExt; @@ -426,6 +445,10 @@ mod list_store; pub use self::list_store::ListStore; pub use self::list_store::ListStoreExt; +mod lock_button; +pub use self::lock_button::LockButton; +pub use self::lock_button::LockButtonExt; + mod menu; pub use self::menu::Menu; pub use self::menu::MenuExt; @@ -468,10 +491,25 @@ pub use self::model_button::ModelButton; #[cfg(any(feature = "v3_16", feature = "dox"))] pub use self::model_button::ModelButtonExt; +mod mount_operation; +pub use self::mount_operation::MountOperation; +pub use self::mount_operation::MountOperationExt; + +#[cfg(any(feature = "v3_20", feature = "dox"))] +mod native_dialog; +#[cfg(any(feature = "v3_20", feature = "dox"))] +pub use self::native_dialog::NativeDialog; +#[cfg(any(feature = "v3_20", feature = "dox"))] +pub use self::native_dialog::NativeDialogExt; + mod notebook; pub use self::notebook::Notebook; pub use self::notebook::NotebookExt; +mod offscreen_window; +pub use self::offscreen_window::OffscreenWindow; +pub use self::offscreen_window::OffscreenWindowExt; + mod orientable; pub use self::orientable::Orientable; pub use self::orientable::OrientableExt; @@ -480,6 +518,13 @@ mod overlay; pub use self::overlay::Overlay; pub use self::overlay::OverlayExt; +#[cfg(any(feature = "v3_22", feature = "dox"))] +mod pad_controller; +#[cfg(any(feature = "v3_22", feature = "dox"))] +pub use self::pad_controller::PadController; +#[cfg(any(feature = "v3_22", feature = "dox"))] +pub use self::pad_controller::PadControllerExt; + mod page_setup; pub use self::page_setup::PageSetup; pub use self::page_setup::PageSetupExt; @@ -492,6 +537,13 @@ mod places_sidebar; pub use self::places_sidebar::PlacesSidebar; pub use self::places_sidebar::PlacesSidebarExt; +#[cfg(any(not(windows), feature = "dox"))] +mod plug; +#[cfg(any(not(windows), feature = "dox"))] +pub use self::plug::Plug; +#[cfg(any(not(windows), feature = "dox"))] +pub use self::plug::PlugExt; + #[cfg(any(feature = "v3_12", feature = "dox"))] mod popover; #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -625,6 +677,13 @@ mod size_group; pub use self::size_group::SizeGroup; pub use self::size_group::SizeGroupExt; +#[cfg(any(not(windows), feature = "dox"))] +mod socket; +#[cfg(any(not(windows), feature = "dox"))] +pub use self::socket::Socket; +#[cfg(any(not(windows), feature = "dox"))] +pub use self::socket::SocketExt; + mod spin_button; pub use self::spin_button::SpinButton; pub use self::spin_button::SpinButtonExt; @@ -831,6 +890,7 @@ pub use self::enums::ArrowType; pub use self::enums::AssistantPageType; #[cfg(any(feature = "v3_10", feature = "dox"))] pub use self::enums::BaselinePosition; +pub use self::enums::BorderStyle; pub use self::enums::BuilderError; pub use self::enums::ButtonBoxStyle; #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -870,6 +930,7 @@ pub use self::enums::NumberUpLayout; pub use self::enums::Orientation; pub use self::enums::PackDirection; pub use self::enums::PackType; +pub use self::enums::PadActionType; pub use self::enums::PageOrientation; pub use self::enums::PageSet; #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -910,6 +971,7 @@ pub use self::enums::StateType; pub use self::enums::TextDirection; #[cfg(any(feature = "v3_16", feature = "dox"))] pub use self::enums::TextExtendSelection; +pub use self::enums::TextViewLayer; pub use self::enums::TextWindowType; pub use self::enums::ToolbarStyle; pub use self::enums::TreeViewColumnSizing; @@ -955,6 +1017,7 @@ pub mod traits { pub use super::ActionableExt; pub use super::AdjustmentExt; pub use super::AlignmentExt; + pub use super::AppChooserButtonExt; pub use super::AppChooserDialogExt; pub use super::AppChooserWidgetExt; pub use super::GtkApplicationExt; @@ -983,6 +1046,7 @@ pub mod traits { pub use super::CellRendererSpinnerExt; pub use super::CellRendererTextExt; pub use super::CellRendererToggleExt; + pub use super::CellViewExt; pub use super::CheckMenuItemExt; pub use super::ClipboardExt; pub use super::ColorButtonExt; @@ -1003,6 +1067,8 @@ pub mod traits { pub use super::ExpanderExt; pub use super::FileChooserExt; pub use super::FileChooserButtonExt; + #[cfg(any(feature = "v3_20", feature = "dox"))] + pub use super::FileChooserNativeExt; pub use super::FileChooserWidgetExt; pub use super::FileFilterExt; pub use super::FixedExt; @@ -1045,6 +1111,7 @@ pub mod traits { pub use super::ImageExt; pub use super::ImageMenuItemExt; pub use super::InfoBarExt; + pub use super::InvisibleExt; pub use super::LabelExt; pub use super::LayoutExt; #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -1055,6 +1122,7 @@ pub mod traits { #[cfg(any(feature = "v3_10", feature = "dox"))] pub use super::ListBoxRowExt; pub use super::ListStoreExt; + pub use super::LockButtonExt; pub use super::MenuExt; pub use super::MenuBarExt; #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -1066,12 +1134,20 @@ pub mod traits { pub use super::MiscExt; #[cfg(any(feature = "v3_16", feature = "dox"))] pub use super::ModelButtonExt; + pub use super::MountOperationExt; + #[cfg(any(feature = "v3_20", feature = "dox"))] + pub use super::NativeDialogExt; pub use super::NotebookExt; + pub use super::OffscreenWindowExt; pub use super::OrientableExt; pub use super::OverlayExt; + #[cfg(any(feature = "v3_22", feature = "dox"))] + pub use super::PadControllerExt; pub use super::PageSetupExt; pub use super::PanedExt; pub use super::PlacesSidebarExt; + #[cfg(any(not(windows), feature = "dox"))] + pub use super::PlugExt; #[cfg(any(feature = "v3_12", feature = "dox"))] pub use super::PopoverExt; #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -1103,6 +1179,8 @@ pub mod traits { #[cfg(any(feature = "v3_20", feature = "dox"))] pub use super::ShortcutsWindowExt; pub use super::SizeGroupExt; + #[cfg(any(not(windows), feature = "dox"))] + pub use super::SocketExt; pub use super::SpinButtonExt; pub use super::SpinnerExt; #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 829b8b8075..0ef8e57830 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs new file mode 100644 index 0000000000..1fff2faa75 --- /dev/null +++ b/src/auto/mount_operation.rs @@ -0,0 +1,150 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Window; +use ffi; +use gdk; +use gio; +use gio_ffi; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct MountOperation(Object): [ + gio::MountOperation => gio_ffi::GMountOperation, + ]; + + match fn { + get_type => || ffi::gtk_mount_operation_get_type(), + } +} + +impl MountOperation { + pub fn new<'a, P: IsA + 'a, Q: Into>>(parent: Q) -> MountOperation { + assert_initialized_main_thread!(); + let parent = parent.into(); + let parent = parent.to_glib_none(); + unsafe { + gio::MountOperation::from_glib_full(ffi::gtk_mount_operation_new(parent.0)).downcast_unchecked() + } + } +} + +pub trait MountOperationExt { + fn get_parent(&self) -> Option; + + fn get_screen(&self) -> Option; + + fn is_showing(&self) -> bool; + + fn set_parent<'a, P: IsA + 'a, Q: Into>>(&self, parent: Q); + + fn set_screen(&self, screen: &gdk::Screen); + + fn get_property_is_showing(&self) -> bool; + + fn connect_property_is_showing_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_parent_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_screen_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> MountOperationExt for O { + fn get_parent(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_mount_operation_get_parent(self.to_glib_none().0)) + } + } + + fn get_screen(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_mount_operation_get_screen(self.to_glib_none().0)) + } + } + + fn is_showing(&self) -> bool { + unsafe { + from_glib(ffi::gtk_mount_operation_is_showing(self.to_glib_none().0)) + } + } + + fn set_parent<'a, P: IsA + 'a, Q: Into>>(&self, parent: Q) { + let parent = parent.into(); + let parent = parent.to_glib_none(); + unsafe { + ffi::gtk_mount_operation_set_parent(self.to_glib_none().0, parent.0); + } + } + + fn set_screen(&self, screen: &gdk::Screen) { + unsafe { + ffi::gtk_mount_operation_set_screen(self.to_glib_none().0, screen.to_glib_none().0); + } + } + + fn get_property_is_showing(&self) -> bool { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "is-showing".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() + } + } + + fn connect_property_is_showing_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::is-showing", + transmute(notify_is_showing_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_parent_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::parent", + transmute(notify_parent_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_screen_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::screen", + transmute(notify_screen_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_is_showing_trampoline

(this: *mut ffi::GtkMountOperation, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&MountOperation::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_parent_trampoline

(this: *mut ffi::GtkMountOperation, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&MountOperation::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_screen_trampoline

(this: *mut ffi::GtkMountOperation, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&MountOperation::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs new file mode 100644 index 0000000000..8e4d00a535 --- /dev/null +++ b/src/auto/native_dialog.rs @@ -0,0 +1,261 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +#[cfg(any(feature = "v3_20", feature = "dox"))] +use Window; +use ffi; +use glib; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use glib::Value; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use glib::object::Downcast; +use glib::object::IsA; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use glib::signal::SignalHandlerId; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use libc; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use std::boxed::Box as Box_; +use std::mem; +#[cfg(any(feature = "v3_20", feature = "dox"))] +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct NativeDialog(Object); + + match fn { + get_type => || ffi::gtk_native_dialog_get_type(), + } +} + +pub trait NativeDialogExt { + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn destroy(&self); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_modal(&self) -> bool; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_title(&self) -> Option; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_transient_for(&self) -> Option; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_visible(&self) -> bool; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn hide(&self); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn run(&self) -> i32; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_modal(&self, modal: bool); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_title(&self, title: &str); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_transient_for<'a, P: IsA + 'a, Q: Into>>(&self, parent: Q); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn show(&self); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_property_visible(&self, visible: bool); + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_response(&self, f: F) -> SignalHandlerId; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_modal_notify(&self, f: F) -> SignalHandlerId; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_title_notify(&self, f: F) -> SignalHandlerId; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_transient_for_notify(&self, f: F) -> SignalHandlerId; + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_visible_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> NativeDialogExt for O { + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn destroy(&self) { + unsafe { + ffi::gtk_native_dialog_destroy(self.to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_modal(&self) -> bool { + unsafe { + from_glib(ffi::gtk_native_dialog_get_modal(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_title(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_native_dialog_get_title(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_transient_for(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_native_dialog_get_transient_for(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn get_visible(&self) -> bool { + unsafe { + from_glib(ffi::gtk_native_dialog_get_visible(self.to_glib_none().0)) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn hide(&self) { + unsafe { + ffi::gtk_native_dialog_hide(self.to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn run(&self) -> i32 { + unsafe { + ffi::gtk_native_dialog_run(self.to_glib_none().0) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_modal(&self, modal: bool) { + unsafe { + ffi::gtk_native_dialog_set_modal(self.to_glib_none().0, modal.to_glib()); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_title(&self, title: &str) { + unsafe { + ffi::gtk_native_dialog_set_title(self.to_glib_none().0, title.to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_transient_for<'a, P: IsA + 'a, Q: Into>>(&self, parent: Q) { + let parent = parent.into(); + let parent = parent.to_glib_none(); + unsafe { + ffi::gtk_native_dialog_set_transient_for(self.to_glib_none().0, parent.0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn show(&self) { + unsafe { + ffi::gtk_native_dialog_show(self.to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn set_property_visible(&self, visible: bool) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "visible".to_glib_none().0, Value::from(&visible).to_glib_none().0); + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_response(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "response", + transmute(response_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_modal_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::modal", + transmute(notify_modal_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_title_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::title", + transmute(notify_title_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_transient_for_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::transient-for", + transmute(notify_transient_for_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_property_visible_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::visible", + transmute(notify_visible_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn response_trampoline

(this: *mut ffi::GtkNativeDialog, response_id: libc::c_int, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, i32) + 'static) = transmute(f); + f(&NativeDialog::from_glib_borrow(this).downcast_unchecked(), response_id) +} + +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn notify_modal_trampoline

(this: *mut ffi::GtkNativeDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&NativeDialog::from_glib_borrow(this).downcast_unchecked()) +} + +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn notify_title_trampoline

(this: *mut ffi::GtkNativeDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&NativeDialog::from_glib_borrow(this).downcast_unchecked()) +} + +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn notify_transient_for_trampoline

(this: *mut ffi::GtkNativeDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&NativeDialog::from_glib_borrow(this).downcast_unchecked()) +} + +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn notify_visible_trampoline

(this: *mut ffi::GtkNativeDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&NativeDialog::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index 0247e3c64b..e424b8ad42 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs new file mode 100644 index 0000000000..f4c35fc0ec --- /dev/null +++ b/src/auto/offscreen_window.rs @@ -0,0 +1,61 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Bin; +use Buildable; +use Container; +use Widget; +use Window; +use cairo; +use ffi; +use gdk_pixbuf; +use glib::object::Downcast; +use glib::object::IsA; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::mem; +use std::ptr; + +glib_wrapper! { + pub struct OffscreenWindow(Object): Window, Bin, Container, Widget, Buildable; + + match fn { + get_type => || ffi::gtk_offscreen_window_get_type(), + } +} + +impl OffscreenWindow { + pub fn new() -> OffscreenWindow { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_offscreen_window_new()).downcast_unchecked() + } + } +} + +impl Default for OffscreenWindow { + fn default() -> Self { + Self::new() + } +} + +pub trait OffscreenWindowExt { + fn get_pixbuf(&self) -> Option; + + fn get_surface(&self) -> Option; +} + +impl> OffscreenWindowExt for O { + fn get_pixbuf(&self) -> Option { + unsafe { + from_glib_full(ffi::gtk_offscreen_window_get_pixbuf(self.to_glib_none().0)) + } + } + + fn get_surface(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_offscreen_window_get_surface(self.to_glib_none().0)) + } + } +} diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index bec2c2154a..d3ab74db36 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index 1ea5fa8e4c..8eaae613ba 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs new file mode 100644 index 0000000000..9bbed8c7ba --- /dev/null +++ b/src/auto/pad_controller.rs @@ -0,0 +1,121 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use EventController; +#[cfg(any(feature = "v3_22", feature = "dox"))] +use PadActionType; +#[cfg(any(feature = "v3_22", feature = "dox"))] +use Window; +use ffi; +use gdk; +use gio; +use glib; +use glib::StaticType; +use glib::Value; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; + +glib_wrapper! { + pub struct PadController(Object): EventController; + + match fn { + get_type => || ffi::gtk_pad_controller_get_type(), + } +} + +impl PadController { + #[cfg(any(feature = "v3_22", feature = "dox"))] + pub fn new<'a, P: IsA, Q: IsA, R: IsA + 'a, S: Into>>(window: &P, group: &Q, pad: S) -> PadController { + skip_assert_initialized!(); + let pad = pad.into(); + let pad = pad.to_glib_none(); + unsafe { + from_glib_full(ffi::gtk_pad_controller_new(window.to_glib_none().0, group.to_glib_none().0, pad.0)) + } + } +} + +pub trait PadControllerExt { + #[cfg(any(feature = "v3_22", feature = "dox"))] + fn set_action(&self, type_: PadActionType, index: i32, mode: i32, label: &str, action_name: &str); + + //#[cfg(any(feature = "v3_22", feature = "dox"))] + //fn set_action_entries(&self, entries: /*Ignored*/&[&PadActionEntry]); + + fn get_property_action_group(&self) -> Option; + + fn get_property_pad(&self) -> Option; + + fn connect_property_action_group_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_pad_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> PadControllerExt for O { + #[cfg(any(feature = "v3_22", feature = "dox"))] + fn set_action(&self, type_: PadActionType, index: i32, mode: i32, label: &str, action_name: &str) { + unsafe { + ffi::gtk_pad_controller_set_action(self.to_glib_none().0, type_.to_glib(), index, mode, label.to_glib_none().0, action_name.to_glib_none().0); + } + } + + //#[cfg(any(feature = "v3_22", feature = "dox"))] + //fn set_action_entries(&self, entries: /*Ignored*/&[&PadActionEntry]) { + // unsafe { TODO: call ffi::gtk_pad_controller_set_action_entries() } + //} + + fn get_property_action_group(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "action-group".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn get_property_pad(&self) -> Option { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "pad".to_glib_none().0, value.to_glib_none_mut().0); + value.get() + } + } + + fn connect_property_action_group_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::action-group", + transmute(notify_action_group_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_pad_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::pad", + transmute(notify_pad_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn notify_action_group_trampoline

(this: *mut ffi::GtkPadController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&PadController::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_pad_trampoline

(this: *mut ffi::GtkPadController, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&PadController::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 3aa8201874..6a898f8f2b 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index 5a0de4503c..a42a03f8ba 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index f5895ae747..dea09e9bae 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 77fed23e34..8d2f83abbf 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -167,8 +167,8 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_10", feature = "dox"))] fn connect_drag_action_ask i32 + 'static>(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v3_20", feature = "dox"))] - //fn connect_mount(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_mount(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v3_10", feature = "dox"))] fn connect_open_location(&self, f: F) -> SignalHandlerId; @@ -190,8 +190,8 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_20", feature = "dox"))] fn connect_show_other_locations_with_flags(&self, f: F) -> SignalHandlerId; - //#[cfg(any(feature = "v3_20", feature = "dox"))] - //fn connect_unmount(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_unmount(&self, f: F) -> SignalHandlerId; fn connect_property_local_only_notify(&self, f: F) -> SignalHandlerId; @@ -521,10 +521,14 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_20", feature = "dox"))] - //fn connect_mount(&self, f: F) -> SignalHandlerId { - // Ignored mount_operation: Gio.MountOperation - //} + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_mount(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "mount", + transmute(mount_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } #[cfg(any(feature = "v3_10", feature = "dox"))] fn connect_open_location(&self, f: F) -> SignalHandlerId { @@ -584,10 +588,14 @@ impl + IsA> PlacesSidebarExt for O { } } - //#[cfg(any(feature = "v3_20", feature = "dox"))] - //fn connect_unmount(&self, f: F) -> SignalHandlerId { - // Ignored mount_operation: Gio.MountOperation - //} + #[cfg(any(feature = "v3_20", feature = "dox"))] + fn connect_unmount(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "unmount", + transmute(unmount_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } fn connect_property_local_only_notify(&self, f: F) -> SignalHandlerId { unsafe { @@ -679,6 +687,14 @@ where P: IsA { f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), actions) } +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn mount_trampoline

(this: *mut ffi::GtkPlacesSidebar, mount_operation: *mut gio_ffi::GMountOperation, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, &gio::MountOperation) + 'static) = transmute(f); + f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(mount_operation)) +} + #[cfg(any(feature = "v3_10", feature = "dox"))] unsafe extern "C" fn open_location_trampoline

(this: *mut ffi::GtkPlacesSidebar, location: *mut gio_ffi::GFile, open_flags: ffi::GtkPlacesOpenFlags, f: glib_ffi::gpointer) where P: IsA { @@ -726,6 +742,14 @@ where P: IsA { f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), from_glib(open_flags)) } +#[cfg(any(feature = "v3_20", feature = "dox"))] +unsafe extern "C" fn unmount_trampoline

(this: *mut ffi::GtkPlacesSidebar, mount_operation: *mut gio_ffi::GMountOperation, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, &gio::MountOperation) + 'static) = transmute(f); + f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(mount_operation)) +} + unsafe extern "C" fn notify_local_only_trampoline

(this: *mut ffi::GtkPlacesSidebar, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); diff --git a/src/auto/plug.rs b/src/auto/plug.rs new file mode 100644 index 0000000000..5f60f9d395 --- /dev/null +++ b/src/auto/plug.rs @@ -0,0 +1,142 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Bin; +use Buildable; +use Container; +use Widget; +use Window; +use ffi; +use gdk; +use glib; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; +use xlib; + +glib_wrapper! { + pub struct Plug(Object): Window, Bin, Container, Widget, Buildable; + + match fn { + get_type => || ffi::gtk_plug_get_type(), + } +} + +impl Plug { + pub fn new(socket_id: xlib::Window) -> Plug { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_plug_new(socket_id)).downcast_unchecked() + } + } + + pub fn new_for_display(display: &gdk::Display, socket_id: xlib::Window) -> Plug { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_plug_new_for_display(display.to_glib_none().0, socket_id)).downcast_unchecked() + } + } +} + +pub trait PlugExt { + fn construct(&self, socket_id: xlib::Window); + + fn construct_for_display(&self, display: &gdk::Display, socket_id: xlib::Window); + + fn get_embedded(&self) -> bool; + + fn get_id(&self) -> xlib::Window; + + fn get_socket_window(&self) -> Option; + + fn connect_embedded(&self, f: F) -> SignalHandlerId; + + fn connect_property_embedded_notify(&self, f: F) -> SignalHandlerId; + + fn connect_property_socket_window_notify(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> PlugExt for O { + fn construct(&self, socket_id: xlib::Window) { + unsafe { + ffi::gtk_plug_construct(self.to_glib_none().0, socket_id); + } + } + + fn construct_for_display(&self, display: &gdk::Display, socket_id: xlib::Window) { + unsafe { + ffi::gtk_plug_construct_for_display(self.to_glib_none().0, display.to_glib_none().0, socket_id); + } + } + + fn get_embedded(&self) -> bool { + unsafe { + from_glib(ffi::gtk_plug_get_embedded(self.to_glib_none().0)) + } + } + + fn get_id(&self) -> xlib::Window { + unsafe { + ffi::gtk_plug_get_id(self.to_glib_none().0) + } + } + + fn get_socket_window(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_plug_get_socket_window(self.to_glib_none().0)) + } + } + + fn connect_embedded(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "embedded", + transmute(embedded_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_embedded_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::embedded", + transmute(notify_embedded_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_property_socket_window_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::socket-window", + transmute(notify_socket_window_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn embedded_trampoline

(this: *mut ffi::GtkPlug, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&Plug::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_embedded_trampoline

(this: *mut ffi::GtkPlug, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&Plug::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn notify_socket_window_trampoline

(this: *mut ffi::GtkPlug, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&Plug::from_glib_borrow(this).downcast_unchecked()) +} diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 8a42b1f027..35aaf610c6 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 03281e6762..5004fefac4 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index f9911c6d53..33c76b32f8 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index 926894a437..b3c6f21ee4 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 3d14d3e641..5f772f0371 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index dde194235e..1e9d0af81b 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index 45d01c4955..b6d0e85ed1 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index e1cc21fb35..d652e7d9e5 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index 1608c90063..9bd2ad8673 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 052ad8fbba..7898b89c50 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index 4ecb383233..284758ce33 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index 476ee0bf41..5f9ef762e4 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 22e89cb4e8..c8a0cec0b0 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 28ed7e57a1..c648012c87 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index 9c1643f07d..700b1705fa 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 6d398c46cb..654ce4a7e5 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index 4918165e5b..7d6bd17799 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 1531e4dbcd..3fb629f19f 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index 6de5f222e9..2f25178da0 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 2884394f5a..86692e71dd 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index c6c0de5536..84e7ce2ced 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,7 +1,9 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; +#[cfg(any(feature = "v3_16", feature = "dox"))] +use Border; use ScrollablePolicy; use ffi; use glib; @@ -26,8 +28,8 @@ glib_wrapper! { } pub trait ScrollableExt { - //#[cfg(any(feature = "v3_16", feature = "dox"))] - //fn get_border(&self, border: /*Ignored*/Border) -> bool; + #[cfg(any(feature = "v3_16", feature = "dox"))] + fn get_border(&self) -> Option; fn get_hadjustment(&self) -> Option; @@ -55,10 +57,14 @@ pub trait ScrollableExt { } impl + IsA> ScrollableExt for O { - //#[cfg(any(feature = "v3_16", feature = "dox"))] - //fn get_border(&self, border: /*Ignored*/Border) -> bool { - // unsafe { TODO: call ffi::gtk_scrollable_get_border() } - //} + #[cfg(any(feature = "v3_16", feature = "dox"))] + fn get_border(&self) -> Option { + unsafe { + let mut border = Border::uninitialized(); + let ret = from_glib(ffi::gtk_scrollable_get_border(self.to_glib_none().0, border.to_glib_none_mut().0)); + if ret { Some(border) } else { None } + } + } fn get_hadjustment(&self) -> Option { unsafe { diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index ab4d4069b1..8d3b3ece34 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index a331ab32c2..0891db3438 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index b10c65ee77..aebb9a5827 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index 64d3dd5367..5e40bd7a52 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index 94b7640d8d..a41ed4d73f 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 59713e2694..a05f8c0c7f 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index 0d004e6b20..d78fb93716 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index c6b58bdba0..5aa569f948 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index a02cf8e78c..833ea98ca9 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use CornerType; diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index e8c7fa6000..d7d90adf7c 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index bd67d30dd8..0c22219cbe 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/socket.rs b/src/auto/socket.rs new file mode 100644 index 0000000000..b0bebd4c16 --- /dev/null +++ b/src/auto/socket.rs @@ -0,0 +1,106 @@ +// This file was generated by gir (8080733) from gir-files (469db10) +// DO NOT EDIT + +use Buildable; +use Container; +use Widget; +use ffi; +use gdk; +use glib; +use glib::object::Downcast; +use glib::object::IsA; +use glib::signal::SignalHandlerId; +use glib::signal::connect; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::boxed::Box as Box_; +use std::mem; +use std::mem::transmute; +use std::ptr; +use xlib; + +glib_wrapper! { + pub struct Socket(Object): Container, Widget, Buildable; + + match fn { + get_type => || ffi::gtk_socket_get_type(), + } +} + +impl Socket { + pub fn new() -> Socket { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(ffi::gtk_socket_new()).downcast_unchecked() + } + } +} + +impl Default for Socket { + fn default() -> Self { + Self::new() + } +} + +pub trait SocketExt { + fn add_id(&self, window: xlib::Window); + + fn get_id(&self) -> xlib::Window; + + fn get_plug_window(&self) -> Option; + + fn connect_plug_added(&self, f: F) -> SignalHandlerId; + + fn connect_plug_removed bool + 'static>(&self, f: F) -> SignalHandlerId; +} + +impl + IsA> SocketExt for O { + fn add_id(&self, window: xlib::Window) { + unsafe { + ffi::gtk_socket_add_id(self.to_glib_none().0, window); + } + } + + fn get_id(&self) -> xlib::Window { + unsafe { + ffi::gtk_socket_get_id(self.to_glib_none().0) + } + } + + fn get_plug_window(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_socket_get_plug_window(self.to_glib_none().0)) + } + } + + fn connect_plug_added(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "plug-added", + transmute(plug_added_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn connect_plug_removed bool + 'static>(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_ bool + 'static>> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "plug-removed", + transmute(plug_removed_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } +} + +unsafe extern "C" fn plug_added_trampoline

(this: *mut ffi::GtkSocket, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&Socket::from_glib_borrow(this).downcast_unchecked()) +} + +unsafe extern "C" fn plug_removed_trampoline

(this: *mut ffi::GtkSocket, f: glib_ffi::gpointer) -> glib_ffi::gboolean +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) -> bool + 'static) = transmute(f); + f(&Socket::from_glib_borrow(this).downcast_unchecked()).to_glib() +} diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index e81015c36f..baaf24dc1a 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index b76b6a8b50..92b1f1bcd7 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index 2060fbbc58..be4573f343 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index da8f80082c..827c8fbd09 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index c4a7bce4af..59fc4a0a9a 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 81fa8826c5..66daddabfe 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ImageType; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index f696dcbc07..917956d156 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 43b00fbd45..09518c3980 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,6 +1,7 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT +use Border; use CssSection; use IconSet; use JunctionSides; @@ -87,7 +88,7 @@ pub trait StyleContextExt { fn get_background_color(&self, state: StateFlags) -> gdk::RGBA; - //fn get_border(&self, state: StateFlags, border: /*Ignored*/Border); + fn get_border(&self, state: StateFlags) -> Border; fn get_border_color(&self, state: StateFlags) -> gdk::RGBA; @@ -100,9 +101,9 @@ pub trait StyleContextExt { fn get_junction_sides(&self) -> JunctionSides; - //fn get_margin(&self, state: StateFlags, margin: /*Ignored*/Border); + fn get_margin(&self, state: StateFlags) -> Border; - //fn get_padding(&self, state: StateFlags, padding: /*Ignored*/Border); + fn get_padding(&self, state: StateFlags) -> Border; fn get_parent(&self) -> Option; @@ -233,9 +234,13 @@ impl + IsA> StyleContextExt for O { } } - //fn get_border(&self, state: StateFlags, border: /*Ignored*/Border) { - // unsafe { TODO: call ffi::gtk_style_context_get_border() } - //} + fn get_border(&self, state: StateFlags) -> Border { + unsafe { + let mut border = Border::uninitialized(); + ffi::gtk_style_context_get_border(self.to_glib_none().0, state.to_glib(), border.to_glib_none_mut().0); + border + } + } fn get_border_color(&self, state: StateFlags) -> gdk::RGBA { unsafe { @@ -272,13 +277,21 @@ impl + IsA> StyleContextExt for O { } } - //fn get_margin(&self, state: StateFlags, margin: /*Ignored*/Border) { - // unsafe { TODO: call ffi::gtk_style_context_get_margin() } - //} + fn get_margin(&self, state: StateFlags) -> Border { + unsafe { + let mut margin = Border::uninitialized(); + ffi::gtk_style_context_get_margin(self.to_glib_none().0, state.to_glib(), margin.to_glib_none_mut().0); + margin + } + } - //fn get_padding(&self, state: StateFlags, padding: /*Ignored*/Border) { - // unsafe { TODO: call ffi::gtk_style_context_get_padding() } - //} + fn get_padding(&self, state: StateFlags) -> Border { + unsafe { + let mut padding = Border::uninitialized(); + ffi::gtk_style_context_get_padding(self.to_glib_none().0, state.to_glib(), padding.to_glib_none_mut().0); + padding + } + } fn get_parent(&self) -> Option { unsafe { diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index adf4d9296c..d1e82adba5 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 056eaebc9d..4b6f06b85d 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index 3817133e1d..bf33f2387f 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 22620a85b7..882a6a35c5 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index a115935f3c..389e1f2e14 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index a4f3e2872e..5df876acef 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 6db19ded98..392c27b944 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index ae5a759532..fdb5ff9224 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index a5c1210a22..8a0dc3634e 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 38d0b0649d..1681779bad 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index f9a99a0f62..dc0112b215 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 520ca722c6..1ed8d0e0d2 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index 1c8bc214e8..44cb1e693f 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 7ba25853db..6764d06070 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 2903765c05..55d5f739c4 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 91024a5f58..109648dee1 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index f1d96e34f7..d72e947706 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index 6263a34378..d54377498f 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index ff1fad0251..0928ee215b 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 2f5a8de6ff..8bde41c720 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index a4a45fcdbd..0cb29a17b7 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index ed8d4b8db0..05c98bab42 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index c0c1784418..204c3dfa6f 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index 618be02aba..f427ad779f 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 80c2c025e4..a72ca43361 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index c24c5e454a..06743c6b18 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index 1962c48e21..aeedf666f1 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index c1d252d5e2..b3e672be33 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 0d5a94474b..1821f27874 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 5ca262dc71..7d394b871c 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 3d18d2d0fa..424d7868cb 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index b4840c0f44..fcd0112e8e 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 (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index 2a06d99f14..d819dfb221 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index e0a3dd46ae..b9d25fcc08 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index b584b262ba..f4a0f7180b 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AccelFlags; diff --git a/src/auto/window.rs b/src/auto/window.rs index fd363938f4..66af775fc0 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index b20446f4ed..2415c1164c 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (38add47) from gir-files (469db10) +// This file was generated by gir (8080733) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/border.rs b/src/border.rs new file mode 100644 index 0000000000..e3ac5cb84f --- /dev/null +++ b/src/border.rs @@ -0,0 +1,51 @@ +// Copyright 2013-2017, The Gtk-rs Project Developers. +// See the COPYRIGHT file at the top-level directory of this distribution. +// Licensed under the MIT license, see the LICENSE file or + +use ffi; +use glib::translate::*; +use glib_ffi; +use gobject_ffi; +use std::mem; +use std::ptr; + +glib_wrapper! { + pub struct Border(Boxed); + + match fn { + copy => |ptr| ffi::gtk_border_copy(mut_override(ptr)), + free => |ptr| ffi::gtk_border_free(ptr), + get_type => || ffi::gtk_border_get_type(), + } +} + +impl Border { + pub fn new() -> Border { + assert_initialized_main_thread!(); + unsafe { + from_glib_full(ffi::gtk_border_new()) + } + } + + pub fn right(&mut self) -> &mut i16 { + &mut (*self.0).right + } + + pub fn left(&mut self) -> &mut i16 { + &mut (*self.0).left + } + + pub fn top(&mut self) -> &mut i16 { + &mut (*self.0).top + } + + pub fn bottom(&mut self) -> &mut i16 { + &mut (*self.0).bottom + } +} + +impl Default for Border { + fn default() -> Self { + Self::new() + } +} diff --git a/src/invisible.rs b/src/invisible.rs new file mode 100644 index 0000000000..a8fe7216ba --- /dev/null +++ b/src/invisible.rs @@ -0,0 +1,21 @@ +// Copyright 2013-2017, The Gtk-rs Project Developers. +// See the COPYRIGHT file at the top-level directory of this distribution. +// Licensed under the MIT license, see the LICENSE file or + +use ffi; +use gdk; +use glib::translate::{ToGlibPtr, from_glib_none}; +use Invisible; + +// For some reasons, it's not generated... +pub trait InvisibleExtManual { + fn get_screen(&self) -> Option; +} + +impl InvisibleExtManual for Invisible { + fn get_screen(&self) -> Option { + unsafe { + from_glib_none(ffi::gtk_invisible_get_screen(self.to_glib_none().0)) + } + } +} \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index af878abf9c..f4835032a3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,6 +180,8 @@ pub use glib::{ Value, }; +pub mod xlib; + pub const STYLE_PROVIDER_PRIORITY_FALLBACK: u32 = ffi::GTK_STYLE_PROVIDER_PRIORITY_FALLBACK as u32; pub const STYLE_PROVIDER_PRIORITY_THEME: u32 = ffi::GTK_STYLE_PROVIDER_PRIORITY_THEME as u32; pub const STYLE_PROVIDER_PRIORITY_SETTINGS: u32 = ffi::GTK_STYLE_PROVIDER_PRIORITY_SETTINGS as u32; @@ -202,6 +204,7 @@ mod application; mod assistant; mod buildable; mod builder; +mod border; mod color_button; mod color_chooser; mod dialog; @@ -210,6 +213,7 @@ mod entry_buffer; mod enums; mod file_chooser_dialog; mod fixed; +mod invisible; mod list_store; mod menu; mod message_dialog; @@ -247,6 +251,7 @@ pub use gdk::Rectangle as Allocation; pub use gdk::Rectangle; pub use app_chooser::AppChooser; +pub use border::Border; pub use entry_buffer::EntryBuffer; pub use recent_data::RecentData; pub use requisition::Requisition; diff --git a/src/prelude.rs b/src/prelude.rs index da4b53462c..c8be2102c7 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -16,6 +16,7 @@ pub use color_chooser::ColorChooserExtManual; pub use dialog::DialogExtManual; pub use drag_context::DragContextExtManual; pub use fixed::FixedExtManual; +pub use invisible::InvisibleExtManual; pub use list_store::ListStoreExtManual; pub use menu::MenuExtManual; pub use notebook::NotebookExtManual; diff --git a/src/xlib.rs b/src/xlib.rs new file mode 100644 index 0000000000..ca4b948d38 --- /dev/null +++ b/src/xlib.rs @@ -0,0 +1,7 @@ +// Copyright 2013-2017, The Gtk-rs Project Developers. +// See the COPYRIGHT file at the top-level directory of this distribution. +// Licensed under the MIT license, see the LICENSE file or + +use ffi; + +pub type Window = ffi::xlib::Window; From 06d9c4417d19a4c01ccf994f1341ae1b7e61da64 Mon Sep 17 00:00:00 2001 From: Charles Samborski Date: Sun, 3 Dec 2017 10:08:52 +0100 Subject: [PATCH 012/210] Add support for file chooser buttons This commit adds support for file chooser buttons. They are represented as a slice of tuples `(text, action)`. The original function uses varargs to support an arbitrary number of arguments. This implementation supports up to 3 buttons. **This is a breaking change.** See: https://developer.gnome.org/gtk3/stable/GtkFileChooserDialog.html#gtk-file-chooser-dialog-new Improve file chooser with buttons reliability Following the reviews in gtk-rs/gtk#602, this commit: - uses the `with_buttons` function instead of modifying `new` to keep backward compatibility. - saves the button texts in `Stash` objects to avoid invalid pointers - panics when the number of buttons is too high (instead of silently truncating the number of buttons) Remove doc comment for `FileChooserDialog::with_buttons` Remove local variables in `FileChooserDialog::with_buttons` This commit removes the Stash variables from `FileChooserDialog::with_buttons`, as requested in the PR #602 Fix formatting issue Keep `downcast_unchecked` method on the same line as the closing parenthesis of the chopped-down call to `Widget::from_glib_none`. --- src/file_chooser_dialog.rs | 74 ++++++++++++++++++++++++++++++++++---- 1 file changed, 68 insertions(+), 6 deletions(-) diff --git a/src/file_chooser_dialog.rs b/src/file_chooser_dialog.rs index 271cbed118..6e1cf3b666 100644 --- a/src/file_chooser_dialog.rs +++ b/src/file_chooser_dialog.rs @@ -5,21 +5,83 @@ use ffi; use glib::translate::*; use glib::object::{Downcast, IsA}; +use libc::c_char; use std::ptr; use FileChooserAction; use FileChooserDialog; +use ResponseType; use Widget; use Window; impl FileChooserDialog { - pub fn new>(title: Option<&str>, parent: Option<&T>, action: FileChooserAction) - -> FileChooserDialog { + // TODO: Keep the other constructor with buttons support as the only constructor (this one was + // left for compatibility) and rename it to `new` for consistency. + pub fn new>(title: Option<&str>, parent: Option<&T>, action: FileChooserAction) -> FileChooserDialog { assert_initialized_main_thread!(); unsafe { - Widget::from_glib_none( - ffi::gtk_file_chooser_dialog_new(title.to_glib_none().0, parent.to_glib_none().0, - action.to_glib(), ptr::null_mut())) - .downcast_unchecked() + Widget::from_glib_none(ffi::gtk_file_chooser_dialog_new( + title.to_glib_none().0, + parent.to_glib_none().0, + action.to_glib(), + ptr::null::() + )).downcast_unchecked() + } + } + + pub fn with_buttons>(title: Option<&str>, parent: Option<&T>, action: FileChooserAction, buttons: &[(&str, ResponseType)]) -> FileChooserDialog { + assert_initialized_main_thread!(); + unsafe { + Widget::from_glib_none(match buttons.len() { + 0 => { + ffi::gtk_file_chooser_dialog_new( + title.to_glib_none().0, + parent.to_glib_none().0, + action.to_glib(), + ptr::null::() + ) + }, + 1 => { + ffi::gtk_file_chooser_dialog_new( + title.to_glib_none().0, + parent.to_glib_none().0, + action.to_glib(), + buttons[0].0.to_glib_none().0, + buttons[0].1.to_glib(), + ptr::null::(), + ) + }, + 2 => { + ffi::gtk_file_chooser_dialog_new( + title.to_glib_none().0, + parent.to_glib_none().0, + action.to_glib(), + buttons[0].0.to_glib_none().0, + buttons[0].1.to_glib(), + (buttons[1].0.to_glib_none() as Stash<*const c_char, str>).0, + buttons[1].1.to_glib(), + ptr::null::(), + ) + }, + 3 => { + ffi::gtk_file_chooser_dialog_new( + title.to_glib_none().0, + parent.to_glib_none().0, + action.to_glib(), + buttons[0].0.to_glib_none().0, + buttons[0].1.to_glib(), + (buttons[1].0.to_glib_none() as Stash<*const c_char, str>).0, + buttons[1].1.to_glib(), + (buttons[2].0.to_glib_none() as Stash<*const c_char, str>).0, + buttons[2].1.to_glib(), + ptr::null::(), + ) + }, + _ => { + // TODO: Support arbitrary number of buttons once variadic functions are supported. + // See: https://github.com/rust-lang/rust/issues/44930 + panic!(format!("`FileChooserDialog::with_buttons` does not support 4+ buttons, received {}", buttons.len())) + } + }).downcast_unchecked() } } } From aea711027db002c90dc9f1b80a36b712181c918e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 13 Dec 2017 11:46:57 +0200 Subject: [PATCH 013/210] Regenerate with latest GIR See https://github.com/gtk-rs/gir/issues/508 and https://github.com/gtk-rs/gir/issues/509 --- 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 | 2 +- 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 | 74 +++++++++++++---------------- 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 | 2 +- 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 | 2 +- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 2 +- src/auto/window.rs | 2 +- src/auto/window_group.rs | 2 +- 206 files changed, 238 insertions(+), 246 deletions(-) diff --git a/gir b/gir index 80807333dc..13f739b2cb 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 80807333dcb4f3eeef58f2d0d2305f84d50c0bd7 +Subproject commit 13f739b2cb17cb7cd4bf01c45fcce802f351e688 diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 0bb63ad21c..08a4164f01 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index ad13fda300..38db9e23c5 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index d1a52b2fa9..1841eccf12 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index b041eb8506..9e7025452b 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index d3a679db50..f230502855 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 67d2d3aef2..1a02210f8e 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index ba37f24d2c..19a3810016 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 7423dda453..09af518b87 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index 07958e27a0..ab26d2952e 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index 0541378d57..a0af49b456 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ApplicationInhibitFlags; diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 92bde91510..42369e7378 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 9fd80d20a7..594dd9f026 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 9adbcfa77d..2bf7a11acf 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 01eeb72d07..450ce0b69f 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 657b36aae6..ab9cc4e9f1 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index 66caec487c..f203e0e469 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index cd9184241a..91923d4ef4 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 1c025a0c70..6a989e262c 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 8776131a20..d1b4bd3c66 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index f163f3c620..d73e2e81bf 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index 6c238d3a33..f544b3f1e6 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 27f170699a..d2852dcf2c 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 21373e7bbe..2eb17a776f 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 0505adf327..17356e42ad 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 9075faac16..29b3c570f6 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index 3348acf771..a3d036d511 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index aebded623f..fe665a7745 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 9f55d2ffaa..472a021108 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 89b3a9a4f6..2e5e2cc963 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index d747b9a73e..e74ff9a562 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index 203cc531b3..f372fb7827 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index db75d60cbd..6950149551 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index c34f60531f..63b424dc92 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index d4a8e0951c..1f3de468f9 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 3d16c2a52a..00868bc5bf 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index f87e73ad90..215da94efc 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index 5e00017622..ce96cfbc8e 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index c4d098dcd0..114098ed38 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 2b1ec27384..931db47316 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index c153fa8a14..24c4b7a806 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index c10e4104ba..f70874411b 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 83bf932f8b..1d0f293d97 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index f9b183a333..6f008b09a6 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index c483d5db56..ef67403cf7 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index d3db7bffb8..bf133bd40c 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index 044e0aa7df..83033fc060 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 0d7afc54a4..79e465cbee 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index 6d7fa6afe6..864eb77cf5 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 714b7a1ee2..4f1517f2ed 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index 07544a31cc..6572f9492a 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index 0d503257c6..e19dfe9cc4 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 744515ef93..b76b57f269 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index d6496ec8d4..caa0c773a4 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index d0c54d78a4..0c1ce565aa 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index 2ac1b371ad..5e79e2e7dd 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 52d3291252..b0e604d4d9 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 8faf37a730..610a643c28 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 7e863eb2e6..53dd2116cf 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index 4ab6beec62..1bfe4bfddc 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index 5051f11fd9..f75df123bb 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index abd8d73c7c..d494ed3193 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use FileChooser; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index 3d844b5a8c..59233807ac 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index be726132eb..4ba4d36b45 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index f1d206b73c..daedf13ba2 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 69b11948fd..b6db9c285f 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 4fff790d56..f529edf266 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index d9bfc060cb..72f7df1246 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index ae06524907..d9d70240d6 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 941c402783..1898561baf 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 46dc173845..9e1df5d705 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 28877c58d7..e313cae008 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index a42367e5f0..5aacb2bb41 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 8c6980370a..75f952fa78 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index 3129a918a2..d6da5139ef 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index d119d5ddc2..625c2eff58 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 28e177beb2..5d4c83a8ad 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index 04ddb91323..45a57f4463 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index 1ed55db265..dd1182cc5a 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index 48ac59e41e..a1a8a0688f 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 20d670740c..ec1762c404 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index f18ccf149c..2b98d5a65d 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 5814ac6ae4..1a1b79b150 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 27a8d2a34f..a253a03db2 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index c6c3442563..0fa129ee9b 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index fb4a250426..13b9868d86 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index aa43a9dbd7..56804a6c46 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index b6a373f312..8a1e6dbbdb 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 58672b782a..6a07269d0f 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index 8e551dabdb..878a105e48 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; @@ -19,8 +19,6 @@ use glib_ffi; use gobject_ffi; use std; use std::mem; -#[cfg(any(feature = "v3_8", feature = "dox"))] -use std::mem::transmute; use std::ptr; glib_wrapper! { @@ -64,7 +62,7 @@ pub trait IconInfoExt { fn load_icon(&self) -> Result; #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_icon_async<'a, P: Into>, Q: Fn(Result<(), Error>) + Send + Sync + 'static>(&self, cancellable: P, callback: Q); + fn load_icon_async<'a, P: Into>, Q: FnOnce(Result<(), Error>) + 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; @@ -72,12 +70,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: Fn(Result) + Send + Sync + '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) + 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: Fn(Result) + Send + Sync + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q); + fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q); fn set_raw_coordinates(&self, raw_coordinates: bool); } @@ -148,22 +146,20 @@ impl> IconInfoExt for O { } #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_icon_async<'a, P: Into>, Q: Fn(Result<(), Error>) + Send + Sync + 'static>(&self, cancellable: P, callback: Q) { + fn load_icon_async<'a, P: Into>, Q: FnOnce(Result<(), Error>) + Send + 'static>(&self, cancellable: P, callback: Q) { let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); - let user_data: Box) + Send + Sync + 'static>> = Box::new(Box::new(callback)); - extern "C" fn load_icon_async_trampoline(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + 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) { callback_guard!(); - unsafe { - 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 callback: &&(Fn(Result<(), Error>) + Send + Sync + 'static) = transmute(user_data); - callback(result); - } + 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 callback: Box> = Box::from_raw(user_data as *mut _); + callback(result); } - let callback = load_icon_async_trampoline; + let callback = load_icon_async_trampoline::; unsafe { ffi::gtk_icon_info_load_icon_async(self.to_glib_none().0, cancellable.0, Some(callback), Box::into_raw(user_data) as *mut _); } @@ -196,7 +192,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: Fn(Result) + Send + Sync + '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) + 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(); @@ -205,20 +201,18 @@ impl> IconInfoExt for O { let error_color = error_color.to_glib_none(); let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); - let user_data: Box) + Send + Sync + 'static>> = Box::new(Box::new(callback)); - extern "C" fn load_symbolic_async_trampoline(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + 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) { callback_guard!(); - unsafe { - 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 callback: &&(Fn(Result) + Send + Sync + 'static) = transmute(user_data); - callback(result); - } + 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 callback: Box> = Box::from_raw(user_data as *mut _); + callback(result); } - let callback = load_symbolic_async_trampoline; + let callback = load_symbolic_async_trampoline::; unsafe { ffi::gtk_icon_info_load_symbolic_async(self.to_glib_none().0, fg.to_glib_none().0, success_color.0, warning_color.0, error_color.0, cancellable.0, Some(callback), Box::into_raw(user_data) as *mut _); } @@ -234,23 +228,21 @@ impl> IconInfoExt for O { } #[cfg(any(feature = "v3_8", feature = "dox"))] - fn load_symbolic_for_context_async<'a, P: Into>, Q: Fn(Result) + Send + Sync + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q) { + fn load_symbolic_for_context_async<'a, P: Into>, Q: FnOnce(Result) + Send + 'static>(&self, context: &StyleContext, cancellable: P, callback: Q) { let cancellable = cancellable.into(); let cancellable = cancellable.to_glib_none(); - let user_data: Box) + Send + Sync + 'static>> = Box::new(Box::new(callback)); - extern "C" fn load_symbolic_for_context_async_trampoline(_source_object: *mut gobject_ffi::GObject, res: *mut gio_ffi::GAsyncResult, user_data: glib_ffi::gpointer) + 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) { callback_guard!(); - unsafe { - 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 callback: &&(Fn(Result) + Send + Sync + 'static) = transmute(user_data); - callback(result); - } + 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 callback: Box> = Box::from_raw(user_data as *mut _); + callback(result); } - let callback = load_symbolic_for_context_async_trampoline; + let callback = load_symbolic_for_context_async_trampoline::; unsafe { ffi::gtk_icon_info_load_symbolic_for_context_async(self.to_glib_none().0, context.to_glib_none().0, cancellable.0, Some(callback), Box::into_raw(user_data) as *mut _); } diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 3228e6aece..abc7b402a0 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index 82afca8862..10ef046ad9 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index b51b617375..2b2054d770 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 07ed519835..7dd3282563 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index 7d87fa3b66..50f03c3c0d 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 13ec4821ad..57c5eb5cb9 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 7eb6dad203..534363cee3 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index a36b40b217..f60a85aedb 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/label.rs b/src/auto/label.rs index fbc0ed574c..7d313dddfc 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index fe7a8e469f..57a6ecd1a3 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index dc33a94871..29edaa54fe 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index b67766313e..642fe3ff09 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 4e503f06b7..32bab075f8 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 6dec49d0f0..37a49ebd5d 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index e275e5e005..735eb55bf2 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index d834af9962..ba2c6701fd 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index c97d37bd46..4db4d11bed 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 77224e6373..1fdeb056a5 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 051b13f184..be01b8fd5b 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index d1f7eb4417..daca6aa327 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 518ba54b37..b8e96f0162 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 5a0e637c31..93d0e7413b 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 2feed267f8..fa12e976b8 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 389656322d..ded08f5044 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 9fe5f6718a..44fcc78c4d 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 0ef8e57830..16a1b7bfaf 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index 1fff2faa75..13e95b65c7 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Window; diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index 8e4d00a535..469fe24c74 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index e424b8ad42..ffe43b57fc 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index f4c35fc0ec..7339a6744d 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index d3ab74db36..a41ca082c2 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index 8eaae613ba..90547548d3 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index 9bbed8c7ba..da9c28b0ca 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use EventController; diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 6a898f8f2b..aaea2a20ef 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index a42a03f8ba..acd237d432 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index dea09e9bae..5e54a73da2 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 8d2f83abbf..79d342cf5b 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/plug.rs b/src/auto/plug.rs index 5f60f9d395..36928020a9 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 35aaf610c6..879e107bf8 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 5004fefac4..5ee1fb95e4 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 33c76b32f8..20383ae1d0 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index b3c6f21ee4..cba08a3739 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 5f772f0371..7fbbab356b 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 1e9d0af81b..200f147b37 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index b6d0e85ed1..dc0b4c3ce9 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index d652e7d9e5..2fd5250a83 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index 9bd2ad8673..ad16a52d03 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 7898b89c50..5c44a9bf90 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index 284758ce33..db5e1430d8 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index 5f9ef762e4..b59173047e 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index c8a0cec0b0..8b54f52213 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index c648012c87..187bd5f390 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index 700b1705fa..977a7e5d6c 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 654ce4a7e5..54c875dafe 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index 7d6bd17799..b5535ffc20 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 3fb629f19f..7ab273b996 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index 2f25178da0..19d00df3c1 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 86692e71dd..5ca283a4b3 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index 84e7ce2ced..fb0e959ef1 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 8d3b3ece34..1080ab0824 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index 0891db3438..8752e5a1a4 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index aebb9a5827..0a868efac0 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index 5e40bd7a52..1d9eb6ee8e 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index a41ed4d73f..8a029ac18a 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index a05f8c0c7f..92ad86194b 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index d78fb93716..c013253b96 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index 5aa569f948..c0d999ae49 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 833ea98ca9..886d68d9e8 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use CornerType; diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index d7d90adf7c..5304068c69 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index 0c22219cbe..35aa7107b8 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/socket.rs b/src/auto/socket.rs index b0bebd4c16..6dcca4e2d1 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index baaf24dc1a..21e8b6d485 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index 92b1f1bcd7..e7c2ce27bf 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index be4573f343..5b1254e87b 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index 827c8fbd09..110b1e2c26 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index 59fc4a0a9a..dfa06d7a1f 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 66daddabfe..68778c3fdd 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ImageType; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 917956d156..a0548c8484 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 09518c3980..6656d12403 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Border; diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index d1e82adba5..1dae02f938 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 4b6f06b85d..f69a83a0a1 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index bf33f2387f..3c82896130 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 882a6a35c5..7175d26b46 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 389e1f2e14..57fd7d3344 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 5df876acef..5ad0a99b60 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 392c27b944..62e039aefd 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index fdb5ff9224..61db636ef1 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index 8a0dc3634e..4599b120df 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 1681779bad..bcb507b002 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index dc0112b215..e3b923d6c3 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 1ed8d0e0d2..3cf1957ab5 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index 44cb1e693f..4febdbbd7c 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 6764d06070..95b0f11c9f 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 55d5f739c4..9f0af10053 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 109648dee1..65572e013b 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index d72e947706..61f3d3a275 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index d54377498f..e19b84b1d0 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 0928ee215b..efe2272750 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 8bde41c720..d0b0017ca8 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 0cb29a17b7..250ceedcbf 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 05c98bab42..5356095369 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index 204c3dfa6f..dd128b02a4 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index f427ad779f..49d507781e 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index a72ca43361..5c98dc0cf2 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 06743c6b18..64dfc4b68f 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index aeedf666f1..fcca162cd5 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index b3e672be33..233c24d6d5 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 1821f27874..879b4e5c05 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 7d394b871c..26ca226127 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 424d7868cb..c59059eba2 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index fcd0112e8e..d2bcde2012 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 (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index d819dfb221..da52a51521 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index b9d25fcc08..3471ed60c4 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index f4a0f7180b..1783794df1 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AccelFlags; diff --git a/src/auto/window.rs b/src/auto/window.rs index 66af775fc0..9f3542a19f 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index 2415c1164c..14b7d3db89 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (8080733) from gir-files (469db10) +// This file was generated by gir (13f739b) from gir-files (db49619) // DO NOT EDIT use Widget; From 581de09013c485f83a8328bd20d3690dbd6b4848 Mon Sep 17 00:00:00 2001 From: fengalin Date: Thu, 28 Dec 2017 14:45:53 +0100 Subject: [PATCH 014/210] Add WidgetExt::add_tick_callback binding --- src/widget.rs | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/widget.rs b/src/widget.rs index b0d51935bd..56727b79f5 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -2,6 +2,8 @@ // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or +#[cfg(any(feature = "v3_8", feature = "dox"))] +use std::cell::RefCell; use std::mem::transmute; use std::ptr; @@ -9,7 +11,11 @@ use glib::object::{Downcast, IsA}; use glib::signal::{SignalHandlerId, connect}; use glib::translate::*; use glib_ffi::gboolean; +#[cfg(any(feature = "v3_8", feature = "dox"))] +use glib_ffi::gpointer; use gdk::{DragAction, Event, ModifierType}; +#[cfg(any(feature = "v3_8", feature = "dox"))] +use gdk::FrameClock; use gdk_ffi; use pango; use ffi; @@ -22,6 +28,8 @@ use { TargetEntry, Widget, }; +#[cfg(any(feature = "v3_8", feature = "dox"))] +use::Continue; pub trait WidgetExtManual { fn drag_dest_set(&self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction); @@ -32,6 +40,11 @@ pub trait WidgetExtManual { fn override_font(&self, font: &pango::FontDescription); + #[cfg(any(feature = "v3_8", feature = "dox"))] + fn add_tick_callback(&self, func: F) -> u32 + where + F: FnMut(&Self, &FrameClock) -> Continue + 'static; + fn connect_map_event Inhibit + 'static>(&self, f: F) -> SignalHandlerId; fn connect_unmap_event Inhibit + 'static>(&self, f: F) -> SignalHandlerId; @@ -98,6 +111,49 @@ impl + IsA> WidgetExtManual for O { } } + #[cfg(any(feature = "v3_8", feature = "dox"))] + fn add_tick_callback(&self, func: F) -> u32 + where + F: FnMut(&Self, &FrameClock) -> Continue + 'static, + { + unsafe extern "C" fn add_tick_callback_trampoline( + this: *mut ffi::GtkWidget, + frame_clock: *mut gdk_ffi::GdkFrameClock, + func: gpointer, + ) -> gboolean + where T: IsA + { + callback_guard!(); + let func: &RefCell Continue + 'static>> = transmute(func); + + (&mut *func.borrow_mut())( + &Widget::from_glib_borrow(this).downcast_unchecked(), + &from_glib_borrow(frame_clock) + ).to_glib() + } + + unsafe extern "C" fn destroy_closure(func: gpointer) { + callback_guard!(); + Box:: Continue + 'static>>>::from_raw( + func as *mut _ + ); + } + + let add_tick_callback_trampoline = add_tick_callback_trampoline::; + let func: Box Continue + 'static>>> = + Box::new(RefCell::new(Box::new(func))); + let destroy_closure = destroy_closure::; + + unsafe { + ffi::gtk_widget_add_tick_callback( + self.to_glib_none().0, + Some(add_tick_callback_trampoline), + Box::into_raw(func) as gpointer, + Some(destroy_closure), + ) + } + } + fn connect_map_event Inhibit + 'static>(&self, f: F) -> SignalHandlerId { unsafe { let f: Box Inhibit + 'static>> = Box::new(Box::new(f)); From 9095aba291249304949fc3c4beaa73c9c33c5bd8 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sun, 14 Jan 2018 19:05:00 +0300 Subject: [PATCH 015/210] Add signal Overlay::get-child-position --- src/signal.rs | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/signal.rs b/src/signal.rs index a4fa45ad41..a8c64f1df8 100644 --- a/src/signal.rs +++ b/src/signal.rs @@ -9,6 +9,7 @@ pub use glib::signal::Inhibit; use glib::SourceId; use glib::translate::*; use glib::signal::SignalHandlerId; +use gdk::Rectangle; use glib_ffi::{self, gboolean, gpointer}; @@ -16,6 +17,7 @@ use { Continue, ScrollType, SpinButton, + Widget, }; // idle_add and timeout_add fixed to the main thread @@ -293,3 +295,66 @@ mod spin_button { f(&from_glib_borrow(this)) } } + +pub trait OverlaySignals { + fn connect_get_child_position(&self, f: F) -> SignalHandlerId + where + F: Fn(&Self, &Widget) -> Option + 'static; +} + +mod overlay { + use gdk::Rectangle; + use ffi::{GtkOverlay, GtkWidget}; + use gdk_ffi::GdkRectangle; + use glib::signal::{connect, SignalHandlerId}; + use glib::translate::*; + use glib::object::Downcast; + use std::mem::transmute; + use std::ptr; + use glib_ffi::{gboolean, gpointer}; + use IsA; + use Object; + use Overlay; + use Widget; + + impl + IsA> ::OverlaySignals for O { + fn connect_get_child_position(&self, f: F) -> SignalHandlerId + where + F: Fn(&Self, &Widget) -> Option + 'static, + { + unsafe { + let f: Box Option + 'static>> = + Box::new(Box::new(f)); + connect( + self.to_glib_none().0, + "get-child-position", + transmute(get_child_position_trampoline:: as usize), + Box::into_raw(f) as *mut _, + ) + } + } + } + + unsafe extern "C" fn get_child_position_trampoline( + this: *mut GtkOverlay, + widget: *mut GtkWidget, + allocation: *mut GdkRectangle, + f: gpointer, + ) -> gboolean + where + T: IsA + IsA, + { + callback_guard!(); + let f: &&(Fn(&T, &Widget) -> Option + 'static) = transmute(f); + match f( + &Overlay::from_glib_borrow(this).downcast_unchecked(), + &from_glib_borrow(widget), + ) { + Some(rect) => { + ptr::write(allocation, ptr::read(rect.to_glib_none().0)); + true + } + None => false, + }.to_glib() + } +} From 0df6dd720efce7b510c335079e995c00e2cbb931 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 19 Jan 2018 20:03:54 +0100 Subject: [PATCH 016/210] Update gir version --- gir | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gir b/gir index 13f739b2cb..c6b70b00ac 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 13f739b2cb17cb7cd4bf01c45fcce802f351e688 +Subproject commit c6b70b00ac5b3de2defc59da54685aa488a34e3d From 270ee2626ccd0a93654535486047059820e2b885 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 19 Jan 2018 20:03:58 +0100 Subject: [PATCH 017/210] regen --- 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 | 4 +- src/auto/alignment.rs | 30 +++++++- 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 | 4 +- src/auto/application_window.rs | 2 +- src/auto/arrow.rs | 4 +- 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 | 16 ++++- 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 | 8 ++- 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 | 12 +++- src/auto/combo_box_text.rs | 2 +- src/auto/container.rs | 6 +- src/auto/css_provider.rs | 2 +- src/auto/css_section.rs | 2 +- src/auto/dialog.rs | 5 +- src/auto/drawing_area.rs | 2 +- src/auto/editable.rs | 2 +- src/auto/entry.rs | 13 +++- src/auto/entry_completion.rs | 2 +- src/auto/enums.rs | 23 +++++- src/auto/event_box.rs | 2 +- src/auto/event_controller.rs | 2 +- src/auto/expander.rs | 5 +- src/auto/file_chooser.rs | 2 +- src/auto/file_chooser_button.rs | 4 +- 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 | 18 ++++- 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 | 3 +- src/auto/icon_factory.rs | 9 ++- src/auto/icon_info.rs | 8 ++- src/auto/icon_set.rs | 10 ++- src/auto/icon_source.rs | 22 +++++- src/auto/icon_theme.rs | 3 +- src/auto/icon_view.rs | 2 +- src/auto/image.rs | 10 ++- src/auto/image_menu_item.rs | 18 ++++- 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 | 12 +++- 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 | 3 +- src/auto/message_dialog.rs | 5 +- src/auto/misc.rs | 18 ++++- src/auto/mod.rs | 2 +- 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 | 6 +- src/auto/plug.rs | 2 +- src/auto/popover.rs | 4 +- 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 | 3 +- src/auto/range.rs | 4 +- 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 | 6 +- 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 | 106 +++++++++++++++++++++++++++- src/auto/shortcuts_window.rs | 2 +- src/auto/size_group.rs | 5 +- 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 | 39 +++++++++- src/auto/statusbar.rs | 2 +- src/auto/style_context.rs | 19 ++++- src/auto/style_properties.rs | 17 ++++- src/auto/style_provider.rs | 4 +- src/auto/switch.rs | 2 +- src/auto/symbolic_color.rs | 10 ++- 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 | 3 +- 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 | 3 +- src/auto/tool_button.rs | 6 +- 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 | 3 +- 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 | 5 +- src/auto/tree_view_column.rs | 2 +- src/auto/viewport.rs | 2 +- src/auto/volume_button.rs | 2 +- src/auto/widget.rs | 31 +++++++- src/auto/window.rs | 16 ++++- src/auto/window_group.rs | 2 +- src/lib.rs | 3 +- 206 files changed, 680 insertions(+), 206 deletions(-) diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 08a4164f01..8ad424d56b 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 38db9e23c5..d9061ec4c1 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 1841eccf12..38604690e5 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 9e7025452b..abbde9a6bf 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index f230502855..ecaef91a47 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; @@ -33,6 +33,7 @@ impl Adjustment { } pub trait AdjustmentExt { + #[cfg_attr(feature = "v3_18", deprecated)] fn changed(&self); fn clamp_page(&self, lower: f64, upper: f64); @@ -65,6 +66,7 @@ pub trait AdjustmentExt { fn set_value(&self, value: f64); + #[cfg_attr(feature = "v3_18", deprecated)] fn value_changed(&self); fn connect_changed(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 1a02210f8e..e504230242 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -30,6 +30,7 @@ glib_wrapper! { } impl Alignment { + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new(xalign: f32, yalign: f32, xscale: f32, yscale: f32) -> Alignment { assert_initialized_main_thread!(); unsafe { @@ -39,58 +40,85 @@ impl Alignment { } pub trait AlignmentExt { + #[cfg_attr(feature = "v3_14", deprecated)] fn get_padding(&self) -> (u32, u32, u32, u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn set(&self, xalign: f32, yalign: f32, xscale: f32, yscale: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_padding(&self, padding_top: u32, padding_bottom: u32, padding_left: u32, padding_right: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_bottom_padding(&self) -> u32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_bottom_padding(&self, bottom_padding: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_left_padding(&self) -> u32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_left_padding(&self, left_padding: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_right_padding(&self) -> u32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_right_padding(&self, right_padding: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_top_padding(&self) -> u32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_top_padding(&self, top_padding: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_xalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_xalign(&self, xalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_xscale(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_xscale(&self, xscale: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_yalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_yalign(&self, yalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_yscale(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_yscale(&self, yscale: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_bottom_padding_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_left_padding_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_right_padding_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_top_padding_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_xalign_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_xscale_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_yalign_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_yscale_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index 19a3810016..62c39cf23b 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 09af518b87..1816ae130b 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index ab26d2952e..a3af4b3a0d 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index a0af49b456..b7018d6362 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ApplicationInhibitFlags; @@ -34,6 +34,7 @@ glib_wrapper! { } pub trait GtkApplicationExt { + #[cfg_attr(feature = "v3_14", deprecated)] fn add_accelerator<'a, P: Into>>(&self, accelerator: &str, action_name: &str, parameter: P); fn add_window>(&self, window: &P); @@ -69,6 +70,7 @@ pub trait GtkApplicationExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn prefers_app_menu(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn remove_accelerator<'a, P: Into>>(&self, action_name: &str, parameter: P); fn remove_window>(&self, window: &P); diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 42369e7378..9b9a47f416 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 594dd9f026..5fec873fad 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ArrowType; @@ -31,6 +31,7 @@ glib_wrapper! { } impl Arrow { + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new(arrow_type: ArrowType, shadow_type: ShadowType) -> Arrow { assert_initialized_main_thread!(); unsafe { @@ -40,6 +41,7 @@ impl Arrow { } pub trait ArrowExt { + #[cfg_attr(feature = "v3_14", deprecated)] fn set(&self, arrow_type: ArrowType, shadow_type: ShadowType); fn get_property_arrow_type(&self) -> ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 2bf7a11acf..db9ea5179c 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 450ce0b69f..0ed77c4e0a 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index ab9cc4e9f1..8e7f993056 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index f203e0e469..20451b6c57 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 91923d4ef4..3b41fa5983 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 6a989e262c..eafac39d5e 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index d1b4bd3c66..2a6936d2be 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -51,6 +51,7 @@ impl Button { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str) -> Button { assert_initialized_main_thread!(); unsafe { @@ -82,6 +83,7 @@ impl Default for Button { pub trait ButtonExt { fn clicked(&self); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_alignment(&self) -> (f32, f32); #[cfg(any(feature = "v3_6", feature = "dox"))] @@ -89,6 +91,7 @@ pub trait ButtonExt { fn get_event_window(&self) -> Option; + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn get_focus_on_click(&self) -> bool; @@ -100,15 +103,18 @@ pub trait ButtonExt { fn get_relief(&self) -> ReliefStyle; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_use_stock(&self) -> bool; fn get_use_underline(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_alignment(&self, xalign: f32, yalign: f32); #[cfg(any(feature = "v3_6", feature = "dox"))] fn set_always_show_image(&self, always_show: bool); + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn set_focus_on_click(&self, focus_on_click: bool); @@ -120,16 +126,21 @@ pub trait ButtonExt { fn set_relief(&self, relief: ReliefStyle); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_use_stock(&self, use_stock: bool); fn set_use_underline(&self, use_underline: bool); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_xalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_xalign(&self, xalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_yalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_yalign(&self, yalign: f32); fn connect_activate(&self, f: F) -> SignalHandlerId; @@ -151,12 +162,15 @@ pub trait ButtonExt { fn connect_property_relief_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_use_stock_notify(&self, f: F) -> SignalHandlerId; fn connect_property_use_underline_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_xalign_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_yalign_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index d73e2e81bf..884da35728 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index f544b3f1e6..4279cba942 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index d2852dcf2c..74408f215c 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 2eb17a776f..230138fa70 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 17356e42ad..984edbdce9 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 29b3c570f6..8c0bff3432 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index a3d036d511..bcf008ce78 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index fe665a7745..0bf8390250 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 472a021108..1d0ddf91b8 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 2e5e2cc963..914750386d 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index e74ff9a562..cad0fcb1f6 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -44,8 +44,10 @@ impl Default for CellRendererPixbuf { } pub trait CellRendererPixbufExt { + #[cfg_attr(feature = "v3_16", deprecated)] fn get_property_follow_state(&self) -> bool; + #[cfg_attr(feature = "v3_16", deprecated)] fn set_property_follow_state(&self, follow_state: bool); fn get_property_gicon(&self) -> Option; @@ -72,14 +74,17 @@ pub trait CellRendererPixbufExt { fn set_property_stock_detail(&self, stock_detail: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_stock_id(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_stock_id(&self, stock_id: Option<&str>); fn get_property_stock_size(&self) -> u32; fn set_property_stock_size(&self, stock_size: u32); + #[cfg_attr(feature = "v3_16", deprecated)] fn connect_property_follow_state_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gicon_notify(&self, f: F) -> SignalHandlerId; @@ -94,6 +99,7 @@ pub trait CellRendererPixbufExt { fn connect_property_stock_detail_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_stock_id_notify(&self, f: F) -> SignalHandlerId; fn connect_property_stock_size_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index f372fb7827..a644647223 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index 6950149551..13a68e637f 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 63b424dc92..8e5f9c9960 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index 1f3de468f9..9baf8b6150 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 00868bc5bf..6df032a3ac 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index 215da94efc..b8b54084bd 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index ce96cfbc8e..d404c11664 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 114098ed38..0a0ae36cd2 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 931db47316..41cd846442 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index 24c4b7a806..e935fb9eb7 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index f70874411b..149b46aa3f 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 1d0f293d97..80b6a9d0b4 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index 6f008b09a6..0306d3bd39 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index ef67403cf7..f2ce9918c0 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -95,6 +95,7 @@ pub trait ComboBoxExt { fn get_active_iter(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_add_tearoffs(&self) -> bool; fn get_button_sensitivity(&self) -> SensitivityType; @@ -103,6 +104,7 @@ pub trait ComboBoxExt { fn get_entry_text_column(&self) -> i32; + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn get_focus_on_click(&self) -> bool; @@ -120,6 +122,7 @@ pub trait ComboBoxExt { fn get_row_span_column(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_title(&self) -> Option; fn get_wrap_width(&self) -> i32; @@ -136,6 +139,7 @@ pub trait ComboBoxExt { fn set_active_iter<'a, P: Into>>(&self, iter: P); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_add_tearoffs(&self, add_tearoffs: bool); fn set_button_sensitivity(&self, sensitivity: SensitivityType); @@ -144,6 +148,7 @@ pub trait ComboBoxExt { fn set_entry_text_column(&self, text_column: i32); + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn set_focus_on_click(&self, focus_on_click: bool); @@ -157,6 +162,7 @@ pub trait ComboBoxExt { fn set_row_span_column(&self, row_span: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_title(&self, title: &str); fn set_wrap_width(&self, width: i32); @@ -169,8 +175,10 @@ pub trait ComboBoxExt { fn get_property_popup_shown(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_tearoff_title(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_tearoff_title(&self, tearoff_title: Option<&str>); fn connect_changed(&self, f: F) -> SignalHandlerId; @@ -193,6 +201,7 @@ pub trait ComboBoxExt { fn connect_property_active_id_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_add_tearoffs_notify(&self, f: F) -> SignalHandlerId; fn connect_property_button_sensitivity_notify(&self, f: F) -> SignalHandlerId; @@ -217,6 +226,7 @@ pub trait ComboBoxExt { fn connect_property_row_span_column_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_tearoff_title_notify(&self, f: F) -> SignalHandlerId; fn connect_property_wrap_width_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index bf133bd40c..f5a9e8dfce 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index 83033fc060..1e59d3a62b 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -69,12 +69,14 @@ pub trait ContainerExt { //fn get_path_for_child>(&self, child: &P) -> /*Ignored*/Option; + #[cfg_attr(feature = "v3_12", deprecated)] fn get_resize_mode(&self) -> ResizeMode; fn propagate_draw>(&self, child: &P, cr: &cairo::Context); fn remove>(&self, widget: &P); + #[cfg_attr(feature = "v3_10", deprecated)] fn resize_children(&self); fn set_border_width(&self, border_width: u32); @@ -87,8 +89,10 @@ pub trait ContainerExt { fn set_focus_vadjustment(&self, adjustment: &Adjustment); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_reallocate_redraws(&self, needs_redraws: bool); + #[cfg_attr(feature = "v3_12", deprecated)] fn set_resize_mode(&self, resize_mode: ResizeMode); fn unset_focus_chain(&self); diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 79e465cbee..601bff619f 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index 864eb77cf5..8f3d44a027 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 4f1517f2ed..87a509d60d 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -60,6 +60,7 @@ pub trait DialogExt { //fn add_buttons(&self, first_button_text: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_12", deprecated)] fn get_action_area(&self) -> Widget; fn get_content_area(&self) -> Box; @@ -75,8 +76,10 @@ pub trait DialogExt { fn run(&self) -> i32; + //#[cfg_attr(feature = "v3_10", deprecated)] //fn set_alternative_button_order(&self, first_response_id: i32, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_alternative_button_order_from_array(&self, new_order: &[i32]); fn set_default_response(&self, response_id: i32); diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index 6572f9492a..76bc8fd3cd 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index e19dfe9cc4..f347d984f5 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index b76b57f269..fa05834c7a 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -102,6 +102,7 @@ pub trait EntryExt { fn get_icon_sensitive(&self, icon_pos: EntryIconPosition) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_icon_stock(&self, icon_pos: EntryIconPosition) -> Option; fn get_icon_storage_type(&self, icon_pos: EntryIconPosition) -> ImageType; @@ -184,6 +185,7 @@ pub trait EntryExt { fn set_icon_from_pixbuf<'a, P: Into>>(&self, icon_pos: EntryIconPosition, pixbuf: P); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_icon_from_stock<'a, P: Into>>(&self, icon_pos: EntryIconPosition, stock_id: P); fn set_icon_sensitive(&self, icon_pos: EntryIconPosition, sensitive: bool); @@ -266,8 +268,10 @@ pub trait EntryExt { fn set_property_primary_icon_sensitive(&self, primary_icon_sensitive: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_primary_icon_stock(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_primary_icon_stock(&self, primary_icon_stock: Option<&str>); fn get_property_primary_icon_storage_type(&self) -> ImageType; @@ -302,8 +306,10 @@ pub trait EntryExt { fn set_property_secondary_icon_sensitive(&self, secondary_icon_sensitive: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_secondary_icon_stock(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_secondary_icon_stock(&self, secondary_icon_stock: Option<&str>); fn get_property_secondary_icon_storage_type(&self) -> ImageType; @@ -318,8 +324,10 @@ pub trait EntryExt { fn get_property_selection_bound(&self) -> i32; + #[cfg_attr(feature = "v3_20", deprecated)] fn get_property_shadow_type(&self) -> ShadowType; + #[cfg_attr(feature = "v3_20", deprecated)] fn set_property_shadow_type(&self, shadow_type: ShadowType); fn get_property_show_emoji_icon(&self) -> bool; @@ -431,6 +439,7 @@ pub trait EntryExt { fn connect_property_primary_icon_sensitive_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_primary_icon_stock_notify(&self, f: F) -> SignalHandlerId; fn connect_property_primary_icon_storage_type_notify(&self, f: F) -> SignalHandlerId; @@ -455,6 +464,7 @@ pub trait EntryExt { fn connect_property_secondary_icon_sensitive_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_secondary_icon_stock_notify(&self, f: F) -> SignalHandlerId; fn connect_property_secondary_icon_storage_type_notify(&self, f: F) -> SignalHandlerId; @@ -465,6 +475,7 @@ pub trait EntryExt { fn connect_property_selection_bound_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_20", deprecated)] fn connect_property_shadow_type_notify(&self, f: F) -> SignalHandlerId; fn connect_property_show_emoji_icon_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index caa0c773a4..1257c4ccf3 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 0c1ce565aa..2197591703 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; @@ -1588,6 +1588,7 @@ impl SetValue for FileChooserError { } } +#[cfg_attr(feature = "v3_10", deprecated)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum IMPreeditStyle { Nothing, @@ -1597,6 +1598,7 @@ pub enum IMPreeditStyle { __Unknown(i32), } +#[cfg_attr(feature = "v3_10", deprecated)] #[doc(hidden)] impl ToGlib for IMPreeditStyle { type GlibType = ffi::GtkIMPreeditStyle; @@ -1611,6 +1613,7 @@ impl ToGlib for IMPreeditStyle { } } +#[cfg_attr(feature = "v3_10", deprecated)] #[doc(hidden)] impl FromGlib for IMPreeditStyle { fn from_glib(value: ffi::GtkIMPreeditStyle) -> Self { @@ -1624,30 +1627,35 @@ impl FromGlib for IMPreeditStyle { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl StaticType for IMPreeditStyle { fn static_type() -> Type { unsafe { from_glib(ffi::gtk_im_preedit_style_get_type()) } } } +#[cfg_attr(feature = "v3_10", deprecated)] impl<'a> FromValueOptional<'a> for IMPreeditStyle { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg_attr(feature = "v3_10", deprecated)] impl<'a> FromValue<'a> for IMPreeditStyle { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } +#[cfg_attr(feature = "v3_10", deprecated)] impl SetValue for IMPreeditStyle { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) } } +#[cfg_attr(feature = "v3_10", deprecated)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum IMStatusStyle { Nothing, @@ -1657,6 +1665,7 @@ pub enum IMStatusStyle { __Unknown(i32), } +#[cfg_attr(feature = "v3_10", deprecated)] #[doc(hidden)] impl ToGlib for IMStatusStyle { type GlibType = ffi::GtkIMStatusStyle; @@ -1671,6 +1680,7 @@ impl ToGlib for IMStatusStyle { } } +#[cfg_attr(feature = "v3_10", deprecated)] #[doc(hidden)] impl FromGlib for IMStatusStyle { fn from_glib(value: ffi::GtkIMStatusStyle) -> Self { @@ -1684,24 +1694,28 @@ impl FromGlib for IMStatusStyle { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl StaticType for IMStatusStyle { fn static_type() -> Type { unsafe { from_glib(ffi::gtk_im_status_style_get_type()) } } } +#[cfg_attr(feature = "v3_10", deprecated)] impl<'a> FromValueOptional<'a> for IMStatusStyle { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg_attr(feature = "v3_10", deprecated)] impl<'a> FromValue<'a> for IMStatusStyle { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } +#[cfg_attr(feature = "v3_10", deprecated)] impl SetValue for IMStatusStyle { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) @@ -5160,6 +5174,7 @@ impl SetValue for StackTransitionType { } } +#[cfg_attr(feature = "v3_14", deprecated)] #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum StateType { Normal, @@ -5173,6 +5188,7 @@ pub enum StateType { __Unknown(i32), } +#[cfg_attr(feature = "v3_14", deprecated)] #[doc(hidden)] impl ToGlib for StateType { type GlibType = ffi::GtkStateType; @@ -5191,6 +5207,7 @@ impl ToGlib for StateType { } } +#[cfg_attr(feature = "v3_14", deprecated)] #[doc(hidden)] impl FromGlib for StateType { fn from_glib(value: ffi::GtkStateType) -> Self { @@ -5208,24 +5225,28 @@ impl FromGlib for StateType { } } +#[cfg_attr(feature = "v3_14", deprecated)] impl StaticType for StateType { fn static_type() -> Type { unsafe { from_glib(ffi::gtk_state_type_get_type()) } } } +#[cfg_attr(feature = "v3_14", deprecated)] impl<'a> FromValueOptional<'a> for StateType { unsafe fn from_value_optional(value: &Value) -> Option { Some(FromValue::from_value(value)) } } +#[cfg_attr(feature = "v3_14", deprecated)] impl<'a> FromValue<'a> for StateType { unsafe fn from_value(value: &Value) -> Self { from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0)) } } +#[cfg_attr(feature = "v3_14", deprecated)] impl SetValue for StateType { unsafe fn set_value(value: &mut Value, this: &Self) { gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib()) diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index 5e79e2e7dd..f9f27f76f6 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index b0e604d4d9..296a051890 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 610a643c28..f17c116ba1 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -56,6 +56,7 @@ pub trait ExpanderExt { fn get_resize_toplevel(&self) -> bool; + #[cfg_attr(feature = "v3_20", deprecated)] fn get_spacing(&self) -> i32; fn get_use_markup(&self) -> bool; @@ -72,6 +73,7 @@ pub trait ExpanderExt { fn set_resize_toplevel(&self, resize_toplevel: bool); + #[cfg_attr(feature = "v3_20", deprecated)] fn set_spacing(&self, spacing: i32); fn set_use_markup(&self, use_markup: bool); @@ -92,6 +94,7 @@ pub trait ExpanderExt { fn connect_property_resize_toplevel_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_20", deprecated)] fn connect_property_spacing_notify(&self, f: F) -> SignalHandlerId; fn connect_property_use_markup_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 53dd2116cf..fac36c4528 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index 1bfe4bfddc..fc13906745 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; @@ -48,6 +48,7 @@ impl FileChooserButton { } pub trait FileChooserButtonExt { + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn get_focus_on_click(&self) -> bool; @@ -55,6 +56,7 @@ pub trait FileChooserButtonExt { fn get_width_chars(&self) -> i32; + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn set_focus_on_click(&self, focus_on_click: bool); diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index f75df123bb..d849712c03 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index d494ed3193..1af3c11d07 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use FileChooser; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index 59233807ac..4243694a60 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index 4ba4d36b45..2c6b5dda73 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index daedf13ba2..cfacefbc6c 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index b6db9c285f..d4e9ed3c45 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index f529edf266..a565ccbca6 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index 72f7df1246..f65cf7ee53 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index d9d70240d6..a913a89ebf 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 1898561baf..97aa9d2c82 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 9e1df5d705..690da978a6 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index e313cae008..c9dbd1db25 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index 5aacb2bb41..56133970c6 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 75f952fa78..58af165e33 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -111,6 +111,7 @@ pub fn accelerator_valid(keyval: u32, modifiers: gdk::ModifierType) -> bool { } } +#[cfg_attr(feature = "v3_10", deprecated)] pub fn alternative_dialog_button_order<'a, P: Into>>(screen: P) -> bool { assert_initialized_main_thread!(); let screen = screen.into(); @@ -413,6 +414,7 @@ pub fn render_icon(context: &StyleContext, cr: &cairo::Context, pixbuf: &gdk_pix } } +#[cfg_attr(feature = "v3_10", deprecated)] pub fn render_icon_pixbuf(context: &StyleContext, source: &IconSource, size: i32) -> Option { skip_assert_initialized!(); unsafe { @@ -554,14 +556,17 @@ pub fn show_uri_on_window<'a, P: IsA + 'a, Q: Into>>(paren } } +//#[cfg_attr(feature = "v3_10", deprecated)] //pub fn stock_add(items: /*Ignored*/&[&StockItem]) { // unsafe { TODO: call ffi::gtk_stock_add() } //} +//#[cfg_attr(feature = "v3_10", deprecated)] //pub fn stock_add_static(items: /*Ignored*/&[&StockItem]) { // unsafe { TODO: call ffi::gtk_stock_add_static() } //} +#[cfg_attr(feature = "v3_10", deprecated)] pub fn stock_list_ids() -> Vec { assert_initialized_main_thread!(); unsafe { @@ -569,10 +574,12 @@ pub fn stock_list_ids() -> Vec { } } +//#[cfg_attr(feature = "v3_10", deprecated)] //pub fn stock_lookup(stock_id: &str, item: /*Ignored*/StockItem) -> bool { // unsafe { TODO: call ffi::gtk_stock_lookup() } //} +//#[cfg_attr(feature = "v3_10", deprecated)] //pub fn stock_set_translate_func>>(domain: &str, func: /*Unknown conversion*//*Unimplemented*/TranslateFunc, data: P, notify: /*Unknown conversion*//*Unimplemented*/DestroyNotify) { // unsafe { TODO: call ffi::gtk_stock_set_translate_func() } //} @@ -609,6 +616,7 @@ pub fn targets_include_uri(targets: &[&gdk::Atom]) -> bool { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_create_simple_window(window_title: &str, dialog_text: &str) -> Option { assert_initialized_main_thread!(); unsafe { @@ -616,10 +624,12 @@ pub fn test_create_simple_window(window_title: &str, dialog_text: &str) -> Optio } } +//#[cfg_attr(feature = "v3_20", deprecated)] //pub fn test_create_widget<'a, P: Into>>(widget_type: glib::types::Type, first_property_name: P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { // unsafe { TODO: call ffi::gtk_test_create_widget() } //} +//#[cfg_attr(feature = "v3_20", deprecated)] //pub fn test_display_button_window(window_title: &str, dialog_text: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> Option { // unsafe { TODO: call ffi::gtk_test_display_button_window() } //} @@ -660,6 +670,7 @@ pub fn test_register_all_types() { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_slider_get_value>(widget: &P) -> f64 { skip_assert_initialized!(); unsafe { @@ -667,6 +678,7 @@ pub fn test_slider_get_value>(widget: &P) -> f64 { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_slider_set_perc>(widget: &P, percentage: f64) { skip_assert_initialized!(); unsafe { @@ -674,6 +686,7 @@ pub fn test_slider_set_perc>(widget: &P, percentage: f64) { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_spin_button_click(spinner: &SpinButton, button: u32, upwards: bool) -> bool { skip_assert_initialized!(); unsafe { @@ -681,6 +694,7 @@ pub fn test_spin_button_click(spinner: &SpinButton, button: u32, upwards: bool) } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_text_get>(widget: &P) -> Option { skip_assert_initialized!(); unsafe { @@ -688,6 +702,7 @@ pub fn test_text_get>(widget: &P) -> Option { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_text_set>(widget: &P, string: &str) { skip_assert_initialized!(); unsafe { @@ -695,6 +710,7 @@ pub fn test_text_set>(widget: &P, string: &str) { } } +#[cfg_attr(feature = "v3_20", deprecated)] pub fn test_widget_click>(widget: &P, button: u32, modifiers: gdk::ModifierType) -> bool { skip_assert_initialized!(); unsafe { diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index d6da5139ef..9b624b515b 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 625c2eff58..8184068dcc 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 5d4c83a8ad..290124e3e3 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index 45a57f4463..c22ce7d345 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index dd1182cc5a..f99671e7c2 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index a1a8a0688f..f94dc91218 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index ec1762c404..7da519bbde 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 2b98d5a65d..a4e6040e0c 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 1a1b79b150..204e6d6ef9 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index a253a03db2..af8773d7db 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index 0fa129ee9b..6fcd5fbf0b 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 13b9868d86..19b5e472b4 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index 56804a6c46..b698dc60c6 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index 8a1e6dbbdb..739931c1de 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use IMContext; @@ -36,6 +36,7 @@ impl Default for IMMulticontext { } pub trait IMMulticontextExt { + #[cfg_attr(feature = "v3_10", deprecated)] fn append_menuitems>(&self, menushell: &P); fn get_context_id(&self) -> Option; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 6a07269d0f..86dacc0318 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -20,6 +20,7 @@ glib_wrapper! { } impl IconFactory { + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new() -> IconFactory { assert_initialized_main_thread!(); unsafe { @@ -27,6 +28,7 @@ impl IconFactory { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn lookup_default(stock_id: &str) -> Option { assert_initialized_main_thread!(); unsafe { @@ -35,6 +37,7 @@ impl IconFactory { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl Default for IconFactory { fn default() -> Self { Self::new() @@ -42,12 +45,16 @@ impl Default for IconFactory { } pub trait IconFactoryExt { + #[cfg_attr(feature = "v3_10", deprecated)] fn add(&self, stock_id: &str, icon_set: &IconSet); + #[cfg_attr(feature = "v3_10", deprecated)] fn add_default(&self); + #[cfg_attr(feature = "v3_10", deprecated)] fn lookup(&self, stock_id: &str) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn remove_default(&self); } diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index 878a105e48..5eadabe134 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; @@ -39,8 +39,10 @@ impl IconInfo { } pub trait IconInfoExt { + #[cfg_attr(feature = "v3_8", deprecated)] fn copy(&self) -> Option; + //#[cfg_attr(feature = "v3_14", deprecated)] //fn get_attach_points(&self, points: /*Ignored*/Vec) -> Option; #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -48,10 +50,13 @@ pub trait IconInfoExt { fn get_base_size(&self) -> i32; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_builtin_pixbuf(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_display_name(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_embedded_rect(&self) -> Option; fn get_filename(&self) -> Option; @@ -77,6 +82,7 @@ pub trait IconInfoExt { #[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); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_raw_coordinates(&self, raw_coordinates: bool); } diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index abc7b402a0..428063b0de 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use IconSource; @@ -26,6 +26,7 @@ glib_wrapper! { } impl IconSet { + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new() -> IconSet { assert_initialized_main_thread!(); unsafe { @@ -33,6 +34,7 @@ impl IconSet { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_pixbuf(pixbuf: &gdk_pixbuf::Pixbuf) -> IconSet { assert_initialized_main_thread!(); unsafe { @@ -40,18 +42,21 @@ impl IconSet { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn add_source(&self, source: &IconSource) { unsafe { ffi::gtk_icon_set_add_source(self.to_glib_none().0, source.to_glib_none().0); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn copy(&self) -> Option { unsafe { from_glib_full(ffi::gtk_icon_set_copy(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_sizes(&self) -> Vec { unsafe { let mut sizes = ptr::null_mut(); @@ -61,12 +66,14 @@ impl IconSet { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn render_icon_pixbuf(&self, context: &StyleContext, size: i32) -> Option { unsafe { from_glib_full(ffi::gtk_icon_set_render_icon_pixbuf(self.to_glib_none().0, context.to_glib_none().0, size)) } } + #[cfg_attr(feature = "v3_10", deprecated)] #[cfg(any(feature = "v3_10", feature = "dox"))] pub fn render_icon_surface<'a, P: Into>>(&self, context: &StyleContext, size: i32, scale: i32, for_window: P) -> Option { let for_window = for_window.into(); @@ -77,6 +84,7 @@ impl IconSet { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl Default for IconSet { fn default() -> Self { Self::new() diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index 10ef046ad9..c7416aaa80 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use StateType; @@ -23,6 +23,7 @@ glib_wrapper! { } impl IconSource { + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new() -> IconSource { assert_initialized_main_thread!(); unsafe { @@ -30,78 +31,91 @@ impl IconSource { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_direction(&self) -> TextDirection { unsafe { from_glib(ffi::gtk_icon_source_get_direction(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_direction_wildcarded(&self) -> bool { unsafe { from_glib(ffi::gtk_icon_source_get_direction_wildcarded(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_filename(&self) -> Option { unsafe { from_glib_none(ffi::gtk_icon_source_get_filename(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_icon_name(&self) -> Option { unsafe { from_glib_none(ffi::gtk_icon_source_get_icon_name(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_pixbuf(&self) -> Option { unsafe { from_glib_none(ffi::gtk_icon_source_get_pixbuf(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_size(&self) -> i32 { unsafe { ffi::gtk_icon_source_get_size(self.to_glib_none().0) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_size_wildcarded(&self) -> bool { unsafe { from_glib(ffi::gtk_icon_source_get_size_wildcarded(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_state(&self) -> StateType { unsafe { from_glib(ffi::gtk_icon_source_get_state(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn get_state_wildcarded(&self) -> bool { unsafe { from_glib(ffi::gtk_icon_source_get_state_wildcarded(self.to_glib_none().0)) } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_direction(&mut self, direction: TextDirection) { unsafe { ffi::gtk_icon_source_set_direction(self.to_glib_none_mut().0, direction.to_glib()); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_direction_wildcarded(&mut self, setting: bool) { unsafe { ffi::gtk_icon_source_set_direction_wildcarded(self.to_glib_none_mut().0, setting.to_glib()); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_filename>(&mut self, filename: P) { unsafe { ffi::gtk_icon_source_set_filename(self.to_glib_none_mut().0, filename.as_ref().to_glib_none().0); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_icon_name<'a, P: Into>>(&mut self, icon_name: P) { let icon_name = icon_name.into(); let icon_name = icon_name.to_glib_none(); @@ -110,30 +124,35 @@ impl IconSource { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_pixbuf(&mut self, pixbuf: &gdk_pixbuf::Pixbuf) { unsafe { ffi::gtk_icon_source_set_pixbuf(self.to_glib_none_mut().0, pixbuf.to_glib_none().0); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_size(&mut self, size: i32) { unsafe { ffi::gtk_icon_source_set_size(self.to_glib_none_mut().0, size); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_size_wildcarded(&mut self, setting: bool) { unsafe { ffi::gtk_icon_source_set_size_wildcarded(self.to_glib_none_mut().0, setting.to_glib()); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_state(&mut self, state: StateType) { unsafe { ffi::gtk_icon_source_set_state(self.to_glib_none_mut().0, state.to_glib()); } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn set_state_wildcarded(&mut self, setting: bool) { unsafe { ffi::gtk_icon_source_set_state_wildcarded(self.to_glib_none_mut().0, setting.to_glib()); @@ -141,6 +160,7 @@ impl IconSource { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl Default for IconSource { fn default() -> Self { Self::new() diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 2b2054d770..37812899cb 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; @@ -40,6 +40,7 @@ impl IconTheme { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn add_builtin_icon(icon_name: &str, size: i32, pixbuf: &gdk_pixbuf::Pixbuf) { assert_initialized_main_thread!(); unsafe { diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 7dd3282563..50c88a4fcf 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index 50f03c3c0d..047d8fae3d 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -73,6 +73,7 @@ impl Image { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_icon_set(icon_set: &IconSet, size: i32) -> Image { assert_initialized_main_thread!(); unsafe { @@ -96,6 +97,7 @@ impl Image { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str, size: i32) -> Image { assert_initialized_main_thread!(); unsafe { @@ -126,6 +128,7 @@ pub trait ImageExt { fn get_gicon(&self) -> (gio::Icon, i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_icon_set(&self) -> (IconSet, i32); fn get_pixbuf(&self) -> Option; @@ -142,12 +145,14 @@ pub trait ImageExt { fn set_from_icon_name<'a, P: Into>>(&self, icon_name: P, size: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_from_icon_set(&self, icon_set: &IconSet, size: i32); fn set_from_pixbuf<'a, P: Into>>(&self, pixbuf: P); fn set_from_resource<'a, P: Into>>(&self, resource_path: P); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_from_stock(&self, stock_id: &str, size: i32); #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -181,8 +186,10 @@ pub trait ImageExt { #[cfg(any(feature = "v3_8", feature = "dox"))] fn set_property_resource(&self, resource: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_stock(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_stock(&self, stock: Option<&str>); fn get_property_use_fallback(&self) -> bool; @@ -206,6 +213,7 @@ pub trait ImageExt { #[cfg(any(feature = "v3_8", feature = "dox"))] fn connect_property_resource_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_stock_notify(&self, f: F) -> SignalHandlerId; fn connect_property_storage_type_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 57c5eb5cb9..a0d33ab941 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -31,6 +31,7 @@ glib_wrapper! { } impl ImageMenuItem { + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new() -> ImageMenuItem { assert_initialized_main_thread!(); unsafe { @@ -38,6 +39,7 @@ impl ImageMenuItem { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock<'a, P: Into>>(stock_id: &str, accel_group: P) -> ImageMenuItem { assert_initialized_main_thread!(); let accel_group = accel_group.into(); @@ -47,6 +49,7 @@ impl ImageMenuItem { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_with_label(label: &str) -> ImageMenuItem { assert_initialized_main_thread!(); unsafe { @@ -54,6 +57,7 @@ impl ImageMenuItem { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_with_mnemonic(label: &str) -> ImageMenuItem { assert_initialized_main_thread!(); unsafe { @@ -62,6 +66,7 @@ impl ImageMenuItem { } } +#[cfg_attr(feature = "v3_10", deprecated)] impl Default for ImageMenuItem { fn default() -> Self { Self::new() @@ -69,26 +74,37 @@ impl Default for ImageMenuItem { } pub trait ImageMenuItemExt { + #[cfg_attr(feature = "v3_10", deprecated)] fn get_always_show_image(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_image(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_use_stock(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_accel_group(&self, accel_group: &AccelGroup); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_always_show_image(&self, always_show: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_image<'a, P: IsA + 'a, Q: Into>>(&self, image: Q); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_use_stock(&self, use_stock: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_accel_group_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_always_show_image_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_image_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_use_stock_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 534363cee3..32e66edab8 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index f60a85aedb..6ceacb6116 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/label.rs b/src/auto/label.rs index 7d313dddfc..0b3ecf55d1 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 57a6ecd1a3..55e459b60b 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 29edaa54fe..a7617d0702 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 642fe3ff09..88303d4fb1 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 32bab075f8..9dd376adcc 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 37a49ebd5d..379f118422 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 735eb55bf2..33a4cfcd97 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index ba2c6701fd..1b5703a189 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index 4db4d11bed..2141d30fa3 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -82,8 +82,10 @@ pub trait MenuExt { fn get_reserve_toggle_size(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_tearoff_state(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_title(&self) -> Option; #[cfg(any(feature = "v3_22", feature = "dox"))] @@ -91,6 +93,7 @@ pub trait MenuExt { fn popdown(&self); + //#[cfg_attr(feature = "v3_22", deprecated)] //fn popup<'a, 'b, 'c, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: Into>, U: Into>>(&self, parent_menu_shell: Q, parent_menu_item: S, func: T, data: U, button: u32, activate_time: u32); #[cfg(any(feature = "v3_22", feature = "dox"))] @@ -102,6 +105,7 @@ pub trait MenuExt { #[cfg(any(feature = "v3_22", feature = "dox"))] fn popup_at_widget<'a, P: IsA, Q: Into>>(&self, widget: &P, widget_anchor: gdk::Gravity, menu_anchor: gdk::Gravity, trigger_event: Q); + //#[cfg_attr(feature = "v3_22", deprecated)] //fn popup_for_device<'a, 'b, 'c, 'd, 'e, P: IsA + 'a, Q: Into>, R: IsA + 'b, S: Into>, T: IsA + 'c, U: Into>, V: Into>, W: Into>, X: Into>>(&self, device: Q, parent_menu_shell: S, parent_menu_item: U, func: V, data: W, destroy: X, button: u32, activate_time: u32); fn reorder_child>(&self, child: &P, position: i32); @@ -120,8 +124,10 @@ pub trait MenuExt { fn set_screen<'a, P: Into>>(&self, screen: P); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_tearoff_state(&self, torn_off: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_title(&self, title: &str); #[cfg(any(feature = "v3_22", feature = "dox"))] @@ -150,8 +156,10 @@ pub trait MenuExt { #[cfg(any(feature = "v3_22", feature = "dox"))] fn set_property_rect_anchor_dy(&self, rect_anchor_dy: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_tearoff_title(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_tearoff_title(&self, tearoff_title: Option<&str>); fn get_item_bottom_attach + IsA>(&self, item: &T) -> i32; @@ -201,8 +209,10 @@ pub trait MenuExt { fn connect_property_reserve_toggle_size_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_tearoff_state_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_tearoff_title_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 1fdeb056a5..e4af64a70b 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index be01b8fd5b..3258447f4e 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index daca6aa327..e1ef936dc6 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index b8e96f0162..3b3fe140a9 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 93d0e7413b..fc154c8fa7 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -42,6 +42,7 @@ impl MenuToolButton { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str) -> MenuToolButton { assert_initialized_main_thread!(); unsafe { diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index fa12e976b8..41c7853bc8 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -47,10 +47,12 @@ pub trait MessageDialogExt { //fn format_secondary_text<'a, P: Into>>(&self, message_format: P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_12", deprecated)] fn get_image(&self) -> Option; fn get_message_area(&self) -> Option; + #[cfg_attr(feature = "v3_12", deprecated)] fn set_image>(&self, image: &P); fn set_markup(&self, str: &str); @@ -77,6 +79,7 @@ pub trait MessageDialogExt { fn connect_property_buttons_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_12", deprecated)] fn connect_property_image_notify(&self, f: F) -> SignalHandlerId; fn connect_property_message_area_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index ded08f5044..88dee56320 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -28,36 +28,52 @@ glib_wrapper! { } pub trait MiscExt { + #[cfg_attr(feature = "v3_14", deprecated)] fn get_alignment(&self) -> (f32, f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_padding(&self) -> (i32, i32); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_alignment(&self, xalign: f32, yalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_padding(&self, xpad: i32, ypad: i32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_xalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_xalign(&self, xalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_xpad(&self) -> i32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_xpad(&self, xpad: i32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_yalign(&self) -> f32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_yalign(&self, yalign: f32); + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_ypad(&self) -> i32; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_property_ypad(&self, ypad: i32); + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_xalign_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_xpad_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_yalign_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_ypad_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 44fcc78c4d..38eeee772b 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 16a1b7bfaf..7f05dd6154 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index 13e95b65c7..882affdeba 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Window; diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index 469fe24c74..399d2af26d 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index ffe43b57fc..c3878ed2e3 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index 7339a6744d..faa81c9db7 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index a41ca082c2..9bc4be9e8f 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index 90547548d3..a5577d759e 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index da9c28b0ca..1ddf8efb0c 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index aaea2a20ef..54b64ae741 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index acd237d432..bd3f094dc0 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index 5e54a73da2..552bb5d270 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 79d342cf5b..42416a289f 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -71,6 +71,7 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_10", feature = "dox"))] fn get_open_flags(&self) -> PlacesOpenFlags; + #[cfg_attr(feature = "v3_18", deprecated)] fn get_show_connect_to_server(&self) -> bool; #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -106,6 +107,7 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_open_flags(&self, flags: PlacesOpenFlags); + #[cfg_attr(feature = "v3_18", deprecated)] #[cfg(any(feature = "v3_10", feature = "dox"))] fn set_show_connect_to_server(&self, show_connect_to_server: bool); @@ -176,6 +178,7 @@ pub trait PlacesSidebarExt { //#[cfg(any(feature = "v3_10", feature = "dox"))] //fn connect_populate_popup(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_18", deprecated)] fn connect_show_connect_to_server(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -184,6 +187,7 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_10", feature = "dox"))] fn connect_show_error_message(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_20", deprecated)] #[cfg(any(feature = "v3_18", feature = "dox"))] fn connect_show_other_locations(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/plug.rs b/src/auto/plug.rs index 36928020a9..425e0656b5 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 879e107bf8..deb703106e 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; @@ -79,6 +79,7 @@ pub trait PopoverExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_relative_to(&self) -> Option; + #[cfg_attr(feature = "v3_22", deprecated)] #[cfg(any(feature = "v3_16", feature = "dox"))] fn get_transitions_enabled(&self) -> bool; @@ -106,6 +107,7 @@ pub trait PopoverExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn set_relative_to<'a, P: IsA + 'a, Q: Into>>(&self, relative_to: Q); + #[cfg_attr(feature = "v3_22", deprecated)] #[cfg(any(feature = "v3_16", feature = "dox"))] fn set_transitions_enabled(&self, transitions_enabled: bool); diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 5ee1fb95e4..73a5583450 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 20383ae1d0..bd4d5d50f7 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index cba08a3739..8ce55bfd41 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 7fbbab356b..85e356822a 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 200f147b37..7c93221887 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index dc0b4c3ce9..fe85ccbc04 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 2fd5250a83..78530618c3 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index ad16a52d03..764817c94e 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 5c44a9bf90..1d30d94715 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -35,6 +35,7 @@ impl RadioToolButton { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_with_stock_from_widget(group: &RadioToolButton, stock_id: &str) -> RadioToolButton { skip_assert_initialized!(); unsafe { diff --git a/src/auto/range.rs b/src/auto/range.rs index db5e1430d8..21f62f5005 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -43,6 +43,7 @@ pub trait RangeExt { fn get_lower_stepper_sensitivity(&self) -> SensitivityType; + #[cfg_attr(feature = "v3_20", deprecated)] fn get_min_slider_size(&self) -> i32; fn get_range_rect(&self) -> gdk::Rectangle; @@ -73,6 +74,7 @@ pub trait RangeExt { fn set_lower_stepper_sensitivity(&self, sensitivity: SensitivityType); + #[cfg_attr(feature = "v3_20", deprecated)] fn set_min_slider_size(&self, min_size: i32); fn set_range(&self, min: f64, max: f64); diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index b59173047e..dfe74dfb6d 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 8b54f52213..4a5993c2f3 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 187bd5f390..7c4af68ccf 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index 977a7e5d6c..af66f500e0 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 54c875dafe..802f9da300 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index b5535ffc20..4ecd17893a 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 7ab273b996..a96181afb1 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index 19d00df3c1..b4d3463c6d 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 5ca283a4b3..7633963949 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index fb0e959ef1..1d4c12980b 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 1080ab0824..011b03ce26 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index 8752e5a1a4..dd38230e06 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; @@ -51,6 +51,7 @@ impl ScrolledWindow { } pub trait ScrolledWindowExt { + #[cfg_attr(feature = "v3_8", deprecated)] fn add_with_viewport>(&self, child: &P); fn get_capture_button_press(&self) -> bool; @@ -137,8 +138,10 @@ pub trait ScrolledWindowExt { fn set_property_window_placement(&self, window_placement: CornerType); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_window_placement_set(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_window_placement_set(&self, window_placement_set: bool); #[cfg(any(feature = "v3_16", feature = "dox"))] @@ -188,6 +191,7 @@ pub trait ScrolledWindowExt { fn connect_property_window_placement_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_window_placement_set_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index 0a868efac0..9cf6930cfc 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index 1d9eb6ee8e..11e86e688a 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index 8a029ac18a..66030c4897 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 92ad86194b..e1bb4ee2e8 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index c013253b96..09b2275d6f 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index c0d999ae49..362c06cf47 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 886d68d9e8..f1e823e5d7 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use CornerType; @@ -49,10 +49,12 @@ impl Settings { } } + //#[cfg_attr(feature = "v3_16", deprecated)] //pub fn install_property>(pspec: &P) { // unsafe { TODO: call ffi::gtk_settings_install_property() } //} + //#[cfg_attr(feature = "v3_16", deprecated)] //pub fn install_property_parser>(pspec: &P, parser: /*Unknown conversion*//*Unimplemented*/RcPropertyParser) { // unsafe { TODO: call ffi::gtk_settings_install_property_parser() } //} @@ -62,14 +64,19 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_20", feature = "dox"))] fn reset_property(&self, name: &str); + #[cfg_attr(feature = "v3_16", deprecated)] fn set_double_property(&self, name: &str, v_double: f64, origin: &str); + #[cfg_attr(feature = "v3_16", deprecated)] fn set_long_property(&self, name: &str, v_long: libc::c_long, origin: &str); + //#[cfg_attr(feature = "v3_16", deprecated)] //fn set_property_value(&self, name: &str, svalue: /*Ignored*/&SettingsValue); + #[cfg_attr(feature = "v3_16", deprecated)] fn set_string_property(&self, name: &str, v_string: &str, origin: &str); + //#[cfg_attr(feature = "v3_8", deprecated)] //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 }; fn get_property_gtk_alternative_button_order(&self) -> bool; @@ -84,24 +91,34 @@ pub trait SettingsExt { fn set_property_gtk_application_prefer_dark_theme(&self, gtk_application_prefer_dark_theme: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_auto_mnemonics(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_auto_mnemonics(&self, gtk_auto_mnemonics: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_button_images(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_button_images(&self, gtk_button_images: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_can_change_accels(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_can_change_accels(&self, gtk_can_change_accels: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_color_palette(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_color_palette(&self, gtk_color_palette: Option<&str>); + #[cfg_attr(feature = "v3_8", deprecated)] fn get_property_gtk_color_scheme(&self) -> Option; + #[cfg_attr(feature = "v3_8", deprecated)] fn set_property_gtk_color_scheme(&self, gtk_color_scheme: Option<&str>); fn get_property_gtk_cursor_blink(&self) -> bool; @@ -164,16 +181,20 @@ pub trait SettingsExt { fn set_property_gtk_enable_input_feedback_sounds(&self, gtk_enable_input_feedback_sounds: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_enable_mnemonics(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_enable_mnemonics(&self, gtk_enable_mnemonics: bool); fn get_property_gtk_enable_primary_paste(&self) -> bool; fn set_property_gtk_enable_primary_paste(&self, gtk_enable_primary_paste: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_enable_tooltips(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_enable_tooltips(&self, gtk_enable_tooltips: bool); fn get_property_gtk_entry_password_hint_timeout(&self) -> u32; @@ -188,12 +209,16 @@ pub trait SettingsExt { fn set_property_gtk_error_bell(&self, gtk_error_bell: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_fallback_icon_theme(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_fallback_icon_theme(&self, gtk_fallback_icon_theme: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_file_chooser_backend(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_file_chooser_backend(&self, gtk_file_chooser_backend: Option<&str>); fn get_property_gtk_font_name(&self) -> Option; @@ -204,8 +229,10 @@ pub trait SettingsExt { fn set_property_gtk_fontconfig_timestamp(&self, gtk_fontconfig_timestamp: u32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_icon_sizes(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_icon_sizes(&self, gtk_icon_sizes: Option<&str>); fn get_property_gtk_icon_theme_name(&self) -> Option; @@ -216,20 +243,26 @@ pub trait SettingsExt { fn set_property_gtk_im_module(&self, gtk_im_module: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_im_preedit_style(&self) -> IMPreeditStyle; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_im_preedit_style(&self, gtk_im_preedit_style: IMPreeditStyle); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_im_status_style(&self) -> IMStatusStyle; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_im_status_style(&self, gtk_im_status_style: IMStatusStyle); fn get_property_gtk_key_theme_name(&self) -> Option; fn set_property_gtk_key_theme_name(&self, gtk_key_theme_name: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_keynav_cursor_only(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_keynav_cursor_only(&self, gtk_keynav_cursor_only: bool); #[cfg(any(feature = "v3_20", feature = "dox"))] @@ -238,8 +271,10 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_20", feature = "dox"))] fn set_property_gtk_keynav_use_caret(&self, gtk_keynav_use_caret: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_keynav_wrap_around(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_keynav_wrap_around(&self, gtk_keynav_wrap_around: bool); fn get_property_gtk_label_select_on_focus(&self) -> bool; @@ -252,24 +287,34 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn set_property_gtk_long_press_time(&self, gtk_long_press_time: u32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_menu_bar_accel(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_menu_bar_accel(&self, gtk_menu_bar_accel: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_menu_bar_popup_delay(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_menu_bar_popup_delay(&self, gtk_menu_bar_popup_delay: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_menu_images(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_menu_images(&self, gtk_menu_images: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_menu_popdown_delay(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_menu_popdown_delay(&self, gtk_menu_popdown_delay: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_menu_popup_delay(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_menu_popup_delay(&self, gtk_menu_popup_delay: i32); fn get_property_gtk_modules(&self) -> Option; @@ -296,16 +341,20 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_8", feature = "dox"))] fn set_property_gtk_recent_files_enabled(&self, gtk_recent_files_enabled: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_recent_files_limit(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_recent_files_limit(&self, gtk_recent_files_limit: i32); fn get_property_gtk_recent_files_max_age(&self) -> i32; fn set_property_gtk_recent_files_max_age(&self, gtk_recent_files_max_age: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_scrolled_window_placement(&self) -> CornerType; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_scrolled_window_placement(&self, gtk_scrolled_window_placement: CornerType); fn get_property_gtk_shell_shows_app_menu(&self) -> bool; @@ -320,12 +369,16 @@ pub trait SettingsExt { fn set_property_gtk_shell_shows_menubar(&self, gtk_shell_shows_menubar: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_show_input_method_menu(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_show_input_method_menu(&self, gtk_show_input_method_menu: bool); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_show_unicode_menu(&self) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_show_unicode_menu(&self, gtk_show_unicode_menu: bool); fn get_property_gtk_sound_theme_name(&self) -> Option; @@ -340,16 +393,22 @@ pub trait SettingsExt { fn set_property_gtk_theme_name(&self, gtk_theme_name: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_timeout_expand(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_timeout_expand(&self, gtk_timeout_expand: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_timeout_initial(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_timeout_initial(&self, gtk_timeout_initial: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_timeout_repeat(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_timeout_repeat(&self, gtk_timeout_repeat: i32); #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -370,28 +429,40 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn set_property_gtk_titlebar_right_click(&self, gtk_titlebar_right_click: Option<&str>); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_toolbar_icon_size(&self) -> IconSize; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_toolbar_icon_size(&self, gtk_toolbar_icon_size: IconSize); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_toolbar_style(&self) -> ToolbarStyle; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_toolbar_style(&self, gtk_toolbar_style: ToolbarStyle); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_tooltip_browse_mode_timeout(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_tooltip_browse_mode_timeout(&self, gtk_tooltip_browse_mode_timeout: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_tooltip_browse_timeout(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_tooltip_browse_timeout(&self, gtk_tooltip_browse_timeout: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_tooltip_timeout(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_tooltip_timeout(&self, gtk_tooltip_timeout: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn get_property_gtk_visible_focus(&self) -> PolicyType; + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_gtk_visible_focus(&self, gtk_visible_focus: PolicyType); fn get_property_gtk_xft_antialias(&self) -> i32; @@ -414,6 +485,7 @@ pub trait SettingsExt { fn set_property_gtk_xft_rgba(&self, gtk_xft_rgba: Option<&str>); + #[cfg_attr(feature = "v3_8", deprecated)] fn connect_property_color_hash_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_alternative_button_order_notify(&self, f: F) -> SignalHandlerId; @@ -422,14 +494,19 @@ pub trait SettingsExt { fn connect_property_gtk_application_prefer_dark_theme_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_auto_mnemonics_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_button_images_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_can_change_accels_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_color_palette_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_8", deprecated)] fn connect_property_gtk_color_scheme_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_cursor_blink_notify(&self, f: F) -> SignalHandlerId; @@ -462,10 +539,12 @@ pub trait SettingsExt { fn connect_property_gtk_enable_input_feedback_sounds_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_enable_mnemonics_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_enable_primary_paste_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_enable_tooltips_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_entry_password_hint_timeout_notify(&self, f: F) -> SignalHandlerId; @@ -474,31 +553,38 @@ pub trait SettingsExt { fn connect_property_gtk_error_bell_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_fallback_icon_theme_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_file_chooser_backend_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_font_name_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_fontconfig_timestamp_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_icon_sizes_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_icon_theme_name_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_im_module_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_im_preedit_style_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_im_status_style_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_key_theme_name_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_keynav_cursor_only_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v3_20", feature = "dox"))] fn connect_property_gtk_keynav_use_caret_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_keynav_wrap_around_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_label_select_on_focus_notify(&self, f: F) -> SignalHandlerId; @@ -506,14 +592,19 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn connect_property_gtk_long_press_time_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_menu_bar_accel_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_menu_bar_popup_delay_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_menu_images_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_menu_popdown_delay_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_menu_popup_delay_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_modules_notify(&self, f: F) -> SignalHandlerId; @@ -528,10 +619,12 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_8", feature = "dox"))] fn connect_property_gtk_recent_files_enabled_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_recent_files_limit_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_recent_files_max_age_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_scrolled_window_placement_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_shell_shows_app_menu_notify(&self, f: F) -> SignalHandlerId; @@ -540,8 +633,10 @@ pub trait SettingsExt { fn connect_property_gtk_shell_shows_menubar_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_show_input_method_menu_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_show_unicode_menu_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_sound_theme_name_notify(&self, f: F) -> SignalHandlerId; @@ -550,10 +645,13 @@ pub trait SettingsExt { fn connect_property_gtk_theme_name_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_timeout_expand_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_timeout_initial_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_timeout_repeat_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v3_14", feature = "dox"))] @@ -565,16 +663,22 @@ pub trait SettingsExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn connect_property_gtk_titlebar_right_click_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_toolbar_icon_size_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_toolbar_style_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_tooltip_browse_mode_timeout_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_tooltip_browse_timeout_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_tooltip_timeout_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_gtk_visible_focus_notify(&self, f: F) -> SignalHandlerId; fn connect_property_gtk_xft_antialias_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index 5304068c69..8f43a7fc32 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index 35aa7107b8..0788c1bc2c 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -38,6 +38,7 @@ impl SizeGroup { pub trait SizeGroupExt { fn add_widget>(&self, widget: &P); + #[cfg_attr(feature = "v3_22", deprecated)] fn get_ignore_hidden(&self) -> bool; fn get_mode(&self) -> SizeGroupMode; @@ -46,10 +47,12 @@ pub trait SizeGroupExt { fn remove_widget>(&self, widget: &P); + #[cfg_attr(feature = "v3_22", deprecated)] fn set_ignore_hidden(&self, ignore_hidden: bool); fn set_mode(&self, mode: SizeGroupMode); + #[cfg_attr(feature = "v3_22", deprecated)] fn connect_property_ignore_hidden_notify(&self, f: F) -> SignalHandlerId; fn connect_property_mode_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/socket.rs b/src/auto/socket.rs index 6dcca4e2d1..b78abbf0f4 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index 21e8b6d485..dfcd2c1199 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index e7c2ce27bf..ec8a612443 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index 5b1254e87b..5bb83bbcf3 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index 110b1e2c26..e48cba769c 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index dfa06d7a1f..5985cc7544 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 68778c3fdd..4700efbd5e 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ImageType; @@ -36,6 +36,7 @@ glib_wrapper! { } impl StatusIcon { + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new() -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -43,6 +44,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new_from_file>(filename: P) -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -50,6 +52,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new_from_gicon>(icon: &P) -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -57,6 +60,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new_from_icon_name(icon_name: &str) -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -64,6 +68,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn new_from_pixbuf(pixbuf: &gdk_pixbuf::Pixbuf) -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -71,6 +76,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str) -> StatusIcon { assert_initialized_main_thread!(); unsafe { @@ -78,6 +84,7 @@ impl StatusIcon { } } + #[cfg_attr(feature = "v3_14", deprecated)] pub fn position_menu>(menu: &P, x: &mut i32, y: &mut i32, user_data: &StatusIcon) -> bool { skip_assert_initialized!(); unsafe { @@ -88,6 +95,7 @@ impl StatusIcon { } } +#[cfg_attr(feature = "v3_14", deprecated)] impl Default for StatusIcon { fn default() -> Self { Self::new() @@ -95,58 +103,85 @@ impl Default for StatusIcon { } pub trait StatusIconExt { + #[cfg_attr(feature = "v3_14", deprecated)] fn get_geometry(&self) -> Option<(gdk::Screen, gdk::Rectangle, Orientation)>; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_gicon(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_has_tooltip(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_icon_name(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_pixbuf(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_screen(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_size(&self) -> i32; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_stock(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_storage_type(&self) -> ImageType; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_title(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_tooltip_markup(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_tooltip_text(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_visible(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_x11_window_id(&self) -> u32; + #[cfg_attr(feature = "v3_14", deprecated)] fn is_embedded(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn set_from_file>(&self, filename: P); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_from_gicon>(&self, icon: &P); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_from_icon_name(&self, icon_name: &str); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_from_pixbuf<'a, P: Into>>(&self, pixbuf: P); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_from_stock(&self, stock_id: &str); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_has_tooltip(&self, has_tooltip: bool); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_name(&self, name: &str); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_screen(&self, screen: &gdk::Screen); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_title(&self, title: &str); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_tooltip_markup<'a, P: Into>>(&self, markup: P); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_tooltip_text(&self, text: &str); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_visible(&self, visible: bool); fn get_property_embedded(&self) -> bool; @@ -161,6 +196,7 @@ pub trait StatusIconExt { fn set_property_pixbuf(&self, pixbuf: Option<&gdk_pixbuf::Pixbuf>); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_property_stock(&self, stock: Option<&str>); fn connect_activate(&self, f: F) -> SignalHandlerId; @@ -199,6 +235,7 @@ pub trait StatusIconExt { fn connect_property_size_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_stock_notify(&self, f: F) -> SignalHandlerId; fn connect_property_storage_type_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index a0548c8484..d08a80983e 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 6656d12403..149a1c787b 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Border; @@ -80,20 +80,25 @@ pub trait StyleContextExt { fn add_provider>(&self, provider: &P, priority: u32); + #[cfg_attr(feature = "v3_14", deprecated)] fn add_region(&self, region_name: &str, flags: RegionFlags); + //#[cfg_attr(feature = "v3_6", deprecated)] //fn cancel_animations>>(&self, region_id: P); //fn get(&self, state: StateFlags, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_16", deprecated)] fn get_background_color(&self, state: StateFlags) -> gdk::RGBA; fn get_border(&self, state: StateFlags) -> Border; + #[cfg_attr(feature = "v3_16", deprecated)] fn get_border_color(&self, state: StateFlags) -> gdk::RGBA; fn get_color(&self, state: StateFlags) -> gdk::RGBA; + #[cfg_attr(feature = "v3_8", deprecated)] fn get_direction(&self) -> TextDirection; #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -126,38 +131,49 @@ pub trait StyleContextExt { fn has_class(&self, class_name: &str) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn has_region(&self, region_name: &str) -> Option; + #[cfg_attr(feature = "v3_12", deprecated)] fn invalidate(&self); fn list_classes(&self) -> Vec; + #[cfg_attr(feature = "v3_14", deprecated)] fn list_regions(&self) -> Vec; fn lookup_color(&self, color_name: &str) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn lookup_icon_set(&self, stock_id: &str) -> Option; + //#[cfg_attr(feature = "v3_6", deprecated)] //fn notify_state_change>>(&self, window: &gdk::Window, region_id: P, state: StateType, state_value: bool); + #[cfg_attr(feature = "v3_6", deprecated)] fn pop_animatable_region(&self); + //#[cfg_attr(feature = "v3_6", deprecated)] //fn push_animatable_region>>(&self, region_id: P); fn remove_class(&self, class_name: &str); fn remove_provider>(&self, provider: &P); + #[cfg_attr(feature = "v3_14", deprecated)] fn remove_region(&self, region_name: &str); fn restore(&self); fn save(&self); + #[cfg_attr(feature = "v3_6", deprecated)] fn scroll_animations(&self, window: &gdk::Window, dx: i32, dy: i32); + #[cfg_attr(feature = "v3_18", deprecated)] fn set_background(&self, window: &gdk::Window); + #[cfg_attr(feature = "v3_8", deprecated)] fn set_direction(&self, direction: TextDirection); #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -176,6 +192,7 @@ pub trait StyleContextExt { fn set_state(&self, flags: StateFlags); + #[cfg_attr(feature = "v3_6", deprecated)] fn state_is_running(&self, state: StateType) -> Option; #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index 1dae02f938..25446f9c15 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use StateFlags; @@ -22,6 +22,7 @@ glib_wrapper! { } impl StyleProperties { + #[cfg_attr(feature = "v3_16", deprecated)] pub fn new() -> StyleProperties { assert_initialized_main_thread!(); unsafe { @@ -29,15 +30,18 @@ impl StyleProperties { } } + //#[cfg_attr(feature = "v3_8", deprecated)] //pub fn lookup_property(property_name: &str, parse_func: /*Unknown conversion*//*Unimplemented*/StylePropertyParser, pspec: /*Ignored*/glib::ParamSpec) -> bool { // unsafe { TODO: call ffi::gtk_style_properties_lookup_property() } //} + //#[cfg_attr(feature = "v3_8", deprecated)] //pub fn register_property<'a, P: Into>, Q: IsA>(parse_func: P, pspec: &Q) { // unsafe { TODO: call ffi::gtk_style_properties_register_property() } //} } +#[cfg_attr(feature = "v3_16", deprecated)] impl Default for StyleProperties { fn default() -> Self { Self::new() @@ -45,26 +49,37 @@ impl Default for StyleProperties { } pub trait StylePropertiesExt { + #[cfg_attr(feature = "v3_16", deprecated)] fn clear(&self); + //#[cfg_attr(feature = "v3_16", deprecated)] //fn get(&self, state: StateFlags, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_16", deprecated)] fn get_property(&self, property: &str, state: StateFlags) -> Option; + //#[cfg_attr(feature = "v3_16", deprecated)] //fn get_valist(&self, state: StateFlags, args: /*Unknown conversion*//*Unimplemented*/Unsupported); + #[cfg_attr(feature = "v3_8", deprecated)] fn lookup_color(&self, name: &str) -> Option; + #[cfg_attr(feature = "v3_8", deprecated)] fn map_color(&self, name: &str, color: &SymbolicColor); + #[cfg_attr(feature = "v3_16", deprecated)] fn merge(&self, props_to_merge: &StyleProperties, replace: bool); + //#[cfg_attr(feature = "v3_16", deprecated)] //fn set(&self, state: StateFlags, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); + #[cfg_attr(feature = "v3_16", deprecated)] fn set_property(&self, property: &str, state: StateFlags, value: &glib::Value); + //#[cfg_attr(feature = "v3_16", deprecated)] //fn set_valist(&self, state: StateFlags, args: /*Unknown conversion*//*Unimplemented*/Unsupported); + #[cfg_attr(feature = "v3_16", deprecated)] fn unset_property(&self, property: &str, state: StateFlags); } diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index f69a83a0a1..d6d3324a1f 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; @@ -18,8 +18,10 @@ 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_style(&self, path: /*Ignored*/&mut WidgetPath) -> Option; //fn get_style_property>(&self, path: /*Ignored*/&mut WidgetPath, state: StateFlags, pspec: &P) -> Option; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index 3c82896130..53542a5256 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 7175d26b46..1262f73c52 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use StyleProperties; @@ -22,6 +22,7 @@ glib_wrapper! { } impl SymbolicColor { + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_alpha(color: &SymbolicColor, factor: f64) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -29,6 +30,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_literal(color: &gdk::RGBA) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -36,6 +38,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_mix(color1: &SymbolicColor, color2: &SymbolicColor, factor: f64) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -43,6 +46,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_name(name: &str) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -50,6 +54,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_shade(color: &SymbolicColor, factor: f64) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -57,6 +62,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn new_win32(theme_class: &str, id: i32) -> SymbolicColor { assert_initialized_main_thread!(); unsafe { @@ -64,6 +70,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] pub fn resolve<'a, P: Into>>(&self, props: P) -> Option { let props = props.into(); let props = props.to_glib_none(); @@ -74,6 +81,7 @@ impl SymbolicColor { } } + #[cfg_attr(feature = "v3_8", deprecated)] fn to_string(&self) -> String { unsafe { from_glib_full(ffi::gtk_symbolic_color_to_string(self.to_glib_none().0)) diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 57fd7d3344..102e1f1e8f 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 5ad0a99b60..1a4ad10765 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 62e039aefd..d3ee09d6f0 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index 61db636ef1..67c1851cc4 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index 4599b120df..cbd6f01d91 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TextBuffer; @@ -152,6 +152,7 @@ impl TextIter { } } + #[cfg_attr(feature = "v3_20", deprecated)] pub fn begins_tag<'a, P: Into>>(&self, tag: P) -> bool { let tag = tag.into(); let tag = tag.to_glib_none(); diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index bcb507b002..4fa3c57335 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index e3b923d6c3..f8e7a7bfaa 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 3cf1957ab5..a16f7cb808 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index 4febdbbd7c..c1bdcb3d7f 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 95b0f11c9f..85c3fbf15a 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 9f0af10053..24b69b61c8 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -38,6 +38,7 @@ impl ToggleToolButton { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str) -> ToggleToolButton { assert_initialized_main_thread!(); unsafe { diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 65572e013b..b0ee4f76fe 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; @@ -41,6 +41,7 @@ impl ToolButton { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn new_from_stock(stock_id: &str) -> ToolButton { assert_initialized_main_thread!(); unsafe { @@ -58,6 +59,7 @@ pub trait ToolButtonExt { fn get_label_widget(&self) -> Option; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_stock_id(&self) -> Option; fn get_use_underline(&self) -> bool; @@ -70,6 +72,7 @@ pub trait ToolButtonExt { fn set_label_widget<'a, P: IsA + 'a, Q: Into>>(&self, label_widget: Q); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_stock_id<'a, P: Into>>(&self, stock_id: P); fn set_use_underline(&self, use_underline: bool); @@ -86,6 +89,7 @@ pub trait ToolButtonExt { fn connect_property_label_widget_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_10", deprecated)] fn connect_property_stock_id_notify(&self, f: F) -> SignalHandlerId; fn connect_property_use_underline_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 61f3d3a275..acc971169a 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index e19b84b1d0..9c5bd4916f 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index efe2272750..d298d19361 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index d0b0017ca8..2bf921661f 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 250ceedcbf..336dc79212 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 5356095369..7c172ad05b 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Widget; @@ -39,6 +39,7 @@ pub trait TooltipExt { fn set_icon_from_icon_name<'a, P: Into>>(&self, icon_name: P, size: i32); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_icon_from_stock<'a, P: Into>>(&self, stock_id: P, size: i32); fn set_markup<'a, P: Into>>(&self, markup: P); diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index dd128b02a4..a97da45110 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index 49d507781e..749d9dae8c 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 5c98dc0cf2..f71f8f3e0a 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 64dfc4b68f..bb841c6298 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index fcca162cd5..e5a40c0337 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index 233c24d6d5..c8ab03561c 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 879b4e5c05..4eadd2bf3d 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 26ca226127..836eb65204 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index c59059eba2..c485a945bc 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; @@ -146,6 +146,7 @@ pub trait TreeViewExt { fn get_rubber_banding(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_rules_hint(&self) -> bool; fn get_search_column(&self) -> i32; @@ -231,6 +232,7 @@ pub trait TreeViewExt { fn set_rubber_banding(&self, enable: bool); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_rules_hint(&self, setting: bool); fn set_search_column(&self, column: i32); @@ -336,6 +338,7 @@ pub trait TreeViewExt { fn connect_property_rubber_banding_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_rules_hint_notify(&self, f: F) -> SignalHandlerId; fn connect_property_search_column_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index d2bcde2012..fbfe4c5cdb 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 (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index da52a51521..17fb415720 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 3471ed60c4..02a405a806 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 1783794df1..1656e1da0f 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AccelFlags; @@ -66,6 +66,7 @@ impl Widget { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn pop_composite_child() { assert_initialized_main_thread!(); unsafe { @@ -73,6 +74,7 @@ impl Widget { } } + #[cfg_attr(feature = "v3_10", deprecated)] pub fn push_composite_child() { assert_initialized_main_thread!(); unsafe { @@ -120,6 +122,7 @@ pub trait WidgetExt { fn device_is_shadowed>(&self, device: &P) -> bool; + #[cfg_attr(feature = "v3_10", deprecated)] fn drag_begin<'a, P: Into>>(&self, targets: &TargetList, actions: gdk::DragAction, button: i32, event: P) -> Option; #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -139,6 +142,7 @@ pub trait WidgetExt { fn drag_dest_get_track_motion(&self) -> bool; + #[cfg_attr(feature = "v3_22", deprecated)] fn drag_dest_set_proxy(&self, proxy_window: &gdk::Window, protocol: gdk::DragProtocol, use_coordinates: bool); fn drag_dest_set_target_list<'a, P: Into>>(&self, target_list: P); @@ -165,6 +169,7 @@ pub trait WidgetExt { fn drag_source_set_icon_pixbuf(&self, pixbuf: &gdk_pixbuf::Pixbuf); + #[cfg_attr(feature = "v3_10", deprecated)] fn drag_source_set_icon_stock(&self, stock_id: &str); fn drag_source_set_target_list<'a, P: Into>>(&self, target_list: P); @@ -213,6 +218,7 @@ pub trait WidgetExt { fn get_clipboard(&self, selection: &gdk::Atom) -> Clipboard; + #[cfg_attr(feature = "v3_10", deprecated)] fn get_composite_name(&self) -> Option; fn get_device_enabled>(&self, device: &P) -> bool; @@ -256,8 +262,10 @@ pub trait WidgetExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn get_margin_end(&self) -> i32; + #[cfg_attr(feature = "v3_12", deprecated)] fn get_margin_left(&self) -> i32; + #[cfg_attr(feature = "v3_12", deprecated)] fn get_margin_right(&self) -> i32; #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -301,6 +309,7 @@ pub trait WidgetExt { fn get_request_mode(&self) -> SizeRequestMode; + #[cfg_attr(feature = "v3_12", deprecated)] fn get_root_window(&self) -> Option; #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -379,6 +388,7 @@ pub trait WidgetExt { fn is_ancestor>(&self, ancestor: &P) -> bool; + #[cfg_attr(feature = "v3_22", deprecated)] fn is_composited(&self) -> bool; fn is_drawable(&self) -> bool; @@ -405,14 +415,19 @@ pub trait WidgetExt { fn mnemonic_activate(&self, group_cycling: bool) -> bool; + #[cfg_attr(feature = "v3_16", deprecated)] fn override_background_color<'a, P: Into>>(&self, state: StateFlags, color: P); + #[cfg_attr(feature = "v3_16", deprecated)] fn override_color<'a, P: Into>>(&self, state: StateFlags, color: P); + #[cfg_attr(feature = "v3_16", deprecated)] fn override_cursor<'a, 'b, P: Into>, Q: Into>>(&self, cursor: P, secondary_cursor: Q); + #[cfg_attr(feature = "v3_16", deprecated)] fn override_font<'a, P: Into>>(&self, font_desc: P); + #[cfg_attr(feature = "v3_16", deprecated)] fn override_symbolic_color<'a, P: Into>>(&self, name: &str, color: P); #[cfg(any(feature = "v3_20", feature = "dox"))] @@ -432,6 +447,7 @@ pub trait WidgetExt { fn realize(&self); + #[cfg_attr(feature = "v3_14", deprecated)] fn region_intersect(&self, region: &cairo::Region) -> Option; #[cfg(any(feature = "v3_8", feature = "dox"))] @@ -444,12 +460,15 @@ pub trait WidgetExt { #[cfg(any(feature = "v3_8", feature = "dox"))] fn remove_tick_callback(&self, id: u32); + #[cfg_attr(feature = "v3_10", deprecated)] fn render_icon_pixbuf(&self, stock_id: &str, size: i32) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn reparent>(&self, new_parent: &P); fn reset_style(&self); + #[cfg_attr(feature = "v3_22", deprecated)] fn send_expose(&self, event: &gdk::Event) -> i32; fn send_focus_change(&self, event: &gdk::Event) -> bool; @@ -469,6 +488,7 @@ pub trait WidgetExt { #[cfg(any(feature = "v3_14", feature = "dox"))] fn set_clip(&self, clip: &Allocation); + #[cfg_attr(feature = "v3_10", deprecated)] fn set_composite_name(&self, name: &str); fn set_device_enabled>(&self, device: &P, enabled: bool); @@ -477,6 +497,7 @@ pub trait WidgetExt { fn set_direction(&self, dir: TextDirection); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_double_buffered(&self, double_buffered: bool); fn set_events(&self, events: i32); @@ -507,8 +528,10 @@ pub trait WidgetExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn set_margin_end(&self, margin: i32); + #[cfg_attr(feature = "v3_12", deprecated)] fn set_margin_left(&self, margin: i32); + #[cfg_attr(feature = "v3_12", deprecated)] fn set_margin_right(&self, margin: i32); #[cfg(any(feature = "v3_12", feature = "dox"))] @@ -633,8 +656,10 @@ pub trait WidgetExt { //fn connect_child_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_22", deprecated)] fn connect_composited_changed(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_22", deprecated)] fn emit_composited_changed(&self); fn connect_configure_event bool + 'static>(&self, f: F) -> SignalHandlerId; @@ -759,6 +784,7 @@ pub trait WidgetExt { fn connect_unrealize(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_12", deprecated)] fn connect_visibility_notify_event Inhibit + 'static>(&self, f: F) -> SignalHandlerId; fn connect_window_state_event Inhibit + 'static>(&self, f: F) -> SignalHandlerId; @@ -771,6 +797,7 @@ pub trait WidgetExt { fn connect_property_composite_child_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_double_buffered_notify(&self, f: F) -> SignalHandlerId; fn connect_property_events_notify(&self, f: F) -> SignalHandlerId; @@ -803,8 +830,10 @@ pub trait WidgetExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn connect_property_margin_end_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_12", deprecated)] fn connect_property_margin_left_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_12", deprecated)] fn connect_property_margin_right_notify(&self, f: F) -> SignalHandlerId; #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/window.rs b/src/auto/window.rs index 9f3542a19f..65642e505e 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use AccelGroup; @@ -164,6 +164,7 @@ pub trait GtkWindowExt { fn get_group(&self) -> Option; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_has_resize_grip(&self) -> bool; fn get_hide_titlebar_when_maximized(&self) -> bool; @@ -180,6 +181,7 @@ pub trait GtkWindowExt { fn get_modal(&self) -> bool; + #[cfg_attr(feature = "v3_8", deprecated)] #[cfg(any(not(feature = "v3_8"), feature = "dox"))] fn get_opacity(&self) -> f64; @@ -187,6 +189,7 @@ pub trait GtkWindowExt { fn get_resizable(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_resize_grip_area(&self) -> Option; fn get_role(&self) -> Option; @@ -227,6 +230,7 @@ pub trait GtkWindowExt { fn move_(&self, x: i32, y: i32); + #[cfg_attr(feature = "v3_20", deprecated)] fn parse_geometry(&self, geometry: &str) -> bool; fn present(&self); @@ -239,12 +243,15 @@ pub trait GtkWindowExt { fn remove_mnemonic>(&self, keyval: u32, target: &P); + #[cfg_attr(feature = "v3_10", deprecated)] fn reshow_with_initial_size(&self); fn resize(&self, width: i32, height: i32); + #[cfg_attr(feature = "v3_14", deprecated)] fn resize_grip_is_visible(&self) -> bool; + #[cfg_attr(feature = "v3_20", deprecated)] fn resize_to_geometry(&self, width: i32, height: i32); fn set_accept_focus(&self, setting: bool); @@ -257,6 +264,7 @@ pub trait GtkWindowExt { fn set_default<'a, P: IsA + 'a, Q: Into>>(&self, default_widget: Q); + #[cfg_attr(feature = "v3_20", deprecated)] fn set_default_geometry(&self, width: i32, height: i32); fn set_default_size(&self, width: i32, height: i32); @@ -275,6 +283,7 @@ pub trait GtkWindowExt { fn set_gravity(&self, gravity: gdk::Gravity); + #[cfg_attr(feature = "v3_14", deprecated)] fn set_has_resize_grip(&self, value: bool); fn set_has_user_ref_count(&self, setting: bool); @@ -299,6 +308,7 @@ pub trait GtkWindowExt { fn set_modal(&self, modal: bool); + #[cfg_attr(feature = "v3_8", deprecated)] #[cfg(any(not(feature = "v3_8"), feature = "dox"))] fn set_opacity(&self, opacity: f64); @@ -327,6 +337,7 @@ pub trait GtkWindowExt { fn set_urgency_hint(&self, setting: bool); + #[cfg_attr(feature = "v3_22", deprecated)] fn set_wmclass(&self, wmclass_name: &str, wmclass_class: &str); fn stick(&self); @@ -351,6 +362,7 @@ pub trait GtkWindowExt { fn get_property_is_maximized(&self) -> bool; + #[cfg_attr(feature = "v3_14", deprecated)] fn get_property_resize_grip_visible(&self) -> bool; fn get_property_type(&self) -> WindowType; @@ -397,6 +409,7 @@ pub trait GtkWindowExt { fn connect_property_gravity_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_has_resize_grip_notify(&self, f: F) -> SignalHandlerId; fn connect_property_has_toplevel_focus_notify(&self, f: F) -> SignalHandlerId; @@ -417,6 +430,7 @@ pub trait GtkWindowExt { fn connect_property_resizable_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_14", deprecated)] fn connect_property_resize_grip_visible_notify(&self, f: F) -> SignalHandlerId; fn connect_property_role_notify(&self, f: F) -> SignalHandlerId; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index 14b7d3db89..a81d8b1d26 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (13f739b) from gir-files (db49619) +// This file was generated by gir (c6b70b0) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/lib.rs b/src/lib.rs index f4835032a3..2bcc9292d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright 2013-2016, The Gtk-rs Project Developers. +// Copyright 2013-2018, The Gtk-rs Project Developers. // See the COPYRIGHT file at the top-level directory of this distribution. // Licensed under the MIT license, see the LICENSE file or @@ -147,6 +147,7 @@ #![cfg_attr(feature = "cargo-clippy", allow(new_without_default))] #![cfg_attr(feature = "cargo-clippy", allow(type_complexity))] #![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))] +#![allow(deprecated)] extern crate libc; #[macro_use] From af36ea5e87ea185db642ecb823175ee715721aa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Tue, 23 Jan 2018 00:00:00 +0000 Subject: [PATCH 018/210] Expose gtk_clipboard_set_with_data. Rust implementation exposes only GtkClipboardGetFunc as customization point. GtkClipboardClearFunc is used implicitly to clean up the provided closure. --- src/clipboard.rs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ src/lib.rs | 1 + src/prelude.rs | 1 + 3 files changed, 60 insertions(+) create mode 100644 src/clipboard.rs diff --git a/src/clipboard.rs b/src/clipboard.rs new file mode 100644 index 0000000000..f0f8228613 --- /dev/null +++ b/src/clipboard.rs @@ -0,0 +1,58 @@ +// Copyright 2018, The Gtk-rs Project Developers. +// See the COPYRIGHT file at the top-level directory of this distribution. +// Licensed under the MIT license, see the LICENSE file or + +use Clipboard; +use SelectionData; +use TargetEntry; +use ffi; +use glib::object::IsA; +use glib::translate::*; +use glib_ffi::gpointer; +use libc::c_uint; +use std::boxed::Box as Box_; +use std::mem::transmute; + +pub trait ClipboardExtManual { + fn set_with_data(&self, targets: &[TargetEntry], f: F) -> bool; +} + +impl> ClipboardExtManual for O { + fn set_with_data(&self, targets: &[TargetEntry], f: F) -> bool { + let stashed_targets: Vec<_> = targets.iter().map(|e| e.to_glib_none()).collect(); + let mut t = Vec::with_capacity(stashed_targets.len()); + for stash in &stashed_targets { + unsafe { + t.push(ffi::GtkTargetEntry { + target: (*stash.0).target, + flags: (*stash.0).flags, + info: (*stash.0).info, + }); + } + } + let t_ptr: *mut ffi::GtkTargetEntry = t.as_mut_ptr(); + let f: Box_> = Box_::new(Box_::new(f)); + let user_data = Box_::into_raw(f) as *mut _; + let success : bool = unsafe { from_glib(ffi::gtk_clipboard_set_with_data(self.to_glib_none().0, + t_ptr, t.len() as c_uint, + Some(trampoline), Some(cleanup), user_data)) + }; + if !success { + // Cleanup function is not called in case of a failure. + unsafe { Box_::>::from_raw(user_data as *mut _); } + } + success + } +} + +unsafe extern "C" fn trampoline(clipboard: *mut ffi::GtkClipboard, selection_data: *mut ffi::GtkSelectionData, info: c_uint, user_data: gpointer) { + callback_guard!(); + let f: &&(Fn(&Clipboard, &SelectionData, u32) + 'static) = transmute(user_data); + f(&from_glib_borrow(clipboard), &from_glib_borrow(selection_data), info); +} + + +unsafe extern "C" fn cleanup(_clipboard: *mut ffi::GtkClipboard, user_data: gpointer) { + callback_guard!(); + Box_::>::from_raw(user_data as *mut _); +} diff --git a/src/lib.rs b/src/lib.rs index 2bcc9292d8..88bd3a9cd3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -206,6 +206,7 @@ mod assistant; mod buildable; mod builder; mod border; +mod clipboard; mod color_button; mod color_chooser; mod dialog; diff --git a/src/prelude.rs b/src/prelude.rs index c8be2102c7..49568868f2 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -11,6 +11,7 @@ pub use auto::traits::*; pub use app_chooser::AppChooserExt; pub use assistant::AssistantExtManual; pub use buildable::BuildableExtManual; +pub use clipboard::ClipboardExtManual; pub use color_button::ColorButtonExtManual; pub use color_chooser::ColorChooserExtManual; pub use dialog::DialogExtManual; From f159b9700c56292b1a0536f4d08d4de5f2f3a673 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sun, 28 Jan 2018 19:27:04 +0300 Subject: [PATCH 019/210] Remove unnecessary parentheses and add missed properties --- Gir.toml | 1 + 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 | 20 +++++++++++++++++++- 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 | 2 +- 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 | 6 +++--- 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 | 2 +- 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 | 2 +- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 2 +- src/auto/window.rs | 2 +- src/auto/window_group.rs | 2 +- 207 files changed, 227 insertions(+), 208 deletions(-) diff --git a/Gir.toml b/Gir.toml index b82fa7ffd0..ba850cdd7b 100644 --- a/Gir.toml +++ b/Gir.toml @@ -304,6 +304,7 @@ manual = [ "cairo.RectangleInt", "cairo.Region", "cairo.Surface", + "Pango.Alignment", "Pango.AttrList", "Pango.Context", "Pango.Direction", diff --git a/gir b/gir index c6b70b00ac..9261d77759 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit c6b70b00ac5b3de2defc59da54685aa488a34e3d +Subproject commit 9261d777599a76181762331b2086a307402911c0 diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 8ad424d56b..6e05bd38e4 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index d9061ec4c1..9e73d04815 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 38604690e5..252f482f70 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index abbde9a6bf..ea55a67936 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index ecaef91a47..e07e600053 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index e504230242..7254509b7a 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index 62c39cf23b..bcd4a96655 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 1816ae130b..72f3d03625 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index a3af4b3a0d..e9d3b8778e 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index b7018d6362..6097f54b01 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ApplicationInhibitFlags; diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 9b9a47f416..3ec9299b5c 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 5fec873fad..2c80fec8cf 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index db9ea5179c..91bd87117e 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 0ed77c4e0a..5447f2735c 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 8e7f993056..185dc22993 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index 20451b6c57..1a51ceaa85 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 3b41fa5983..e5782b5025 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index eafac39d5e..9bd5fd5d91 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 2a6936d2be..4d2b8521ea 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index 884da35728..c9af000d75 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index 4279cba942..e3d3cc815f 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 74408f215c..5c06f3846c 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 230138fa70..64c7bc1320 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 984edbdce9..cc533500cf 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 8c0bff3432..5225015c9e 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index bcf008ce78..ffd50ed657 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index 0bf8390250..05defa962b 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 1d0ddf91b8..f914b63dbb 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 914750386d..0b58fecc80 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index cad0fcb1f6..51e4d56bfb 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index a644647223..8bb8d9dbba 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index 13a68e637f..f20ada3f7f 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 8e5f9c9960..437d800c6a 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index 9baf8b6150..daa2dc6443 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; @@ -52,6 +52,10 @@ pub trait CellRendererTextExt { fn set_property_align_set(&self, align_set: bool); + fn get_property_alignment(&self) -> pango::Alignment; + + fn set_property_alignment(&self, alignment: pango::Alignment); + fn set_property_background(&self, background: Option<&str>); fn get_property_background_rgba(&self) -> Option; @@ -326,6 +330,20 @@ impl + IsA> CellRendererTextExt f } } + fn get_property_alignment(&self) -> pango::Alignment { + unsafe { + let mut value = Value::from_type(::static_type()); + gobject_ffi::g_object_get_property(self.to_glib_none().0, "alignment".to_glib_none().0, value.to_glib_none_mut().0); + value.get().unwrap() + } + } + + fn set_property_alignment(&self, alignment: pango::Alignment) { + unsafe { + gobject_ffi::g_object_set_property(self.to_glib_none().0, "alignment".to_glib_none().0, Value::from(&alignment).to_glib_none().0); + } + } + fn set_property_background(&self, background: Option<&str>) { unsafe { gobject_ffi::g_object_set_property(self.to_glib_none().0, "background".to_glib_none().0, Value::from(background).to_glib_none().0); diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 6df032a3ac..99b91d19dd 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index b8b54084bd..088f28331e 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index d404c11664..95261e1894 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 0a0ae36cd2..d1dc687b58 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 41cd846442..4ceb50ff65 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index e935fb9eb7..a5bbd055ec 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 149b46aa3f..65cbbb25fd 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 80b6a9d0b4..dd86f187cb 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index 0306d3bd39..dfb1af39f4 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index f2ce9918c0..2d18589df0 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index f5a9e8dfce..60234b25f2 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index 1e59d3a62b..c072637797 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 601bff619f..8059bff7cc 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index 8f3d44a027..725a9367b9 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index 87a509d60d..ed7e68fe71 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index 76bc8fd3cd..dc0529ce10 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index f347d984f5..a29112f4d6 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index fa05834c7a..4492ece464 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index 1257c4ccf3..6de8df2b14 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 2197591703..0afcbaf3d5 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index f9f27f76f6..e8c5421f0f 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 296a051890..5995e9013b 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index f17c116ba1..2d940ba60c 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index fac36c4528..42ccf98f7a 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index fc13906745..61b9ce35c3 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index d849712c03..0b1fe7df57 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index 1af3c11d07..dfe4d059eb 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use FileChooser; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index 4243694a60..e2b6b4a186 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index 2c6b5dda73..797da182ae 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index cfacefbc6c..6e7bfcb68b 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index d4e9ed3c45..742622e8d7 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index a565ccbca6..5187766ac9 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index f65cf7ee53..de38194379 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index a913a89ebf..ac1e244e60 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index 97aa9d2c82..eeb1879fb7 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 690da978a6..10c2925599 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index c9dbd1db25..9c11c4804e 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index 56133970c6..22e31f7a98 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 58af165e33..3cd2785503 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index 9b624b515b..47f79c5811 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 8184068dcc..975fe02339 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 290124e3e3..01d5c571fd 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index c22ce7d345..bdd4bffdd2 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index f99671e7c2..4638a8ae62 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index f94dc91218..928fd8462b 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 7da519bbde..8a93349044 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index a4e6040e0c..079c797865 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 204e6d6ef9..b22537d99a 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index af8773d7db..1ec2698af0 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index 6fcd5fbf0b..f61d96e197 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 19b5e472b4..9e6dbd0707 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index b698dc60c6..a32c754065 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index 739931c1de..405fb3c12e 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 86dacc0318..ee62e4b300 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index 5eadabe134..a4cdb31ccc 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; @@ -214,7 +214,7 @@ impl> IconInfoExt for O { 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 result = if error.is_null() { Ok(from_glib(was_symbolic)) } else { Err(from_glib_full(error)) }; let callback: Box> = Box::from_raw(user_data as *mut _); callback(result); } @@ -244,7 +244,7 @@ impl> IconInfoExt for O { 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 result = if error.is_null() { Ok(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 428063b0de..88c272dd2c 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index c7416aaa80..d8354a510d 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 37812899cb..e4b3b9c7a4 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 50c88a4fcf..9116f540d4 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index 047d8fae3d..d4913c5c20 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index a0d33ab941..2937e7a3b0 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index 32e66edab8..b02574f255 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index 6ceacb6116..14f48159c2 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/label.rs b/src/auto/label.rs index 0b3ecf55d1..5f71c15fa9 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 55e459b60b..08dc91c083 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index a7617d0702..c22f1c6580 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 88303d4fb1..d6a6350875 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 9dd376adcc..c867b4854b 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 379f118422..624ba5edcb 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 33a4cfcd97..50625fd9eb 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index 1b5703a189..0b0ede0b96 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index 2141d30fa3..de5121c4ab 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index e4af64a70b..7774c1fb49 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 3258447f4e..4b431d43e0 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index e1ef936dc6..64a12a8c37 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 3b3fe140a9..520d79d178 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index fc154c8fa7..46bf2f899b 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 41c7853bc8..78e5843796 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 88dee56320..9403b0c076 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 38eeee772b..a7d5696fb8 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 7f05dd6154..9bead846f2 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index 882affdeba..ddc30e2fd6 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Window; diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index 399d2af26d..a83d4073ef 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index c3878ed2e3..347fc7bc72 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index faa81c9db7..39c185fd70 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index 9bc4be9e8f..2dc059ae5b 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index a5577d759e..46210d9bbc 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index 1ddf8efb0c..46ae74b7c5 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use EventController; diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 54b64ae741..f946245fdd 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index bd3f094dc0..3f40abeeb1 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index 552bb5d270..fb90883786 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index 42416a289f..cd08634d52 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/plug.rs b/src/auto/plug.rs index 425e0656b5..a7e274768d 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/popover.rs b/src/auto/popover.rs index deb703106e..30be9dbd1f 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 73a5583450..992bccc79e 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index bd4d5d50f7..251628171c 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index 8ce55bfd41..351a77b034 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 85e356822a..1cfeb1aab0 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 7c93221887..96ecfb1e0e 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index fe85ccbc04..ed8f25921a 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 78530618c3..009171023e 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index 764817c94e..c2113aa8a6 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 1d30d94715..a2b022fbae 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index 21f62f5005..82e390a3fd 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index dfe74dfb6d..c230b9299b 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 4a5993c2f3..3521606f2d 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 7c4af68ccf..2a4bb0c28a 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index af66f500e0..d782897e40 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index 802f9da300..ab6e390e04 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index 4ecd17893a..d6bf8e7ca8 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index a96181afb1..e12b3cf0f0 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index b4d3463c6d..a48963ff15 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 7633963949..0b38a75439 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index 1d4c12980b..ff4912ef99 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index 011b03ce26..b0b73c8398 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index dd38230e06..a1a2896045 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index 9cf6930cfc..d0e4def773 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index 11e86e688a..a131b20814 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index 66030c4897..8e4df93397 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index e1bb4ee2e8..68588932b9 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index 09b2275d6f..cd44b50a94 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index 362c06cf47..157b55bbad 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index f1e823e5d7..4b4e5916b9 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use CornerType; diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index 8f43a7fc32..c862510e38 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index 0788c1bc2c..abcf57e810 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/socket.rs b/src/auto/socket.rs index b78abbf0f4..26acad9929 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index dfcd2c1199..6c36036c15 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index ec8a612443..27574eed3f 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index 5bb83bbcf3..fe5ea99dc5 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index e48cba769c..b644564559 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index 5985cc7544..52599f996e 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index 4700efbd5e..b277d9dd67 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ImageType; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index d08a80983e..03a1eb3257 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 149a1c787b..733b6d712b 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Border; diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index 25446f9c15..bc5d87365e 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index d6d3324a1f..82439b8ddb 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index 53542a5256..b73f10deea 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 1262f73c52..0a223f846a 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 102e1f1e8f..097901d982 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 1a4ad10765..086d061e81 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index d3ee09d6f0..80653d0a19 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index 67c1851cc4..ce35ebddc9 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index cbd6f01d91..c41b18e5fb 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 4fa3c57335..17f97da52b 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index f8e7a7bfaa..495a838632 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index a16f7cb808..8862db45cd 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index c1bdcb3d7f..f297fd4d9a 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 85c3fbf15a..7e943ecad7 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index 24b69b61c8..c42914ecc2 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index b0ee4f76fe..123815eeca 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index acc971169a..362971311a 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index 9c5bd4916f..60e801926e 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index d298d19361..213d0ce444 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 2bf921661f..277d033694 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 336dc79212..1dbc764eb8 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 7c172ad05b..4d37659ecf 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index a97da45110..a4c780fdbf 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index 749d9dae8c..75c4e85fda 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index f71f8f3e0a..7a93d059f4 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index bb841c6298..91a257b0bc 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index e5a40c0337..af51b18fec 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index c8ab03561c..b7543a531a 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 4eadd2bf3d..8fd0ce819e 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 836eb65204..30dea9c541 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index c485a945bc..4a51cf7fad 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index fbfe4c5cdb..b039f9c094 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 (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index 17fb415720..f9a9f80359 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 02a405a806..251ca5c8e2 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 1656e1da0f..fb91017341 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AccelFlags; diff --git a/src/auto/window.rs b/src/auto/window.rs index 65642e505e..a69c815452 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index a81d8b1d26..a22d3f1dfb 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (c6b70b0) from gir-files (469db10) +// This file was generated by gir (9261d77) from gir-files (469db10) // DO NOT EDIT use Widget; From f675aed45cbfc17a1d10ccc7b7cc8125a5528c41 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sat, 3 Feb 2018 17:21:16 +0300 Subject: [PATCH 020/210] Regen for Gtk 3.22.26 --- Gir.toml | 3 ++ gir | 2 +- gir-files | 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 | 10 +++-- 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 | 2 +- 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 | 4 +- 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 | 2 +- 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 | 2 +- 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 | 62 ++++++++++++++++++++++++++++- src/auto/plug.rs | 2 +- src/auto/popover.rs | 3 +- 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 | 2 +- src/auto/style_properties.rs | 2 +- src/auto/style_provider.rs | 2 +- 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 | 25 +++++++++++- src/auto/toggle_button.rs | 2 +- src/auto/toggle_tool_button.rs | 2 +- src/auto/tool_button.rs | 2 +- src/auto/tool_item.rs | 10 +++-- 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 | 2 +- src/auto/window.rs | 2 +- src/auto/window_group.rs | 2 +- 208 files changed, 306 insertions(+), 213 deletions(-) diff --git a/Gir.toml b/Gir.toml index ba850cdd7b..e441a2a89b 100644 --- a/Gir.toml +++ b/Gir.toml @@ -1137,6 +1137,9 @@ status = "generate" name = "drag-perform-drop" #[gio::File] ignore = true + [[object.property]] + name = "show-starred-location" + version = "3.22.26" [[object]] name = "Gtk.Plug" diff --git a/gir b/gir index 9261d77759..0f1d1c1784 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 9261d777599a76181762331b2086a307402911c0 +Subproject commit 0f1d1c178407c918d5cd2fbd5cf67126324cd4ff diff --git a/gir-files b/gir-files index 469db10183..77d1f70a9c 160000 --- a/gir-files +++ b/gir-files @@ -1 +1 @@ -Subproject commit 469db1018320ebda8f82b144e411fba8b2373549 +Subproject commit 77d1f70a9c4804961897d64827794442becb07d5 diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 6e05bd38e4..814758f414 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 9e73d04815..ce7eaddf3c 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 252f482f70..8569dd8441 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index ea55a67936..234b2d01b7 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index e07e600053..45c0a5d7e6 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 7254509b7a..9e8cdc7460 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index bcd4a96655..ac7ec6ab27 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 72f3d03625..4539b44c9d 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index e9d3b8778e..0479d69360 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index 6097f54b01..d498e6020e 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ApplicationInhibitFlags; diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 3ec9299b5c..b25a9ea85f 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 2c80fec8cf..6a78d27e16 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 91bd87117e..9322edf812 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 5447f2735c..8f4a81779a 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 185dc22993..81bbb8382a 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index 1a51ceaa85..a8b6247733 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index e5782b5025..3cc4a7efb2 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 9bd5fd5d91..129707e580 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 4d2b8521ea..702aa51f55 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; @@ -118,7 +118,7 @@ pub trait ButtonExt { #[cfg(any(not(feature = "v3_20"), feature = "dox"))] fn set_focus_on_click(&self, focus_on_click: bool); - fn set_image>(&self, image: &P); + fn set_image<'a, P: IsA + 'a, Q: Into>>(&self, image: Q); fn set_image_position(&self, position: PositionType); @@ -266,9 +266,11 @@ impl + IsA + glib::object::ObjectExt> Butto } } - fn set_image>(&self, image: &P) { + fn set_image<'a, P: IsA + 'a, Q: Into>>(&self, image: Q) { + let image = image.into(); + let image = image.to_glib_none(); unsafe { - ffi::gtk_button_set_image(self.to_glib_none().0, image.to_glib_none().0); + ffi::gtk_button_set_image(self.to_glib_none().0, image.0); } } diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index c9af000d75..d24eac91a3 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index e3d3cc815f..26c6f356be 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 5c06f3846c..0ab758b489 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 64c7bc1320..33de131d4f 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index cc533500cf..69517cdd47 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index 5225015c9e..c1fe8e6201 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index ffd50ed657..1cc857eab3 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index 05defa962b..e3946f14a0 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index f914b63dbb..4fcca355f0 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index 0b58fecc80..be1788ae2b 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index 51e4d56bfb..11bca8e6a9 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index 8bb8d9dbba..3545aa7fdb 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index f20ada3f7f..cc9e2bd91b 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 437d800c6a..6599acbe15 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index daa2dc6443..20f990b117 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 99b91d19dd..3e830aada8 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index 088f28331e..1adc9ca3ca 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index 95261e1894..e027695e86 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index d1dc687b58..15deda91d9 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 4ceb50ff65..5b7b2e2a90 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index a5bbd055ec..61e59063da 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 65cbbb25fd..5d3966d47e 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index dd86f187cb..00aed11cc2 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index dfb1af39f4..0260832473 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index 2d18589df0..46d14d88a9 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index 60234b25f2..5e7ea0886c 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index c072637797..e11508c0c0 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 8059bff7cc..7fff2ea939 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index 725a9367b9..1aafe6c9d9 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index ed7e68fe71..fbeac2e31a 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index dc0529ce10..6efb855453 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index a29112f4d6..b46bbc34a8 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 4492ece464..02374f5d91 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index 6de8df2b14..2a132b0d1f 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index 0afcbaf3d5..eefdf3c189 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index e8c5421f0f..bf8fe5859c 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 5995e9013b..5f0b5028ba 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 2d940ba60c..8a1d6f953d 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index 42ccf98f7a..d7e574a72a 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index 61b9ce35c3..c939f7c876 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index 0b1fe7df57..04231be98c 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index dfe4d059eb..0def2faea3 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use FileChooser; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index e2b6b4a186..8e61ce3318 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index 797da182ae..e7fcacfd54 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index 6e7bfcb68b..d25eb13a1e 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 742622e8d7..448148b30a 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; @@ -428,6 +428,8 @@ bitflags! { const UPPERCASE_SENTENCES = 64; const INHIBIT_OSK = 128; const VERTICAL_WRITING = 256; + const EMOJI = 512; + const NO_EMOJI = 1024; } } diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 5187766ac9..3cc7aaec47 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index de38194379..0cbe67c4a8 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index ac1e244e60..5c0c386114 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index eeb1879fb7..fb7a081b4c 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 10c2925599..3c4229b8dc 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 9c11c4804e..738e472344 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index 22e31f7a98..b4bc00881a 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index 3cd2785503..cd8441af87 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index 47f79c5811..b0b1606795 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 975fe02339..37fa660fa7 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 01d5c571fd..2abe7caf95 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index bdd4bffdd2..054f2198de 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index 4638a8ae62..dd12c01ef5 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index 928fd8462b..1b9b96a8f2 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index 8a93349044..ea54fff1d5 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 079c797865..812c19e8fa 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index b22537d99a..8f96e3a5be 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 1ec2698af0..2ef74494ac 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index f61d96e197..3071408b1d 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index 9e6dbd0707..b5da2d1d26 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index a32c754065..2c5de1b0f7 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index 405fb3c12e..a46bb36714 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index ee62e4b300..79fbc7b988 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index a4cdb31ccc..bf67387b7d 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 88c272dd2c..485d3d818a 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index d8354a510d..33cdf1c918 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index e4b3b9c7a4..655c51e6dc 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 9116f540d4..4e4119aa99 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index d4913c5c20..39fb057734 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 2937e7a3b0..548b843ad2 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index b02574f255..caf817a6d7 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index 14f48159c2..1c23828480 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/label.rs b/src/auto/label.rs index 5f71c15fa9..1fc3fa76ce 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index 08dc91c083..dc93ad757a 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index c22f1c6580..4ae3d7a3e4 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index d6a6350875..9b6e2a4b22 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index c867b4854b..6a4577fd24 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 624ba5edcb..88d30e3e7e 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index 50625fd9eb..bf40895e80 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index 0b0ede0b96..2f6e093bce 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index de5121c4ab..14b12676a0 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 7774c1fb49..4892cd9499 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 4b431d43e0..8dc00ab993 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index 64a12a8c37..ae289e271c 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index 520d79d178..e5167743e4 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 46bf2f899b..9e27e7f7ed 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 78e5843796..3bc06b8b5f 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 9403b0c076..1a444db066 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index a7d5696fb8..51300bb0d8 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 9bead846f2..5919e8f568 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index ddc30e2fd6..fa56b357d3 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Window; diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index a83d4073ef..700194693d 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index 347fc7bc72..f84e1c6e3c 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index 39c185fd70..0b56227947 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index 2dc059ae5b..6ee2d5f096 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index 46210d9bbc..e0a8592a2a 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index 46ae74b7c5..0c31980e57 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use EventController; diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index f946245fdd..9e8d17c982 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index 3f40abeeb1..efd9e01a83 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/paper_size.rs b/src/auto/paper_size.rs index fb90883786..bc88134b18 100644 --- a/src/auto/paper_size.rs +++ b/src/auto/paper_size.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index cd08634d52..c57df67738 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; @@ -86,6 +86,9 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_show_recent(&self) -> bool; + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn get_show_starred_location(&self) -> bool; + #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_show_trash(&self) -> bool; @@ -123,6 +126,9 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_18", feature = "dox"))] fn set_show_recent(&self, show_recent: bool); + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn set_show_starred_location(&self, show_starred_location: bool); + #[cfg(any(feature = "v3_18", feature = "dox"))] fn set_show_trash(&self, show_trash: bool); @@ -194,6 +200,9 @@ pub trait PlacesSidebarExt { #[cfg(any(feature = "v3_20", feature = "dox"))] fn connect_show_other_locations_with_flags(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn connect_show_starred_location(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_20", feature = "dox"))] fn connect_unmount(&self, f: F) -> SignalHandlerId; @@ -216,6 +225,9 @@ pub trait PlacesSidebarExt { fn connect_property_show_recent_notify(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn connect_property_show_starred_location_notify(&self, f: F) -> SignalHandlerId; + fn connect_property_show_trash_notify(&self, f: F) -> SignalHandlerId; } @@ -289,6 +301,13 @@ impl + IsA> PlacesSidebarExt for O { } } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn get_show_starred_location(&self) -> bool { + unsafe { + from_glib(ffi::gtk_places_sidebar_get_show_starred_location(self.to_glib_none().0)) + } + } + #[cfg(any(feature = "v3_18", feature = "dox"))] fn get_show_trash(&self) -> bool { unsafe { @@ -375,6 +394,13 @@ impl + IsA> PlacesSidebarExt for O { } } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn set_show_starred_location(&self, show_starred_location: bool) { + unsafe { + ffi::gtk_places_sidebar_set_show_starred_location(self.to_glib_none().0, show_starred_location.to_glib()); + } + } + #[cfg(any(feature = "v3_18", feature = "dox"))] fn set_show_trash(&self, show_trash: bool) { unsafe { @@ -592,6 +618,15 @@ impl + IsA> PlacesSidebarExt for O { } } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn connect_show_starred_location(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "show-starred-location", + transmute(show_starred_location_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + #[cfg(any(feature = "v3_20", feature = "dox"))] fn connect_unmount(&self, f: F) -> SignalHandlerId { unsafe { @@ -674,6 +709,15 @@ impl + IsA> PlacesSidebarExt for O { } } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] + fn connect_property_show_starred_location_notify(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "notify::show-starred-location", + transmute(notify_show_starred_location_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + fn connect_property_show_trash_notify(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -746,6 +790,14 @@ where P: IsA { f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), from_glib(open_flags)) } +#[cfg(any(feature = "v3_22_26", feature = "dox"))] +unsafe extern "C" fn show_starred_location_trampoline

(this: *mut ffi::GtkPlacesSidebar, object: ffi::GtkPlacesOpenFlags, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P, PlacesOpenFlags) + 'static) = transmute(f); + f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked(), from_glib(object)) +} + #[cfg(any(feature = "v3_20", feature = "dox"))] unsafe extern "C" fn unmount_trampoline

(this: *mut ffi::GtkPlacesSidebar, mount_operation: *mut gio_ffi::GMountOperation, f: glib_ffi::gpointer) where P: IsA { @@ -818,6 +870,14 @@ where P: IsA { f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked()) } +#[cfg(any(feature = "v3_22_26", feature = "dox"))] +unsafe extern "C" fn notify_show_starred_location_trampoline

(this: *mut ffi::GtkPlacesSidebar, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&PlacesSidebar::from_glib_borrow(this).downcast_unchecked()) +} + unsafe extern "C" fn notify_show_trash_trampoline

(this: *mut ffi::GtkPlacesSidebar, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); diff --git a/src/auto/plug.rs b/src/auto/plug.rs index a7e274768d..533794b5c1 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 30be9dbd1f..62b373fb01 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; @@ -128,6 +128,7 @@ pub trait PopoverExt { #[cfg(any(feature = "v3_12", feature = "dox"))] fn connect_property_relative_to_notify(&self, f: F) -> SignalHandlerId; + #[cfg_attr(feature = "v3_22", deprecated)] #[cfg(any(feature = "v3_16", feature = "dox"))] fn connect_property_transitions_enabled_notify(&self, f: F) -> SignalHandlerId; } diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 992bccc79e..55907aa5c1 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 251628171c..67cca52f8f 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index 351a77b034..bc614e905b 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 1cfeb1aab0..73d10da614 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index 96ecfb1e0e..df1198e4d3 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index ed8f25921a..e8a7067849 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 009171023e..6fac7964f0 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index c2113aa8a6..c53fbab7fc 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index a2b022fbae..931d4cb44e 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index 82e390a3fd..2f13ebb121 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index c230b9299b..1b6b83d70f 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index 3521606f2d..c0cc21494c 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 2a4bb0c28a..76c498bdcf 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index d782897e40..ea01658786 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index ab6e390e04..b2d28e3251 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index d6bf8e7ca8..994b6526ea 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index e12b3cf0f0..7d6f86a089 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index a48963ff15..07d22cde77 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 0b38a75439..674efd1357 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index ff4912ef99..0b62930b13 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index b0b73c8398..fc3fd27f6d 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index a1a2896045..ae3747c808 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index d0e4def773..8f3f2ef911 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index a131b20814..c316d8c4f2 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index 8e4df93397..d61d08cd55 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 68588932b9..363da74e30 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index cd44b50a94..fe9a907844 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index 157b55bbad..e488d6acd0 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 4b4e5916b9..02bdb05892 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use CornerType; diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index c862510e38..e00093a35b 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index abcf57e810..7a0cfaeece 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/socket.rs b/src/auto/socket.rs index 26acad9929..d5c7354737 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index 6c36036c15..c85dca0752 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index 27574eed3f..edf83c870c 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index fe5ea99dc5..e40c8d7417 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index b644564559..3be8367fba 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index 52599f996e..c6c6c85af3 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index b277d9dd67..dd2a5eea03 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ImageType; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 03a1eb3257..4649408a16 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 733b6d712b..6441289407 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Border; diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index bc5d87365e..c33edfb886 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 82439b8ddb..483eac14f8 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index b73f10deea..fb8829ab58 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index 0a223f846a..f81d81a88f 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 097901d982..184d23e079 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 086d061e81..2bf28bd0ed 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index 80653d0a19..ac94810c13 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index ce35ebddc9..e3ba7c624f 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index c41b18e5fb..70a94cc04e 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 17f97da52b..52fd87a74d 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index 495a838632..ce8a404ca5 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 8862db45cd..2141bcf4d2 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index f297fd4d9a..66f01d99ca 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; @@ -260,6 +260,10 @@ pub trait TextViewExt { fn emit_insert_at_cursor(&self, string: &str); + fn connect_insert_emoji(&self, f: F) -> SignalHandlerId; + + fn emit_insert_emoji(&self); + fn connect_move_cursor(&self, f: F) -> SignalHandlerId; fn emit_move_cursor(&self, step: MovementStep, count: i32, extend_selection: bool); @@ -909,6 +913,18 @@ impl + IsA + glib::object::ObjectExt> Tex let _ = self.emit("insert-at-cursor", &[&string]).unwrap(); } + fn connect_insert_emoji(&self, f: F) -> SignalHandlerId { + unsafe { + let f: Box_> = Box_::new(Box_::new(f)); + connect(self.to_glib_none().0, "insert-emoji", + transmute(insert_emoji_trampoline:: as usize), Box_::into_raw(f) as *mut _) + } + } + + fn emit_insert_emoji(&self) { + let _ = self.emit("insert-emoji", &[]).unwrap(); + } + fn connect_move_cursor(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -1230,6 +1246,13 @@ where P: IsA { f(&TextView::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(string)) } +unsafe extern "C" fn insert_emoji_trampoline

(this: *mut ffi::GtkTextView, f: glib_ffi::gpointer) +where P: IsA { + callback_guard!(); + let f: &&(Fn(&P) + 'static) = transmute(f); + f(&TextView::from_glib_borrow(this).downcast_unchecked()) +} + unsafe extern "C" fn move_cursor_trampoline

(this: *mut ffi::GtkTextView, step: ffi::GtkMovementStep, count: libc::c_int, extend_selection: glib_ffi::gboolean, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 7e943ecad7..7677ea69e4 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index c42914ecc2..e34aab4ab9 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 123815eeca..1e0fad0a25 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 362971311a..18128b87f2 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Bin; @@ -89,7 +89,7 @@ pub trait ToolItemExt { fn set_is_important(&self, is_important: bool); - fn set_proxy_menu_item>(&self, menu_item_id: &str, menu_item: &P); + fn set_proxy_menu_item<'a, P: IsA + 'a, Q: Into>>(&self, menu_item_id: &str, menu_item: Q); fn set_use_drag_window(&self, use_drag_window: bool); @@ -231,9 +231,11 @@ impl + IsA> ToolItemExt for O { } } - fn set_proxy_menu_item>(&self, menu_item_id: &str, menu_item: &P) { + fn set_proxy_menu_item<'a, P: IsA + 'a, Q: Into>>(&self, menu_item_id: &str, menu_item: Q) { + let menu_item = menu_item.into(); + let menu_item = menu_item.to_glib_none(); unsafe { - ffi::gtk_tool_item_set_proxy_menu_item(self.to_glib_none().0, menu_item_id.to_glib_none().0, menu_item.to_glib_none().0); + ffi::gtk_tool_item_set_proxy_menu_item(self.to_glib_none().0, menu_item_id.to_glib_none().0, menu_item.0); } } diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index 60e801926e..a918435e69 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 213d0ce444..32417d1246 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 277d033694..44fb364de6 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 1dbc764eb8..6e30a0a2e3 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index 4d37659ecf..dcd4647a3d 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index a4c780fdbf..16025605e2 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index 75c4e85fda..e3d1b9fd64 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 7a93d059f4..2edea091c0 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 91a257b0bc..630e1f763d 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index af51b18fec..ce7d6d99ab 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index b7543a531a..77b59831b8 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index 8fd0ce819e..aeeb05a187 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index 30dea9c541..a90094b23e 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 4a51cf7fad..6a0c1f865a 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index b039f9c094..b53dde8813 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 (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index f9a9f80359..da3445f42c 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 251ca5c8e2..04dfd81727 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index fb91017341..257a304425 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AccelFlags; diff --git a/src/auto/window.rs b/src/auto/window.rs index a69c815452..89c6193e8a 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index a22d3f1dfb..ef476f4220 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,4 @@ -// This file was generated by gir (9261d77) from gir-files (469db10) +// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) // DO NOT EDIT use Widget; From 563550a80e6d0606d5b3705dcb776f4399057217 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sat, 3 Feb 2018 17:59:18 +0300 Subject: [PATCH 021/210] Added i32 to ResponseType and IconSize conversion --- src/enums.rs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/enums.rs b/src/enums.rs index 7a01438868..cac86468aa 100644 --- a/src/enums.rs +++ b/src/enums.rs @@ -1,4 +1,5 @@ -use glib::translate::ToGlib; +use ffi; +use glib::translate::{from_glib, ToGlib}; impl Into for ::IconSize { fn into(self) -> i32 { @@ -7,9 +8,23 @@ impl Into for ::IconSize { } } +impl From for ::IconSize { + fn from(val: i32) -> Self { + skip_assert_initialized!(); + from_glib(val as ffi::GtkIconSize) + } +} + impl Into for ::ResponseType { fn into(self) -> i32 { skip_assert_initialized!(); self.to_glib() as i32 } } + +impl From for ::ResponseType { + fn from(val: i32) -> Self { + skip_assert_initialized!(); + from_glib(val as ffi::GtkResponseType) + } +} From 4c0c0f80e1f3dd15fa44abd7c59206c47e431d09 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sat, 3 Feb 2018 21:02:38 +0300 Subject: [PATCH 022/210] Add more manual version --- Cargo.toml | 2 ++ Gir.toml | 15 ++++++++++++++- src/auto/flags.rs | 2 ++ src/auto/text_view.rs | 5 +++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 58ad77ea39..9b105429f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,8 @@ v3_20 = ["v3_18", "gtk-sys/v3_20", "gdk/v3_20"] v3_18 = ["v3_16", "gtk-sys/v3_18", "gdk/v3_18"] purge-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/purge-lgpl-docs"] v3_22 = ["v3_20", "gtk-sys/v3_22", "gdk/v3_22"] +v3_22_20 = ["v3_22", "gtk-sys/v3_22_26", "gdk/v3_22"] +v3_22_26 = ["v3_22_20", "gtk-sys/v3_22_26", "gdk/v3_22"] v3_12 = ["v3_10", "gtk-sys/v3_12", "gdk/v3_12"] v3_8 = ["v3_6", "gtk-sys/v3_8", "gdk/v3_8"] embed-lgpl-docs = ["gtk-rs-lgpl-docs", "gdk/embed-lgpl-docs"] diff --git a/Gir.toml b/Gir.toml index e441a2a89b..308ef2adbd 100644 --- a/Gir.toml +++ b/Gir.toml @@ -101,7 +101,6 @@ generate = [ "Gtk.IMMulticontext", "Gtk.IMPreeditStyle", "Gtk.IMStatusStyle", - "Gtk.InputHints", "Gtk.InputPurpose", "Gtk.JunctionSides", "Gtk.Justification", @@ -904,6 +903,16 @@ status = "generate" name = "input-purpose" version = "3.6" +[[object]] +name = "Gtk.InputHints" +status = "generate" + [[object.member]] + name = "emoji" + version = "3.22.20" + [[object.member]] + name = "no_emoji" + version = "3.22.20" + [[object]] name = "Gtk.Label" status = "generate" @@ -1459,6 +1468,10 @@ status = "generate" [[object.signal]] name = "extend-selection" inhibit = true + [[object.signal]] + name = "insert-emoji" + #actually Since 3.22.27 + version = "3.22.26" [[object]] name = "Gtk.Toolbar" diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 448148b30a..91aebda1e7 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -428,7 +428,9 @@ bitflags! { const UPPERCASE_SENTENCES = 64; const INHIBIT_OSK = 128; const VERTICAL_WRITING = 256; + #[cfg(any(feature = "v3_22_20", feature = "dox"))] const EMOJI = 512; + #[cfg(any(feature = "v3_22_20", feature = "dox"))] const NO_EMOJI = 1024; } } diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index 66f01d99ca..e209f686a4 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -260,8 +260,10 @@ pub trait TextViewExt { fn emit_insert_at_cursor(&self, string: &str); + #[cfg(any(feature = "v3_22_26", feature = "dox"))] fn connect_insert_emoji(&self, f: F) -> SignalHandlerId; + #[cfg(any(feature = "v3_22_26", feature = "dox"))] fn emit_insert_emoji(&self); fn connect_move_cursor(&self, f: F) -> SignalHandlerId; @@ -913,6 +915,7 @@ impl + IsA + glib::object::ObjectExt> Tex let _ = self.emit("insert-at-cursor", &[&string]).unwrap(); } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] fn connect_insert_emoji(&self, f: F) -> SignalHandlerId { unsafe { let f: Box_> = Box_::new(Box_::new(f)); @@ -921,6 +924,7 @@ impl + IsA + glib::object::ObjectExt> Tex } } + #[cfg(any(feature = "v3_22_26", feature = "dox"))] fn emit_insert_emoji(&self) { let _ = self.emit("insert-emoji", &[]).unwrap(); } @@ -1246,6 +1250,7 @@ where P: IsA { f(&TextView::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(string)) } +#[cfg(any(feature = "v3_22_26", feature = "dox"))] unsafe extern "C" fn insert_emoji_trampoline

(this: *mut ffi::GtkTextView, f: glib_ffi::gpointer) where P: IsA { callback_guard!(); From a3bfe5643c82d43fc8d15dca8498f347f3ae4bbe Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Thu, 8 Feb 2018 19:18:44 +0300 Subject: [PATCH 023/210] Fix TargetList::new implementation --- src/target_list.rs | 10 ++-------- src/widget.rs | 22 ++-------------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/src/target_list.rs b/src/target_list.rs index 9ed343a2b4..bea0fa41c7 100644 --- a/src/target_list.rs +++ b/src/target_list.rs @@ -7,14 +7,8 @@ use {TargetEntry, TargetList}; impl TargetList { pub fn new(targets: &[TargetEntry]) -> Self { skip_assert_initialized!(); - let stashes: Vec<_> = targets - .iter() - .map(|e| e.to_glib_none()) - .collect(); - let mut t = Vec::with_capacity(stashes.len()); - for stash in &stashes { - t.push(stash.0); - } + let stashes: Vec<_> = targets.iter().map(|e| e.to_glib_none()).collect(); + let t: Vec<_> = stashes.iter().map(|stash| unsafe { *stash.0 }).collect(); let t_ptr: *mut ffi::GtkTargetEntry = if !t.is_empty() { t.as_ptr() as *mut _ } else { diff --git a/src/widget.rs b/src/widget.rs index 56727b79f5..60de1586f8 100644 --- a/src/widget.rs +++ b/src/widget.rs @@ -53,16 +53,7 @@ pub trait WidgetExtManual { impl + IsA> WidgetExtManual for O { fn drag_dest_set(&self, flags: DestDefaults, targets: &[TargetEntry], actions: DragAction) { let stashes: Vec<_> = targets.iter().map(|e| e.to_glib_none()).collect(); - let mut t = Vec::with_capacity(stashes.len()); - for stash in &stashes { - unsafe { - t.push(ffi::GtkTargetEntry { - target: (*stash.0).target, - flags: (*stash.0).flags, - info: (*stash.0).info, - }); - } - } + let t: Vec<_> = stashes.iter().map(|stash| unsafe { *stash.0 }).collect(); let t_ptr: *mut ffi::GtkTargetEntry = if !t.is_empty() { t.as_ptr() as *mut _ } else { @@ -77,16 +68,7 @@ impl + IsA> WidgetExtManual for O { fn drag_source_set(&self, start_button_mask: ModifierType, targets: &[TargetEntry], actions: DragAction) { let stashes: Vec<_> = targets.iter().map(|e| e.to_glib_none()).collect(); - let mut t = Vec::with_capacity(stashes.len()); - for stash in &stashes { - unsafe { - t.push(ffi::GtkTargetEntry { - target: (*stash.0).target, - flags: (*stash.0).flags, - info: (*stash.0).info, - }); - } - } + let t: Vec<_> = stashes.iter().map(|stash| unsafe { *stash.0 }).collect(); let t_ptr: *mut ffi::GtkTargetEntry = if !t.is_empty() { t.as_ptr() as *mut _ } else { From 783643aafb885883531b14c01e73d625fcccc5be Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sat, 10 Feb 2018 19:46:12 +0300 Subject: [PATCH 024/210] Remove gir-files from crate --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9b105429f4..457b2a2ffc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,9 @@ version = "0.3.0" keywords = ["gtk", "gtk-rs", "gnome", "GUI"] repository = "https://github.com/gtk-rs/gtk" build = "build.rs" +exclude = [ + "gir-files/*", +] [badges] appveyor = { repository = "GuillaumeGomez/gtk", service = "github" } From 45ecc81b75dda83c2de0fd1bcee4bcc60a84d0e5 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Tue, 13 Feb 2018 19:29:49 +0300 Subject: [PATCH 025/210] Regen --- Gir.toml | 1 - gir | 2 +- src/auto/about_dialog.rs | 3 ++- src/auto/accel_group.rs | 3 ++- src/auto/action_bar.rs | 3 ++- src/auto/actionable.rs | 3 ++- src/auto/adjustment.rs | 3 ++- src/auto/alignment.rs | 3 ++- src/auto/app_chooser_button.rs | 3 ++- src/auto/app_chooser_dialog.rs | 3 ++- src/auto/app_chooser_widget.rs | 3 ++- src/auto/application.rs | 3 ++- src/auto/application_window.rs | 3 ++- src/auto/arrow.rs | 3 ++- src/auto/aspect_frame.rs | 3 ++- src/auto/assistant.rs | 3 ++- src/auto/bin.rs | 3 ++- src/auto/box_.rs | 3 ++- src/auto/buildable.rs | 3 ++- src/auto/builder.rs | 3 ++- src/auto/button.rs | 3 ++- src/auto/button_box.rs | 3 ++- src/auto/calendar.rs | 3 ++- src/auto/cell_area.rs | 3 ++- src/auto/cell_area_box.rs | 3 ++- src/auto/cell_area_context.rs | 3 ++- src/auto/cell_editable.rs | 3 ++- src/auto/cell_layout.rs | 3 ++- src/auto/cell_renderer.rs | 3 ++- src/auto/cell_renderer_accel.rs | 3 ++- src/auto/cell_renderer_combo.rs | 3 ++- src/auto/cell_renderer_pixbuf.rs | 3 ++- src/auto/cell_renderer_progress.rs | 3 ++- src/auto/cell_renderer_spin.rs | 3 ++- src/auto/cell_renderer_spinner.rs | 3 ++- src/auto/cell_renderer_text.rs | 3 ++- src/auto/cell_renderer_toggle.rs | 3 ++- src/auto/cell_view.rs | 3 ++- src/auto/check_button.rs | 3 ++- src/auto/check_menu_item.rs | 3 ++- src/auto/clipboard.rs | 3 ++- src/auto/color_button.rs | 3 ++- src/auto/color_chooser.rs | 3 ++- src/auto/color_chooser_dialog.rs | 3 ++- src/auto/color_chooser_widget.rs | 3 ++- src/auto/combo_box.rs | 3 ++- src/auto/combo_box_text.rs | 3 ++- src/auto/container.rs | 3 ++- src/auto/css_provider.rs | 3 ++- src/auto/css_section.rs | 3 ++- src/auto/dialog.rs | 3 ++- src/auto/drawing_area.rs | 3 ++- src/auto/editable.rs | 3 ++- src/auto/entry.rs | 3 ++- src/auto/entry_completion.rs | 3 ++- src/auto/enums.rs | 16 ++++++++++------ src/auto/event_box.rs | 3 ++- src/auto/event_controller.rs | 3 ++- src/auto/expander.rs | 3 ++- src/auto/file_chooser.rs | 3 ++- src/auto/file_chooser_button.rs | 3 ++- src/auto/file_chooser_dialog.rs | 3 ++- src/auto/file_chooser_native.rs | 3 ++- src/auto/file_chooser_widget.rs | 3 ++- src/auto/file_filter.rs | 3 ++- src/auto/fixed.rs | 3 ++- src/auto/flags.rs | 12 ++++++++---- src/auto/flow_box.rs | 3 ++- src/auto/flow_box_child.rs | 3 ++- src/auto/font_button.rs | 3 ++- src/auto/font_chooser.rs | 3 ++- src/auto/font_chooser_dialog.rs | 3 ++- src/auto/font_chooser_widget.rs | 3 ++- src/auto/frame.rs | 3 ++- src/auto/functions.rs | 3 ++- src/auto/gesture.rs | 3 ++- src/auto/gesture_drag.rs | 3 ++- src/auto/gesture_long_press.rs | 3 ++- src/auto/gesture_multi_press.rs | 3 ++- src/auto/gesture_pan.rs | 3 ++- src/auto/gesture_rotate.rs | 3 ++- src/auto/gesture_single.rs | 3 ++- src/auto/gesture_swipe.rs | 3 ++- src/auto/gesture_zoom.rs | 3 ++- src/auto/gl_area.rs | 3 ++- src/auto/grid.rs | 3 ++- src/auto/header_bar.rs | 3 ++- src/auto/i_m_context.rs | 3 ++- src/auto/i_m_multicontext.rs | 3 ++- src/auto/icon_factory.rs | 3 ++- src/auto/icon_info.rs | 3 ++- src/auto/icon_set.rs | 3 ++- src/auto/icon_source.rs | 3 ++- src/auto/icon_theme.rs | 3 ++- src/auto/icon_view.rs | 3 ++- src/auto/image.rs | 3 ++- src/auto/image_menu_item.rs | 3 ++- src/auto/info_bar.rs | 3 ++- src/auto/invisible.rs | 3 ++- src/auto/label.rs | 3 ++- src/auto/layout.rs | 3 ++- src/auto/level_bar.rs | 3 ++- src/auto/link_button.rs | 3 ++- src/auto/list_box.rs | 3 ++- src/auto/list_box_row.rs | 3 ++- src/auto/list_store.rs | 3 ++- src/auto/lock_button.rs | 3 ++- src/auto/menu.rs | 3 ++- src/auto/menu_bar.rs | 3 ++- src/auto/menu_button.rs | 3 ++- src/auto/menu_item.rs | 3 ++- src/auto/menu_shell.rs | 3 ++- src/auto/menu_tool_button.rs | 3 ++- src/auto/message_dialog.rs | 3 ++- src/auto/misc.rs | 3 ++- src/auto/mod.rs | 3 ++- src/auto/model_button.rs | 3 ++- src/auto/mount_operation.rs | 3 ++- src/auto/native_dialog.rs | 3 ++- src/auto/notebook.rs | 3 ++- src/auto/offscreen_window.rs | 3 ++- src/auto/orientable.rs | 3 ++- src/auto/overlay.rs | 3 ++- src/auto/pad_controller.rs | 3 ++- src/auto/page_setup.rs | 3 ++- src/auto/paned.rs | 3 ++- src/auto/places_sidebar.rs | 3 ++- src/auto/plug.rs | 3 ++- src/auto/popover.rs | 3 ++- src/auto/popover_menu.rs | 3 ++- src/auto/print_context.rs | 3 ++- src/auto/print_operation.rs | 3 ++- src/auto/print_operation_preview.rs | 3 ++- src/auto/print_settings.rs | 3 ++- src/auto/progress_bar.rs | 3 ++- src/auto/radio_button.rs | 3 ++- src/auto/radio_menu_item.rs | 3 ++- src/auto/radio_tool_button.rs | 3 ++- src/auto/range.rs | 3 ++- src/auto/recent_chooser.rs | 3 ++- src/auto/recent_chooser_dialog.rs | 3 ++- src/auto/recent_chooser_widget.rs | 3 ++- src/auto/recent_filter.rs | 3 ++- src/auto/recent_info.rs | 3 ++- src/auto/recent_manager.rs | 3 ++- src/auto/revealer.rs | 3 ++- src/auto/scale.rs | 3 ++- src/auto/scale_button.rs | 3 ++- src/auto/scrollable.rs | 3 ++- src/auto/scrollbar.rs | 3 ++- src/auto/scrolled_window.rs | 3 ++- src/auto/search_bar.rs | 3 ++- src/auto/search_entry.rs | 3 ++- src/auto/selection_data.rs | 3 ++- src/auto/separator.rs | 3 ++- src/auto/separator_menu_item.rs | 3 ++- src/auto/separator_tool_item.rs | 3 ++- src/auto/settings.rs | 7 ++++--- src/auto/shortcuts_window.rs | 3 ++- src/auto/size_group.rs | 3 ++- src/auto/socket.rs | 3 ++- src/auto/spin_button.rs | 3 ++- src/auto/spinner.rs | 3 ++- src/auto/stack.rs | 3 ++- src/auto/stack_sidebar.rs | 3 ++- src/auto/stack_switcher.rs | 3 ++- src/auto/status_icon.rs | 3 ++- src/auto/statusbar.rs | 3 ++- src/auto/style_context.rs | 3 ++- src/auto/style_properties.rs | 3 ++- src/auto/style_provider.rs | 3 ++- src/auto/switch.rs | 3 ++- src/auto/symbolic_color.rs | 3 ++- src/auto/target_list.rs | 3 ++- src/auto/text_attributes.rs | 3 ++- src/auto/text_buffer.rs | 3 ++- src/auto/text_child_anchor.rs | 3 ++- src/auto/text_iter.rs | 3 ++- src/auto/text_mark.rs | 3 ++- src/auto/text_tag.rs | 3 ++- src/auto/text_tag_table.rs | 3 ++- src/auto/text_view.rs | 3 ++- src/auto/toggle_button.rs | 3 ++- src/auto/toggle_tool_button.rs | 3 ++- src/auto/tool_button.rs | 3 ++- src/auto/tool_item.rs | 3 ++- src/auto/tool_item_group.rs | 3 ++- src/auto/tool_palette.rs | 3 ++- src/auto/tool_shell.rs | 3 ++- src/auto/toolbar.rs | 3 ++- src/auto/tooltip.rs | 3 ++- src/auto/tree_iter.rs | 3 ++- src/auto/tree_model.rs | 3 ++- src/auto/tree_model_filter.rs | 3 ++- src/auto/tree_path.rs | 3 ++- src/auto/tree_row_reference.rs | 3 ++- src/auto/tree_selection.rs | 3 ++- src/auto/tree_sortable.rs | 3 ++- src/auto/tree_store.rs | 3 ++- src/auto/tree_view.rs | 3 ++- src/auto/tree_view_column.rs | 3 ++- src/auto/viewport.rs | 3 ++- src/auto/volume_button.rs | 3 ++- src/auto/widget.rs | 3 ++- src/auto/window.rs | 3 ++- src/auto/window_group.rs | 3 ++- 206 files changed, 425 insertions(+), 216 deletions(-) diff --git a/Gir.toml b/Gir.toml index 308ef2adbd..216eee142a 100644 --- a/Gir.toml +++ b/Gir.toml @@ -236,7 +236,6 @@ ignore = [ manual = [ "Gdk.AnchorHints", "Gdk.Atom", - "Gdk.Atom_", "Gdk.Device", "Gdk.Display", "Gdk.DragAction", diff --git a/gir b/gir index 0f1d1c1784..ea993ed556 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 0f1d1c178407c918d5cd2fbd5cf67126324cd4ff +Subproject commit ea993ed556a1743d16734963df923965e471db5a diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 814758f414..91e154a63b 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index ce7eaddf3c..94f953ae6a 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 8569dd8441..0faf28beca 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 234b2d01b7..8e01743056 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index 45c0a5d7e6..ca7e402350 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 9e8cdc7460..5a4a751c4b 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index ac7ec6ab27..0325b0ce95 100644 --- a/src/auto/app_chooser_button.rs +++ b/src/auto/app_chooser_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index 4539b44c9d..a01ae640da 100644 --- a/src/auto/app_chooser_dialog.rs +++ b/src/auto/app_chooser_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AppChooser; diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index 0479d69360..f0ceb1d33b 100644 --- a/src/auto/app_chooser_widget.rs +++ b/src/auto/app_chooser_widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AppChooser; diff --git a/src/auto/application.rs b/src/auto/application.rs index d498e6020e..c88653d5fb 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ApplicationInhibitFlags; diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index b25a9ea85f..116eb9362a 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Application; diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index 6a78d27e16..e09b3f18f6 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ArrowType; diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 9322edf812..3637a4a6ed 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 8f4a81779a..8d2109526f 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AssistantPageType; diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 81bbb8382a..801c4f7cf7 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index a8b6247733..37cb8dc188 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 3cc4a7efb2..42556c99cb 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index 129707e580..e2c6fce727 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/button.rs b/src/auto/button.rs index 702aa51f55..5c37955d09 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/button_box.rs b/src/auto/button_box.rs index d24eac91a3..64223a09b8 100644 --- a/src/auto/button_box.rs +++ b/src/auto/button_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/calendar.rs b/src/auto/calendar.rs index 26c6f356be..496718c045 100644 --- a/src/auto/calendar.rs +++ b/src/auto/calendar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area.rs b/src/auto/cell_area.rs index 0ab758b489..77523a2381 100644 --- a/src/auto/cell_area.rs +++ b/src/auto/cell_area.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_box.rs b/src/auto/cell_area_box.rs index 33de131d4f..b9d3cfa236 100644 --- a/src/auto/cell_area_box.rs +++ b/src/auto/cell_area_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_area_context.rs b/src/auto/cell_area_context.rs index 69517cdd47..06755f561f 100644 --- a/src/auto/cell_area_context.rs +++ b/src/auto/cell_area_context.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_editable.rs b/src/auto/cell_editable.rs index c1fe8e6201..755f0fd432 100644 --- a/src/auto/cell_editable.rs +++ b/src/auto/cell_editable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/cell_layout.rs b/src/auto/cell_layout.rs index 1cc857eab3..aa9ffca35e 100644 --- a/src/auto/cell_layout.rs +++ b/src/auto/cell_layout.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellArea; diff --git a/src/auto/cell_renderer.rs b/src/auto/cell_renderer.rs index e3946f14a0..f5a2f8e2d9 100644 --- a/src/auto/cell_renderer.rs +++ b/src/auto/cell_renderer.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellEditable; diff --git a/src/auto/cell_renderer_accel.rs b/src/auto/cell_renderer_accel.rs index 4fcca355f0..66012a83fb 100644 --- a/src/auto/cell_renderer_accel.rs +++ b/src/auto/cell_renderer_accel.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_combo.rs b/src/auto/cell_renderer_combo.rs index be1788ae2b..cf9e96971d 100644 --- a/src/auto/cell_renderer_combo.rs +++ b/src/auto/cell_renderer_combo.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_pixbuf.rs b/src/auto/cell_renderer_pixbuf.rs index 11bca8e6a9..379d834980 100644 --- a/src/auto/cell_renderer_pixbuf.rs +++ b/src/auto/cell_renderer_pixbuf.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_progress.rs b/src/auto/cell_renderer_progress.rs index 3545aa7fdb..83745e4950 100644 --- a/src/auto/cell_renderer_progress.rs +++ b/src/auto/cell_renderer_progress.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_spin.rs b/src/auto/cell_renderer_spin.rs index cc9e2bd91b..b7a9b840f6 100644 --- a/src/auto/cell_renderer_spin.rs +++ b/src/auto/cell_renderer_spin.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/cell_renderer_spinner.rs b/src/auto/cell_renderer_spinner.rs index 6599acbe15..d5a32ce0fb 100644 --- a/src/auto/cell_renderer_spinner.rs +++ b/src/auto/cell_renderer_spinner.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_text.rs b/src/auto/cell_renderer_text.rs index 20f990b117..89dd533c77 100644 --- a/src/auto/cell_renderer_text.rs +++ b/src/auto/cell_renderer_text.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_renderer_toggle.rs b/src/auto/cell_renderer_toggle.rs index 3e830aada8..93539cea32 100644 --- a/src/auto/cell_renderer_toggle.rs +++ b/src/auto/cell_renderer_toggle.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CellRenderer; diff --git a/src/auto/cell_view.rs b/src/auto/cell_view.rs index 1adc9ca3ca..4294de13bf 100644 --- a/src/auto/cell_view.rs +++ b/src/auto/cell_view.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/check_button.rs b/src/auto/check_button.rs index e027695e86..e141200653 100644 --- a/src/auto/check_button.rs +++ b/src/auto/check_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/check_menu_item.rs b/src/auto/check_menu_item.rs index 15deda91d9..4f0b229141 100644 --- a/src/auto/check_menu_item.rs +++ b/src/auto/check_menu_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/clipboard.rs b/src/auto/clipboard.rs index 5b7b2e2a90..d262fab923 100644 --- a/src/auto/clipboard.rs +++ b/src/auto/clipboard.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use SelectionData; diff --git a/src/auto/color_button.rs b/src/auto/color_button.rs index 61e59063da..04899cd2be 100644 --- a/src/auto/color_button.rs +++ b/src/auto/color_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/color_chooser.rs b/src/auto/color_chooser.rs index 5d3966d47e..afc37cc74a 100644 --- a/src/auto/color_chooser.rs +++ b/src/auto/color_chooser.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/color_chooser_dialog.rs b/src/auto/color_chooser_dialog.rs index 00aed11cc2..843d516348 100644 --- a/src/auto/color_chooser_dialog.rs +++ b/src/auto/color_chooser_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/color_chooser_widget.rs b/src/auto/color_chooser_widget.rs index 0260832473..c69b39ff3b 100644 --- a/src/auto/color_chooser_widget.rs +++ b/src/auto/color_chooser_widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/combo_box.rs b/src/auto/combo_box.rs index 46d14d88a9..c9c7b8fb3b 100644 --- a/src/auto/combo_box.rs +++ b/src/auto/combo_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/combo_box_text.rs b/src/auto/combo_box_text.rs index 5e7ea0886c..0361d612eb 100644 --- a/src/auto/combo_box_text.rs +++ b/src/auto/combo_box_text.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/container.rs b/src/auto/container.rs index e11508c0c0..17b716bf61 100644 --- a/src/auto/container.rs +++ b/src/auto/container.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/css_provider.rs b/src/auto/css_provider.rs index 7fff2ea939..316b0c7495 100644 --- a/src/auto/css_provider.rs +++ b/src/auto/css_provider.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CssSection; diff --git a/src/auto/css_section.rs b/src/auto/css_section.rs index 1aafe6c9d9..65905853fa 100644 --- a/src/auto/css_section.rs +++ b/src/auto/css_section.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CssSectionType; diff --git a/src/auto/dialog.rs b/src/auto/dialog.rs index fbeac2e31a..27946c4eff 100644 --- a/src/auto/dialog.rs +++ b/src/auto/dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/drawing_area.rs b/src/auto/drawing_area.rs index 6efb855453..d1b0f30923 100644 --- a/src/auto/drawing_area.rs +++ b/src/auto/drawing_area.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/editable.rs b/src/auto/editable.rs index b46bbc34a8..fd641f5bc8 100644 --- a/src/auto/editable.rs +++ b/src/auto/editable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/entry.rs b/src/auto/entry.rs index 02374f5d91..eabbf02514 100644 --- a/src/auto/entry.rs +++ b/src/auto/entry.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/entry_completion.rs b/src/auto/entry_completion.rs index 2a132b0d1f..8db551219a 100644 --- a/src/auto/entry_completion.rs +++ b/src/auto/entry_completion.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/enums.rs b/src/auto/enums.rs index eefdf3c189..cf39503318 100644 --- a/src/auto/enums.rs +++ b/src/auto/enums.rs @@ -1,14 +1,18 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; -use glib_ffi; -use glib::error::ErrorDomain; -use glib::Type; use glib::StaticType; -use glib::value::{Value, SetValue, FromValue, FromValueOptional}; -use gobject_ffi; +use glib::Type; +use glib::error::ErrorDomain; use glib::translate::*; +use glib::value::FromValue; +use glib::value::FromValueOptional; +use glib::value::SetValue; +use glib::value::Value; +use glib_ffi; +use gobject_ffi; #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] pub enum Align { diff --git a/src/auto/event_box.rs b/src/auto/event_box.rs index bf8fe5859c..2c9444950f 100644 --- a/src/auto/event_box.rs +++ b/src/auto/event_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/event_controller.rs b/src/auto/event_controller.rs index 5f0b5028ba..b74aaaad48 100644 --- a/src/auto/event_controller.rs +++ b/src/auto/event_controller.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_14", feature = "dox"))] diff --git a/src/auto/expander.rs b/src/auto/expander.rs index 8a1d6f953d..e5560dc758 100644 --- a/src/auto/expander.rs +++ b/src/auto/expander.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser.rs b/src/auto/file_chooser.rs index d7e574a72a..190b46640d 100644 --- a/src/auto/file_chooser.rs +++ b/src/auto/file_chooser.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/file_chooser_button.rs b/src/auto/file_chooser_button.rs index c939f7c876..54b0c02c63 100644 --- a/src/auto/file_chooser_button.rs +++ b/src/auto/file_chooser_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/file_chooser_dialog.rs b/src/auto/file_chooser_dialog.rs index 04231be98c..33e4902ba2 100644 --- a/src/auto/file_chooser_dialog.rs +++ b/src/auto/file_chooser_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/file_chooser_native.rs b/src/auto/file_chooser_native.rs index 0def2faea3..34c5febc32 100644 --- a/src/auto/file_chooser_native.rs +++ b/src/auto/file_chooser_native.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use FileChooser; diff --git a/src/auto/file_chooser_widget.rs b/src/auto/file_chooser_widget.rs index 8e61ce3318..b7510d1528 100644 --- a/src/auto/file_chooser_widget.rs +++ b/src/auto/file_chooser_widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/file_filter.rs b/src/auto/file_filter.rs index e7fcacfd54..cc0c6d8f3f 100644 --- a/src/auto/file_filter.rs +++ b/src/auto/file_filter.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/fixed.rs b/src/auto/fixed.rs index d25eb13a1e..77fa386a8b 100644 --- a/src/auto/fixed.rs +++ b/src/auto/fixed.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/flags.rs b/src/auto/flags.rs index 91aebda1e7..c5aab127b8 100644 --- a/src/auto/flags.rs +++ b/src/auto/flags.rs @@ -1,12 +1,16 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; -use glib::Type; use glib::StaticType; -use glib::value::{Value, SetValue, FromValue, FromValueOptional}; -use gobject_ffi; +use glib::Type; use glib::translate::*; +use glib::value::FromValue; +use glib::value::FromValueOptional; +use glib::value::SetValue; +use glib::value::Value; +use gobject_ffi; bitflags! { pub struct AccelFlags: u32 { diff --git a/src/auto/flow_box.rs b/src/auto/flow_box.rs index 3cc7aaec47..b29137c359 100644 --- a/src/auto/flow_box.rs +++ b/src/auto/flow_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_12", feature = "dox"))] diff --git a/src/auto/flow_box_child.rs b/src/auto/flow_box_child.rs index 0cbe67c4a8..c4e5e939a0 100644 --- a/src/auto/flow_box_child.rs +++ b/src/auto/flow_box_child.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/font_button.rs b/src/auto/font_button.rs index 5c0c386114..ddb4b1fcbd 100644 --- a/src/auto/font_button.rs +++ b/src/auto/font_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/font_chooser.rs b/src/auto/font_chooser.rs index fb7a081b4c..7b6baac459 100644 --- a/src/auto/font_chooser.rs +++ b/src/auto/font_chooser.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/font_chooser_dialog.rs b/src/auto/font_chooser_dialog.rs index 3c4229b8dc..322503e8a8 100644 --- a/src/auto/font_chooser_dialog.rs +++ b/src/auto/font_chooser_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/font_chooser_widget.rs b/src/auto/font_chooser_widget.rs index 738e472344..bbe5dab408 100644 --- a/src/auto/font_chooser_widget.rs +++ b/src/auto/font_chooser_widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/frame.rs b/src/auto/frame.rs index b4bc00881a..ec66a30196 100644 --- a/src/auto/frame.rs +++ b/src/auto/frame.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/functions.rs b/src/auto/functions.rs index cd8441af87..ffd4cc6671 100644 --- a/src/auto/functions.rs +++ b/src/auto/functions.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/gesture.rs b/src/auto/gesture.rs index b0b1606795..7d43f8a5e2 100644 --- a/src/auto/gesture.rs +++ b/src/auto/gesture.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_drag.rs b/src/auto/gesture_drag.rs index 37fa660fa7..a44f0c3b51 100644 --- a/src/auto/gesture_drag.rs +++ b/src/auto/gesture_drag.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_long_press.rs b/src/auto/gesture_long_press.rs index 2abe7caf95..fc709af10e 100644 --- a/src/auto/gesture_long_press.rs +++ b/src/auto/gesture_long_press.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_multi_press.rs b/src/auto/gesture_multi_press.rs index 054f2198de..e08bbead60 100644 --- a/src/auto/gesture_multi_press.rs +++ b/src/auto/gesture_multi_press.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_pan.rs b/src/auto/gesture_pan.rs index dd12c01ef5..74c93814cb 100644 --- a/src/auto/gesture_pan.rs +++ b/src/auto/gesture_pan.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_rotate.rs b/src/auto/gesture_rotate.rs index 1b9b96a8f2..b4639c9496 100644 --- a/src/auto/gesture_rotate.rs +++ b/src/auto/gesture_rotate.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_single.rs b/src/auto/gesture_single.rs index ea54fff1d5..028ee6f6e7 100644 --- a/src/auto/gesture_single.rs +++ b/src/auto/gesture_single.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_swipe.rs b/src/auto/gesture_swipe.rs index 812c19e8fa..c05a76e544 100644 --- a/src/auto/gesture_swipe.rs +++ b/src/auto/gesture_swipe.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gesture_zoom.rs b/src/auto/gesture_zoom.rs index 8f96e3a5be..dd112163c3 100644 --- a/src/auto/gesture_zoom.rs +++ b/src/auto/gesture_zoom.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/gl_area.rs b/src/auto/gl_area.rs index 2ef74494ac..34f463d2e5 100644 --- a/src/auto/gl_area.rs +++ b/src/auto/gl_area.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/grid.rs b/src/auto/grid.rs index 3071408b1d..1af3ba212c 100644 --- a/src/auto/grid.rs +++ b/src/auto/grid.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/header_bar.rs b/src/auto/header_bar.rs index b5da2d1d26..e809121130 100644 --- a/src/auto/header_bar.rs +++ b/src/auto/header_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/i_m_context.rs b/src/auto/i_m_context.rs index 2c5de1b0f7..8f4a701c02 100644 --- a/src/auto/i_m_context.rs +++ b/src/auto/i_m_context.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_6", feature = "dox"))] diff --git a/src/auto/i_m_multicontext.rs b/src/auto/i_m_multicontext.rs index a46bb36714..8f365c5935 100644 --- a/src/auto/i_m_multicontext.rs +++ b/src/auto/i_m_multicontext.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use IMContext; diff --git a/src/auto/icon_factory.rs b/src/auto/icon_factory.rs index 79fbc7b988..6f8c0c8409 100644 --- a/src/auto/icon_factory.rs +++ b/src/auto/icon_factory.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/icon_info.rs b/src/auto/icon_info.rs index bf67387b7d..079f8f52f7 100644 --- a/src/auto/icon_info.rs +++ b/src/auto/icon_info.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/icon_set.rs b/src/auto/icon_set.rs index 485d3d818a..be088bb6ac 100644 --- a/src/auto/icon_set.rs +++ b/src/auto/icon_set.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use IconSource; diff --git a/src/auto/icon_source.rs b/src/auto/icon_source.rs index 33cdf1c918..8d69b75bec 100644 --- a/src/auto/icon_source.rs +++ b/src/auto/icon_source.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use StateType; diff --git a/src/auto/icon_theme.rs b/src/auto/icon_theme.rs index 655c51e6dc..413e54cc88 100644 --- a/src/auto/icon_theme.rs +++ b/src/auto/icon_theme.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/icon_view.rs b/src/auto/icon_view.rs index 4e4119aa99..bbe734b9c4 100644 --- a/src/auto/icon_view.rs +++ b/src/auto/icon_view.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/image.rs b/src/auto/image.rs index 39fb057734..f8de0763a9 100644 --- a/src/auto/image.rs +++ b/src/auto/image.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/image_menu_item.rs b/src/auto/image_menu_item.rs index 548b843ad2..b3cfed623f 100644 --- a/src/auto/image_menu_item.rs +++ b/src/auto/image_menu_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/info_bar.rs b/src/auto/info_bar.rs index caf817a6d7..23eca486d4 100644 --- a/src/auto/info_bar.rs +++ b/src/auto/info_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/invisible.rs b/src/auto/invisible.rs index 1c23828480..fcbe377806 100644 --- a/src/auto/invisible.rs +++ b/src/auto/invisible.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/label.rs b/src/auto/label.rs index 1fc3fa76ce..7a14e9bf8a 100644 --- a/src/auto/label.rs +++ b/src/auto/label.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/layout.rs b/src/auto/layout.rs index dc93ad757a..855138d8af 100644 --- a/src/auto/layout.rs +++ b/src/auto/layout.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/level_bar.rs b/src/auto/level_bar.rs index 4ae3d7a3e4..45e98963cd 100644 --- a/src/auto/level_bar.rs +++ b/src/auto/level_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/link_button.rs b/src/auto/link_button.rs index 9b6e2a4b22..9c56bde4a4 100644 --- a/src/auto/link_button.rs +++ b/src/auto/link_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/list_box.rs b/src/auto/list_box.rs index 6a4577fd24..4a61cf46d9 100644 --- a/src/auto/list_box.rs +++ b/src/auto/list_box.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] diff --git a/src/auto/list_box_row.rs b/src/auto/list_box_row.rs index 88d30e3e7e..ab2ba56a6c 100644 --- a/src/auto/list_box_row.rs +++ b/src/auto/list_box_row.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/list_store.rs b/src/auto/list_store.rs index bf40895e80..01ee2284ec 100644 --- a/src/auto/list_store.rs +++ b/src/auto/list_store.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/lock_button.rs b/src/auto/lock_button.rs index 2f6e093bce..8cba49c703 100644 --- a/src/auto/lock_button.rs +++ b/src/auto/lock_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu.rs b/src/auto/menu.rs index 14b12676a0..14cd1193f3 100644 --- a/src/auto/menu.rs +++ b/src/auto/menu.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/menu_bar.rs b/src/auto/menu_bar.rs index 4892cd9499..7bfda7f5a8 100644 --- a/src/auto/menu_bar.rs +++ b/src/auto/menu_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_button.rs b/src/auto/menu_button.rs index 8dc00ab993..3d357b9202 100644 --- a/src/auto/menu_button.rs +++ b/src/auto/menu_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_item.rs b/src/auto/menu_item.rs index ae289e271c..e81e44a6f3 100644 --- a/src/auto/menu_item.rs +++ b/src/auto/menu_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/menu_shell.rs b/src/auto/menu_shell.rs index e5167743e4..7856534a15 100644 --- a/src/auto/menu_shell.rs +++ b/src/auto/menu_shell.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/menu_tool_button.rs b/src/auto/menu_tool_button.rs index 9e27e7f7ed..ca2fd54cba 100644 --- a/src/auto/menu_tool_button.rs +++ b/src/auto/menu_tool_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/message_dialog.rs b/src/auto/message_dialog.rs index 3bc06b8b5f..5324dfb59f 100644 --- a/src/auto/message_dialog.rs +++ b/src/auto/message_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/misc.rs b/src/auto/misc.rs index 1a444db066..af3277bcac 100644 --- a/src/auto/misc.rs +++ b/src/auto/misc.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/mod.rs b/src/auto/mod.rs index 51300bb0d8..59de25c2e5 100644 --- a/src/auto/mod.rs +++ b/src/auto/mod.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT mod about_dialog; diff --git a/src/auto/model_button.rs b/src/auto/model_button.rs index 5919e8f568..3d35d21d9f 100644 --- a/src/auto/model_button.rs +++ b/src/auto/model_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/mount_operation.rs b/src/auto/mount_operation.rs index fa56b357d3..48a7a4091c 100644 --- a/src/auto/mount_operation.rs +++ b/src/auto/mount_operation.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Window; diff --git a/src/auto/native_dialog.rs b/src/auto/native_dialog.rs index 700194693d..a75053f78f 100644 --- a/src/auto/native_dialog.rs +++ b/src/auto/native_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT #[cfg(any(feature = "v3_20", feature = "dox"))] diff --git a/src/auto/notebook.rs b/src/auto/notebook.rs index f84e1c6e3c..afb16b4ef0 100644 --- a/src/auto/notebook.rs +++ b/src/auto/notebook.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/offscreen_window.rs b/src/auto/offscreen_window.rs index 0b56227947..fd86dda5f9 100644 --- a/src/auto/offscreen_window.rs +++ b/src/auto/offscreen_window.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/orientable.rs b/src/auto/orientable.rs index 6ee2d5f096..db5095920f 100644 --- a/src/auto/orientable.rs +++ b/src/auto/orientable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Orientation; diff --git a/src/auto/overlay.rs b/src/auto/overlay.rs index e0a8592a2a..40ca7415bf 100644 --- a/src/auto/overlay.rs +++ b/src/auto/overlay.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/pad_controller.rs b/src/auto/pad_controller.rs index 0c31980e57..900b8cfffd 100644 --- a/src/auto/pad_controller.rs +++ b/src/auto/pad_controller.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use EventController; diff --git a/src/auto/page_setup.rs b/src/auto/page_setup.rs index 9e8d17c982..cdc7fef82b 100644 --- a/src/auto/page_setup.rs +++ b/src/auto/page_setup.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/paned.rs b/src/auto/paned.rs index efd9e01a83..47c74d83f8 100644 --- a/src/auto/paned.rs +++ b/src/auto/paned.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/places_sidebar.rs b/src/auto/places_sidebar.rs index c57df67738..a19c4878d1 100644 --- a/src/auto/places_sidebar.rs +++ b/src/auto/places_sidebar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/plug.rs b/src/auto/plug.rs index 533794b5c1..55717445ea 100644 --- a/src/auto/plug.rs +++ b/src/auto/plug.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/popover.rs b/src/auto/popover.rs index 62b373fb01..9bb1107366 100644 --- a/src/auto/popover.rs +++ b/src/auto/popover.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/popover_menu.rs b/src/auto/popover_menu.rs index 55907aa5c1..2dd51d204f 100644 --- a/src/auto/popover_menu.rs +++ b/src/auto/popover_menu.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/print_context.rs b/src/auto/print_context.rs index 67cca52f8f..894dde16ca 100644 --- a/src/auto/print_context.rs +++ b/src/auto/print_context.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_operation.rs b/src/auto/print_operation.rs index bc614e905b..dd79b31796 100644 --- a/src/auto/print_operation.rs +++ b/src/auto/print_operation.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/print_operation_preview.rs b/src/auto/print_operation_preview.rs index 73d10da614..0a8f26e72d 100644 --- a/src/auto/print_operation_preview.rs +++ b/src/auto/print_operation_preview.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use PageSetup; diff --git a/src/auto/print_settings.rs b/src/auto/print_settings.rs index df1198e4d3..b8b874445c 100644 --- a/src/auto/print_settings.rs +++ b/src/auto/print_settings.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/progress_bar.rs b/src/auto/progress_bar.rs index e8a7067849..d085fe6851 100644 --- a/src/auto/progress_bar.rs +++ b/src/auto/progress_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/radio_button.rs b/src/auto/radio_button.rs index 6fac7964f0..b97aeb6606 100644 --- a/src/auto/radio_button.rs +++ b/src/auto/radio_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_menu_item.rs b/src/auto/radio_menu_item.rs index c53fbab7fc..45a8cd6b46 100644 --- a/src/auto/radio_menu_item.rs +++ b/src/auto/radio_menu_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/radio_tool_button.rs b/src/auto/radio_tool_button.rs index 931d4cb44e..d12f66e33c 100644 --- a/src/auto/radio_tool_button.rs +++ b/src/auto/radio_tool_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/range.rs b/src/auto/range.rs index 2f13ebb121..56c280a8a7 100644 --- a/src/auto/range.rs +++ b/src/auto/range.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/recent_chooser.rs b/src/auto/recent_chooser.rs index 1b6b83d70f..cc16e70902 100644 --- a/src/auto/recent_chooser.rs +++ b/src/auto/recent_chooser.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/recent_chooser_dialog.rs b/src/auto/recent_chooser_dialog.rs index c0cc21494c..ef179d1377 100644 --- a/src/auto/recent_chooser_dialog.rs +++ b/src/auto/recent_chooser_dialog.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/recent_chooser_widget.rs b/src/auto/recent_chooser_widget.rs index 76c498bdcf..d935c35ec0 100644 --- a/src/auto/recent_chooser_widget.rs +++ b/src/auto/recent_chooser_widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/recent_filter.rs b/src/auto/recent_filter.rs index ea01658786..9c291b409d 100644 --- a/src/auto/recent_filter.rs +++ b/src/auto/recent_filter.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/recent_info.rs b/src/auto/recent_info.rs index b2d28e3251..a044e58efc 100644 --- a/src/auto/recent_info.rs +++ b/src/auto/recent_info.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/recent_manager.rs b/src/auto/recent_manager.rs index 994b6526ea..45c1f800d6 100644 --- a/src/auto/recent_manager.rs +++ b/src/auto/recent_manager.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Error; diff --git a/src/auto/revealer.rs b/src/auto/revealer.rs index 7d6f86a089..c7ed05cdf6 100644 --- a/src/auto/revealer.rs +++ b/src/auto/revealer.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/scale.rs b/src/auto/scale.rs index 07d22cde77..1e340b1a43 100644 --- a/src/auto/scale.rs +++ b/src/auto/scale.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scale_button.rs b/src/auto/scale_button.rs index 674efd1357..e808ef91e4 100644 --- a/src/auto/scale_button.rs +++ b/src/auto/scale_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/scrollable.rs b/src/auto/scrollable.rs index 0b62930b13..5e7fbc1b6e 100644 --- a/src/auto/scrollable.rs +++ b/src/auto/scrollable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrollbar.rs b/src/auto/scrollbar.rs index fc3fd27f6d..10c17fd852 100644 --- a/src/auto/scrollbar.rs +++ b/src/auto/scrollbar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/scrolled_window.rs b/src/auto/scrolled_window.rs index ae3747c808..c35c087d49 100644 --- a/src/auto/scrolled_window.rs +++ b/src/auto/scrolled_window.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/search_bar.rs b/src/auto/search_bar.rs index 8f3f2ef911..b5e5e8c8d2 100644 --- a/src/auto/search_bar.rs +++ b/src/auto/search_bar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/search_entry.rs b/src/auto/search_entry.rs index c316d8c4f2..4006ce5099 100644 --- a/src/auto/search_entry.rs +++ b/src/auto/search_entry.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/selection_data.rs b/src/auto/selection_data.rs index d61d08cd55..c06251efb8 100644 --- a/src/auto/selection_data.rs +++ b/src/auto/selection_data.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/separator.rs b/src/auto/separator.rs index 363da74e30..dc2d5ae376 100644 --- a/src/auto/separator.rs +++ b/src/auto/separator.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/separator_menu_item.rs b/src/auto/separator_menu_item.rs index fe9a907844..902c9f0e93 100644 --- a/src/auto/separator_menu_item.rs +++ b/src/auto/separator_menu_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/separator_tool_item.rs b/src/auto/separator_tool_item.rs index e488d6acd0..4a7a6edd20 100644 --- a/src/auto/separator_tool_item.rs +++ b/src/auto/separator_tool_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/settings.rs b/src/auto/settings.rs index 02bdb05892..0b94e5e621 100644 --- a/src/auto/settings.rs +++ b/src/auto/settings.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use CornerType; @@ -77,7 +78,7 @@ pub trait SettingsExt { fn set_string_property(&self, name: &str, v_string: &str, origin: &str); //#[cfg_attr(feature = "v3_8", deprecated)] - //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 }; + //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 9 }; fn get_property_gtk_alternative_button_order(&self) -> bool; @@ -722,7 +723,7 @@ impl + IsA> SettingsExt for O { } } - //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 10 } { + //fn get_property_color_hash(&self) -> /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 10, id: 9 } { // unsafe { // let mut value = Value::from_type(::static_type()); // gobject_ffi::g_object_get_property(self.to_glib_none().0, "color-hash".to_glib_none().0, value.to_glib_none_mut().0); diff --git a/src/auto/shortcuts_window.rs b/src/auto/shortcuts_window.rs index e00093a35b..121114d9bc 100644 --- a/src/auto/shortcuts_window.rs +++ b/src/auto/shortcuts_window.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/size_group.rs b/src/auto/size_group.rs index 7a0cfaeece..e8d2908e7c 100644 --- a/src/auto/size_group.rs +++ b/src/auto/size_group.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/socket.rs b/src/auto/socket.rs index d5c7354737..30c7529f5e 100644 --- a/src/auto/socket.rs +++ b/src/auto/socket.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/spin_button.rs b/src/auto/spin_button.rs index c85dca0752..6ac9e618cb 100644 --- a/src/auto/spin_button.rs +++ b/src/auto/spin_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/spinner.rs b/src/auto/spinner.rs index edf83c870c..3821a8808a 100644 --- a/src/auto/spinner.rs +++ b/src/auto/spinner.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack.rs b/src/auto/stack.rs index e40c8d7417..868c4941c1 100644 --- a/src/auto/stack.rs +++ b/src/auto/stack.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/stack_sidebar.rs b/src/auto/stack_sidebar.rs index 3be8367fba..3b59f9c3fa 100644 --- a/src/auto/stack_sidebar.rs +++ b/src/auto/stack_sidebar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/stack_switcher.rs b/src/auto/stack_switcher.rs index c6c6c85af3..d69c6f9236 100644 --- a/src/auto/stack_switcher.rs +++ b/src/auto/stack_switcher.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/status_icon.rs b/src/auto/status_icon.rs index dd2a5eea03..0846bdf6a6 100644 --- a/src/auto/status_icon.rs +++ b/src/auto/status_icon.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ImageType; diff --git a/src/auto/statusbar.rs b/src/auto/statusbar.rs index 4649408a16..3186c2a2d1 100644 --- a/src/auto/statusbar.rs +++ b/src/auto/statusbar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Box; diff --git a/src/auto/style_context.rs b/src/auto/style_context.rs index 6441289407..e85dbb5336 100644 --- a/src/auto/style_context.rs +++ b/src/auto/style_context.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Border; diff --git a/src/auto/style_properties.rs b/src/auto/style_properties.rs index c33edfb886..40b07f9a01 100644 --- a/src/auto/style_properties.rs +++ b/src/auto/style_properties.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use StateFlags; diff --git a/src/auto/style_provider.rs b/src/auto/style_provider.rs index 483eac14f8..2aa154348b 100644 --- a/src/auto/style_provider.rs +++ b/src/auto/style_provider.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/switch.rs b/src/auto/switch.rs index fb8829ab58..27a808d443 100644 --- a/src/auto/switch.rs +++ b/src/auto/switch.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/symbolic_color.rs b/src/auto/symbolic_color.rs index f81d81a88f..fb7476b0d2 100644 --- a/src/auto/symbolic_color.rs +++ b/src/auto/symbolic_color.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use StyleProperties; diff --git a/src/auto/target_list.rs b/src/auto/target_list.rs index 184d23e079..9cdb61e03e 100644 --- a/src/auto/target_list.rs +++ b/src/auto/target_list.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_attributes.rs b/src/auto/text_attributes.rs index 2bf28bd0ed..a6ae6eda01 100644 --- a/src/auto/text_attributes.rs +++ b/src/auto/text_attributes.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/text_buffer.rs b/src/auto/text_buffer.rs index ac94810c13..b66a99bca9 100644 --- a/src/auto/text_buffer.rs +++ b/src/auto/text_buffer.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Clipboard; diff --git a/src/auto/text_child_anchor.rs b/src/auto/text_child_anchor.rs index e3ba7c624f..df3296b399 100644 --- a/src/auto/text_child_anchor.rs +++ b/src/auto/text_child_anchor.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Widget; diff --git a/src/auto/text_iter.rs b/src/auto/text_iter.rs index 70a94cc04e..886559c407 100644 --- a/src/auto/text_iter.rs +++ b/src/auto/text_iter.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_mark.rs b/src/auto/text_mark.rs index 52fd87a74d..2e9e5d4fdf 100644 --- a/src/auto/text_mark.rs +++ b/src/auto/text_mark.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TextBuffer; diff --git a/src/auto/text_tag.rs b/src/auto/text_tag.rs index ce8a404ca5..109811ea78 100644 --- a/src/auto/text_tag.rs +++ b/src/auto/text_tag.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Justification; diff --git a/src/auto/text_tag_table.rs b/src/auto/text_tag_table.rs index 2141bcf4d2..aa098e99a7 100644 --- a/src/auto/text_tag_table.rs +++ b/src/auto/text_tag_table.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/text_view.rs b/src/auto/text_view.rs index e209f686a4..95360399b2 100644 --- a/src/auto/text_view.rs +++ b/src/auto/text_view.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/toggle_button.rs b/src/auto/toggle_button.rs index 7677ea69e4..56a3aa29ea 100644 --- a/src/auto/toggle_button.rs +++ b/src/auto/toggle_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/toggle_tool_button.rs b/src/auto/toggle_tool_button.rs index e34aab4ab9..a4231b349d 100644 --- a/src/auto/toggle_tool_button.rs +++ b/src/auto/toggle_tool_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_button.rs b/src/auto/tool_button.rs index 1e0fad0a25..06145d660d 100644 --- a/src/auto/tool_button.rs +++ b/src/auto/tool_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/tool_item.rs b/src/auto/tool_item.rs index 18128b87f2..3d732c999f 100644 --- a/src/auto/tool_item.rs +++ b/src/auto/tool_item.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Bin; diff --git a/src/auto/tool_item_group.rs b/src/auto/tool_item_group.rs index a918435e69..813b46a0dd 100644 --- a/src/auto/tool_item_group.rs +++ b/src/auto/tool_item_group.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_palette.rs b/src/auto/tool_palette.rs index 32417d1246..e5f9771470 100644 --- a/src/auto/tool_palette.rs +++ b/src/auto/tool_palette.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/tool_shell.rs b/src/auto/tool_shell.rs index 44fb364de6..47ef7f641b 100644 --- a/src/auto/tool_shell.rs +++ b/src/auto/tool_shell.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/toolbar.rs b/src/auto/toolbar.rs index 6e30a0a2e3..21ba42f302 100644 --- a/src/auto/toolbar.rs +++ b/src/auto/toolbar.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/tooltip.rs b/src/auto/tooltip.rs index dcd4647a3d..d20c6011ed 100644 --- a/src/auto/tooltip.rs +++ b/src/auto/tooltip.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Widget; diff --git a/src/auto/tree_iter.rs b/src/auto/tree_iter.rs index 16025605e2..9a1cc2e94e 100644 --- a/src/auto/tree_iter.rs +++ b/src/auto/tree_iter.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_model.rs b/src/auto/tree_model.rs index e3d1b9fd64..0d5e3ef6bc 100644 --- a/src/auto/tree_model.rs +++ b/src/auto/tree_model.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_model_filter.rs b/src/auto/tree_model_filter.rs index 2edea091c0..3436abe13f 100644 --- a/src/auto/tree_model_filter.rs +++ b/src/auto/tree_model_filter.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TreeIter; diff --git a/src/auto/tree_path.rs b/src/auto/tree_path.rs index 630e1f763d..59b2ae6c2e 100644 --- a/src/auto/tree_path.rs +++ b/src/auto/tree_path.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use ffi; diff --git a/src/auto/tree_row_reference.rs b/src/auto/tree_row_reference.rs index ce7d6d99ab..4ce971ac7f 100644 --- a/src/auto/tree_row_reference.rs +++ b/src/auto/tree_row_reference.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_selection.rs b/src/auto/tree_selection.rs index 77b59831b8..99c4e68fcd 100644 --- a/src/auto/tree_selection.rs +++ b/src/auto/tree_selection.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use SelectionMode; diff --git a/src/auto/tree_sortable.rs b/src/auto/tree_sortable.rs index aeeb05a187..0e69d1c62c 100644 --- a/src/auto/tree_sortable.rs +++ b/src/auto/tree_sortable.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use TreeModel; diff --git a/src/auto/tree_store.rs b/src/auto/tree_store.rs index a90094b23e..91f5f7df3c 100644 --- a/src/auto/tree_store.rs +++ b/src/auto/tree_store.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view.rs b/src/auto/tree_view.rs index 6a0c1f865a..e9f7f16102 100644 --- a/src/auto/tree_view.rs +++ b/src/auto/tree_view.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/tree_view_column.rs b/src/auto/tree_view_column.rs index b53dde8813..84887a708e 100644 --- a/src/auto/tree_view_column.rs +++ b/src/auto/tree_view_column.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Buildable; diff --git a/src/auto/viewport.rs b/src/auto/viewport.rs index da3445f42c..c9ba1b684c 100644 --- a/src/auto/viewport.rs +++ b/src/auto/viewport.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Adjustment; diff --git a/src/auto/volume_button.rs b/src/auto/volume_button.rs index 04dfd81727..f67c58e2a9 100644 --- a/src/auto/volume_button.rs +++ b/src/auto/volume_button.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Actionable; diff --git a/src/auto/widget.rs b/src/auto/widget.rs index 257a304425..d1370fb808 100644 --- a/src/auto/widget.rs +++ b/src/auto/widget.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AccelFlags; diff --git a/src/auto/window.rs b/src/auto/window.rs index 89c6193e8a..edc01e2e7d 100644 --- a/src/auto/window.rs +++ b/src/auto/window.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use AccelGroup; diff --git a/src/auto/window_group.rs b/src/auto/window_group.rs index ef476f4220..23f605511d 100644 --- a/src/auto/window_group.rs +++ b/src/auto/window_group.rs @@ -1,4 +1,5 @@ -// This file was generated by gir (0f1d1c1) from gir-files (77d1f70) +// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) +// from gir-files (https://github.com/gtk-rs/gir-files @ ???) // DO NOT EDIT use Widget; From 36dff74509f9f523153b30c9ca6a884bcfd9c316 Mon Sep 17 00:00:00 2001 From: Evgenii Pashkin Date: Sat, 17 Feb 2018 13:44:59 +0300 Subject: [PATCH 026/210] Regen --- gir | 2 +- src/assistant.rs | 2 - src/auto/about_dialog.rs | 20 +----- src/auto/accel_group.rs | 7 +- src/auto/action_bar.rs | 4 +- src/auto/actionable.rs | 5 +- src/auto/adjustment.rs | 12 +--- src/auto/alignment.rs | 12 +--- src/auto/app_chooser_button.rs | 8 +-- src/auto/app_chooser_dialog.rs | 6 +- src/auto/app_chooser_widget.rs | 13 +--- src/auto/application.rs | 10 +-- src/auto/application_window.rs | 5 +- src/auto/arrow.rs | 6 +- src/auto/aspect_frame.rs | 8 +-- src/auto/assistant.rs | 10 +-- src/auto/bin.rs | 4 +- src/auto/box_.rs | 7 +- src/auto/buildable.rs | 4 +- src/auto/builder.rs | 5 +- src/auto/button.rs | 15 +--- src/auto/button_box.rs | 5 +- src/auto/calendar.rs | 21 +----- src/auto/cell_area.rs | 11 +-- src/auto/cell_area_box.rs | 5 +- src/auto/cell_area_context.rs | 9 +-- src/auto/cell_editable.rs | 7 +- src/auto/cell_layout.rs | 4 +- src/auto/cell_renderer.rs | 21 +----- src/auto/cell_renderer_accel.rs | 10 +-- src/auto/cell_renderer_combo.rs | 8 +-- src/auto/cell_renderer_pixbuf.rs | 13 +--- src/auto/cell_renderer_progress.rs | 10 +-- src/auto/cell_renderer_spin.rs | 7 +- src/auto/cell_renderer_spinner.rs | 7 +- src/auto/cell_renderer_text.rs | 49 +------------ src/auto/cell_renderer_toggle.rs | 10 +-- src/auto/cell_view.rs | 12 +--- src/auto/check_button.rs | 4 +- src/auto/check_menu_item.rs | 8 +-- src/auto/clipboard.rs | 4 +- src/auto/color_button.rs | 10 +-- src/auto/color_chooser.rs | 7 +- src/auto/color_chooser_dialog.rs | 5 +- src/auto/color_chooser_widget.rs | 5 +- src/auto/combo_box.rs | 25 +------ src/auto/combo_box_text.rs | 4 +- src/auto/container.rs | 11 +-- src/auto/css_provider.rs | 5 +- src/auto/css_section.rs | 4 +- src/auto/dialog.rs | 7 +- src/auto/drawing_area.rs | 4 +- src/auto/editable.rs | 4 +- src/auto/entry.rs | 65 +---------------- src/auto/entry_completion.rs | 18 +---- src/auto/enums.rs | 4 +- src/auto/event_box.rs | 6 +- src/auto/event_controller.rs | 6 +- src/auto/expander.rs | 13 +--- src/auto/file_chooser.rs | 20 +----- src/auto/file_chooser_button.rs | 8 +-- src/auto/file_chooser_dialog.rs | 4 +- src/auto/file_chooser_native.rs | 6 +- src/auto/file_chooser_widget.rs | 18 +---- src/auto/file_filter.rs | 4 +- src/auto/fixed.rs | 4 +- src/auto/flags.rs | 4 +- src/auto/flow_box.rs | 18 +---- src/auto/flow_box_child.rs | 5 +- src/auto/font_button.rs | 11 +-- src/auto/font_chooser.rs | 9 +-- src/auto/font_chooser_dialog.rs | 4 +- src/auto/font_chooser_widget.rs | 4 +- src/auto/frame.rs | 9 +-- src/auto/functions.rs | 4 +- src/auto/gesture.rs | 6 +- src/auto/gesture_drag.rs | 7 +- src/auto/gesture_long_press.rs | 7 +- src/auto/gesture_multi_press.rs | 7 +- src/auto/gesture_pan.rs | 6 +- src/auto/gesture_rotate.rs | 5 +- src/auto/gesture_single.rs | 7 +- src/auto/gesture_swipe.rs | 5 +- src/auto/gesture_zoom.rs | 5 +- src/auto/gl_area.rs | 13 +--- src/auto/grid.rs | 9 +-- src/auto/header_bar.rs | 12 +--- src/auto/i_m_context.rs | 12 +--- src/auto/i_m_multicontext.rs | 4 +- src/auto/icon_factory.rs | 4 +- src/auto/icon_info.rs | 7 +- src/auto/icon_set.rs | 4 +- src/auto/icon_source.rs | 4 +- src/auto/icon_theme.rs | 5 +- src/auto/icon_view.rs | 29 +------- src/auto/image.rs | 15 +--- src/auto/image_menu_item.rs | 8 +-- src/auto/info_bar.rs | 8 +-- src/auto/invisible.rs | 5 +- src/auto/label.rs | 31 +------- src/auto/layout.rs | 6 +- src/auto/level_bar.rs | 10 +-- src/auto/link_button.rs | 7 +- src/auto/list_box.rs | 14 +--- src/auto/list_box_row.rs | 7 +- src/auto/list_store.rs | 4 +- src/auto/lock_button.rs | 10 +-- src/auto/menu.rs | 17 +---- src/auto/menu_bar.rs | 6 +- src/auto/menu_button.rs | 10 +-- src/auto/menu_item.rs | 14 +--- src/auto/menu_shell.rs | 13 +--- src/auto/menu_tool_button.rs | 6 +- src/auto/message_dialog.rs | 12 +--- src/auto/misc.rs | 8 +-- src/auto/mod.rs | 4 +- src/auto/model_button.rs | 12 +--- src/auto/mount_operation.rs | 7 +- src/auto/native_dialog.rs | 9 +-- src/auto/notebook.rs | 21 +----- src/auto/offscreen_window.rs | 4 +- src/auto/orientable.rs | 5 +- src/auto/overlay.rs | 4 +- src/auto/pad_controller.rs | 6 +- src/auto/page_setup.rs | 4 +- src/auto/paned.rs | 15 +--- src/auto/paper_size.rs | 3 +- src/auto/places_sidebar.rs | 25 +------ src/auto/plug.rs | 7 +- src/auto/popover.rs | 11 +-- src/auto/popover_menu.rs | 5 +- src/auto/print_context.rs | 4 +- src/auto/print_operation.rs | 33 +-------- src/auto/print_operation_preview.rs | 6 +- src/auto/print_settings.rs | 4 +- src/auto/progress_bar.rs | 10 +-- src/auto/radio_button.rs | 5 +- src/auto/radio_menu_item.rs | 5 +- src/auto/radio_tool_button.rs | 4 +- src/auto/range.rs | 16 +---- src/auto/recent_chooser.rs | 16 +---- src/auto/recent_chooser_dialog.rs | 4 +- src/auto/recent_chooser_widget.rs | 4 +- src/auto/recent_filter.rs | 4 +- src/auto/recent_info.rs | 4 +- src/auto/recent_manager.rs | 7 +- src/auto/revealer.rs | 8 +-- src/auto/scale.rs | 9 +-- src/auto/scale_button.rs | 11 +-- src/auto/scrollable.rs | 8 +-- src/auto/scrollbar.rs | 4 +- src/auto/scrolled_window.rs | 23 +----- src/auto/search_bar.rs | 6 +- src/auto/search_entry.rs | 8 +-- src/auto/selection_data.rs | 4 +- src/auto/separator.rs | 4 +- src/auto/separator_menu_item.rs | 4 +- src/auto/separator_tool_item.rs | 5 +- src/auto/settings.rs | 86 +--------------------- src/auto/shortcuts_window.rs | 8 +-- src/auto/size_group.rs | 6 +- src/auto/socket.rs | 6 +- src/auto/spin_button.rs | 12 +--- src/auto/spinner.rs | 5 +- src/auto/stack.rs | 13 +--- src/auto/stack_sidebar.rs | 5 +- src/auto/stack_switcher.rs | 6 +- src/auto/status_icon.rs | 26 +------ src/auto/statusbar.rs | 6 +- src/auto/style_context.rs | 9 +-- src/auto/style_properties.rs | 4 +- src/auto/style_provider.rs | 4 +- src/auto/switch.rs | 8 +-- src/auto/symbolic_color.rs | 4 +- src/auto/target_list.rs | 4 +- src/auto/text_attributes.rs | 4 +- src/auto/text_buffer.rs | 22 +----- src/auto/text_child_anchor.rs | 4 +- src/auto/text_iter.rs | 4 +- src/auto/text_mark.rs | 6 +- src/auto/text_tag.rs | 74 +------------------ src/auto/text_tag_table.rs | 7 +- src/auto/text_view.rs | 41 +---------- src/auto/toggle_button.rs | 8 +-- src/auto/toggle_tool_button.rs | 6 +- src/auto/tool_button.rs | 11 +-- src/auto/tool_item.rs | 9 +-- src/auto/tool_item_group.rs | 9 +-- src/auto/tool_palette.rs | 7 +- src/auto/tool_shell.rs | 4 +- src/auto/toolbar.rs | 12 +--- src/auto/tooltip.rs | 4 +- src/auto/tree_iter.rs | 4 +- src/auto/tree_model.rs | 8 +-- src/auto/tree_model_filter.rs | 5 +- src/auto/tree_path.rs | 4 +- src/auto/tree_row_reference.rs | 4 +- src/auto/tree_selection.rs | 6 +- src/auto/tree_sortable.rs | 5 +- src/auto/tree_store.rs | 4 +- src/auto/tree_view.rs | 38 +--------- src/auto/tree_view_column.rs | 24 +------ src/auto/viewport.rs | 5 +- src/auto/volume_button.rs | 5 +- src/auto/widget.rs | 106 +--------------------------- src/auto/window.rs | 42 +---------- src/auto/window_group.rs | 4 +- src/clipboard.rs | 2 - src/rt.rs | 9 --- src/signal.rs | 10 --- src/switch.rs | 1 - src/text_buffer.rs | 1 - src/tree_model_filter.rs | 2 - src/tree_sortable.rs | 2 - src/widget.rs | 3 - 215 files changed, 411 insertions(+), 1783 deletions(-) diff --git a/gir b/gir index ea993ed556..8b9d0bb32e 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit ea993ed556a1743d16734963df923965e471db5a +Subproject commit 8b9d0bb32ed3b76ff9931ee283c07d32af955b60 diff --git a/src/assistant.rs b/src/assistant.rs index 0485113665..49034f03d6 100644 --- a/src/assistant.rs +++ b/src/assistant.rs @@ -21,12 +21,10 @@ impl> AssistantExtManual for O { } unsafe extern "C" fn forward_page_trampoline(current_page: i32, f: glib_ffi::gpointer) -> i32 { - callback_guard!(); let f: &&(Fn(i32) -> i32 + 'static) = transmute(f); f(current_page) } unsafe extern "C" fn destroy_closure(ptr: glib_ffi::gpointer) { - callback_guard!(); Box_:: i32 + 'static>>::from_raw(ptr as *mut _); } diff --git a/src/auto/about_dialog.rs b/src/auto/about_dialog.rs index 91e154a63b..a96555925e 100644 --- a/src/auto/about_dialog.rs +++ b/src/auto/about_dialog.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Bin; @@ -481,112 +481,96 @@ impl + IsA> AboutDialogExt for O { unsafe extern "C" fn activate_link_trampoline

(this: *mut ffi::GtkAboutDialog, uri: *mut libc::c_char, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &str) -> Inhibit + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(uri)).to_glib() } unsafe extern "C" fn notify_artists_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_authors_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_comments_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_copyright_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_documenters_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_license_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_license_type_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_logo_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_logo_icon_name_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_program_name_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_translator_credits_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_version_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_website_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_website_label_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_wrap_license_trampoline

(this: *mut ffi::GtkAboutDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AboutDialog::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/accel_group.rs b/src/auto/accel_group.rs index 94f953ae6a..2e1b5cfcfe 100644 --- a/src/auto/accel_group.rs +++ b/src/auto/accel_group.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use ffi; @@ -158,21 +158,18 @@ impl + IsA> AccelGroupExt for O { unsafe extern "C" fn accel_activate_trampoline

(this: *mut ffi::GtkAccelGroup, acceleratable: *mut gobject_ffi::GObject, keyval: libc::c_uint, modifier: gdk_ffi::GdkModifierType, f: glib_ffi::gpointer) -> glib_ffi::gboolean where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &glib::Object, u32, gdk::ModifierType) -> bool + 'static) = transmute(f); f(&AccelGroup::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(acceleratable), keyval, from_glib(modifier)).to_glib() } unsafe extern "C" fn notify_is_locked_trampoline

(this: *mut ffi::GtkAccelGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AccelGroup::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_modifier_mask_trampoline

(this: *mut ffi::GtkAccelGroup, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AccelGroup::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/action_bar.rs b/src/auto/action_bar.rs index 0faf28beca..42ff758b13 100644 --- a/src/auto/action_bar.rs +++ b/src/auto/action_bar.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Bin; diff --git a/src/auto/actionable.rs b/src/auto/actionable.rs index 8e01743056..b4dba5fa0b 100644 --- a/src/auto/actionable.rs +++ b/src/auto/actionable.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Buildable; @@ -90,7 +90,6 @@ impl + IsA> ActionableExt for O { unsafe extern "C" fn notify_action_name_trampoline

(this: *mut ffi::GtkActionable, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Actionable::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/adjustment.rs b/src/auto/adjustment.rs index ca7e402350..bda8932c30 100644 --- a/src/auto/adjustment.rs +++ b/src/auto/adjustment.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use ffi; @@ -257,56 +257,48 @@ impl + IsA> AdjustmentExt for O { unsafe extern "C" fn changed_trampoline

(this: *mut ffi::GtkAdjustment, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn value_changed_trampoline

(this: *mut ffi::GtkAdjustment, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_lower_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_page_increment_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_page_size_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_step_increment_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_upper_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_value_trampoline

(this: *mut ffi::GtkAdjustment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Adjustment::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/alignment.rs b/src/auto/alignment.rs index 5a4a751c4b..1feb1b5421 100644 --- a/src/auto/alignment.rs +++ b/src/auto/alignment.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Bin; @@ -326,56 +326,48 @@ impl + IsA> AlignmentExt for O { unsafe extern "C" fn notify_bottom_padding_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_left_padding_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_right_padding_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_top_padding_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_xalign_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_xscale_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_yalign_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_yscale_trampoline

(this: *mut ffi::GtkAlignment, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Alignment::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_button.rs b/src/auto/app_chooser_button.rs index 0325b0ce95..4edc522817 100644 --- a/src/auto/app_chooser_button.rs +++ b/src/auto/app_chooser_button.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use AppChooser; @@ -161,28 +161,24 @@ impl + IsA> AppChooserButtonExt f unsafe extern "C" fn custom_item_activated_trampoline

(this: *mut ffi::GtkAppChooserButton, item_name: *mut libc::c_char, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &str) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked(), &String::from_glib_none(item_name)) } unsafe extern "C" fn notify_heading_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_default_item_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_dialog_item_trampoline

(this: *mut ffi::GtkAppChooserButton, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserButton::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_dialog.rs b/src/auto/app_chooser_dialog.rs index a01ae640da..f871ca1224 100644 --- a/src/auto/app_chooser_dialog.rs +++ b/src/auto/app_chooser_dialog.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use AppChooser; @@ -115,14 +115,12 @@ impl + IsA> AppChooserDialogExt f unsafe extern "C" fn notify_gfile_trampoline

(this: *mut ffi::GtkAppChooserDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserDialog::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_heading_trampoline

(this: *mut ffi::GtkAppChooserDialog, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserDialog::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/app_chooser_widget.rs b/src/auto/app_chooser_widget.rs index f0ceb1d33b..d6808dea2a 100644 --- a/src/auto/app_chooser_widget.rs +++ b/src/auto/app_chooser_widget.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use AppChooser; @@ -234,63 +234,54 @@ impl + IsA> AppChooserWidgetExt f unsafe extern "C" fn application_activated_trampoline

(this: *mut ffi::GtkAppChooserWidget, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(application)) } unsafe extern "C" fn application_selected_trampoline

(this: *mut ffi::GtkAppChooserWidget, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(application)) } unsafe extern "C" fn populate_popup_trampoline

(this: *mut ffi::GtkAppChooserWidget, menu: *mut ffi::GtkMenu, application: *mut gio_ffi::GAppInfo, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &Menu, &gio::AppInfo) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(menu), &from_glib_borrow(application)) } unsafe extern "C" fn notify_default_text_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_all_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_default_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_fallback_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_other_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_show_recommended_trampoline

(this: *mut ffi::GtkAppChooserWidget, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AppChooserWidget::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/application.rs b/src/auto/application.rs index c88653d5fb..c0934fee2c 100644 --- a/src/auto/application.rs +++ b/src/auto/application.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use ApplicationInhibitFlags; @@ -318,42 +318,36 @@ impl + IsA> GtkApplicationExt for O { unsafe extern "C" fn window_added_trampoline

(this: *mut ffi::GtkApplication, window: *mut ffi::GtkWindow, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &Window) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(window)) } unsafe extern "C" fn window_removed_trampoline

(this: *mut ffi::GtkApplication, window: *mut ffi::GtkWindow, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &Window) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(window)) } unsafe extern "C" fn notify_active_window_trampoline

(this: *mut ffi::GtkApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_app_menu_trampoline

(this: *mut ffi::GtkApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_menubar_trampoline

(this: *mut ffi::GtkApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_register_session_trampoline

(this: *mut ffi::GtkApplication, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Application::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/application_window.rs b/src/auto/application_window.rs index 116eb9362a..be1f8b9a99 100644 --- a/src/auto/application_window.rs +++ b/src/auto/application_window.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Application; @@ -115,7 +115,6 @@ impl + IsA> ApplicationWindowExt unsafe extern "C" fn notify_show_menubar_trampoline

(this: *mut ffi::GtkApplicationWindow, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&ApplicationWindow::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/arrow.rs b/src/auto/arrow.rs index e09b3f18f6..068ad78879 100644 --- a/src/auto/arrow.rs +++ b/src/auto/arrow.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use ArrowType; @@ -112,14 +112,12 @@ impl + IsA> ArrowExt for O { unsafe extern "C" fn notify_arrow_type_trampoline

(this: *mut ffi::GtkArrow, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Arrow::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_shadow_type_trampoline

(this: *mut ffi::GtkArrow, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Arrow::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/aspect_frame.rs b/src/auto/aspect_frame.rs index 3637a4a6ed..52212c289b 100644 --- a/src/auto/aspect_frame.rs +++ b/src/auto/aspect_frame.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Bin; @@ -168,28 +168,24 @@ impl + IsA> AspectFrameExt for O { unsafe extern "C" fn notify_obey_child_trampoline

(this: *mut ffi::GtkAspectFrame, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AspectFrame::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_ratio_trampoline

(this: *mut ffi::GtkAspectFrame, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AspectFrame::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_xalign_trampoline

(this: *mut ffi::GtkAspectFrame, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AspectFrame::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_yalign_trampoline

(this: *mut ffi::GtkAspectFrame, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&AspectFrame::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/assistant.rs b/src/auto/assistant.rs index 8d2109526f..56d9c5380c 100644 --- a/src/auto/assistant.rs +++ b/src/auto/assistant.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use AssistantPageType; @@ -392,35 +392,30 @@ impl + IsA + IsA + glib::obje unsafe extern "C" fn apply_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn cancel_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn close_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn escape_trampoline

(this: *mut ffi::GtkAssistant, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn prepare_trampoline

(this: *mut ffi::GtkAssistant, page: *mut ffi::GtkWidget, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P, &Widget) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked(), &from_glib_borrow(page)) } @@ -428,7 +423,6 @@ where P: IsA { #[cfg(any(feature = "v3_12", feature = "dox"))] unsafe extern "C" fn notify_use_header_bar_trampoline

(this: *mut ffi::GtkAssistant, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Assistant::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/bin.rs b/src/auto/bin.rs index 801c4f7cf7..c629ddb000 100644 --- a/src/auto/bin.rs +++ b/src/auto/bin.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Buildable; diff --git a/src/auto/box_.rs b/src/auto/box_.rs index 37cb8dc188..be00264fd1 100644 --- a/src/auto/box_.rs +++ b/src/auto/box_.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -307,21 +307,18 @@ impl + IsA + IsA> BoxExt for O { #[cfg(any(feature = "v3_10", feature = "dox"))] unsafe extern "C" fn notify_baseline_position_trampoline

(this: *mut ffi::GtkBox, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Box::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_homogeneous_trampoline

(this: *mut ffi::GtkBox, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Box::from_glib_borrow(this).downcast_unchecked()) } unsafe extern "C" fn notify_spacing_trampoline

(this: *mut ffi::GtkBox, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Box::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/buildable.rs b/src/auto/buildable.rs index 42556c99cb..228a8927f9 100644 --- a/src/auto/buildable.rs +++ b/src/auto/buildable.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Builder; diff --git a/src/auto/builder.rs b/src/auto/builder.rs index e2c6fce727..60025c5757 100644 --- a/src/auto/builder.rs +++ b/src/auto/builder.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT #[cfg(any(feature = "v3_10", feature = "dox"))] @@ -246,7 +246,6 @@ impl + IsA> BuilderExt for O { unsafe extern "C" fn notify_translation_domain_trampoline

(this: *mut ffi::GtkBuilder, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer) where P: IsA { - callback_guard!(); let f: &&(Fn(&P) + 'static) = transmute(f); f(&Builder::from_glib_borrow(this).downcast_unchecked()) } diff --git a/src/auto/button.rs b/src/auto/button.rs index 5c37955d09..1cb7ef9c63 100644 --- a/src/auto/button.rs +++ b/src/auto/button.rs @@ -1,5 +1,5 @@ -// This file was generated by gir (https://github.com/gtk-rs/gir @ ea993ed) -// from gir-files (https://github.com/gtk-rs/gir-files @ ???) +// This file was generated by gir (https://github.com/gtk-rs/gir @ 8b9d0bb) +// from gir-files (https://github.com/gtk-rs/gir-files @ 77d1f70) // DO NOT EDIT use Actionable; @@ -433,14 +433,12 @@ impl + IsA + glib::object::ObjectExt> Butto unsafe extern "C" fn activate_trampoline

(this: *mut ffi::GtkButton, f: glib_ffi::gpointer) where P: IsA