diff --git a/atk/src/auto/versions.txt b/atk/src/auto/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/atk/src/auto/versions.txt +++ b/atk/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/atk/sys/versions.txt b/atk/sys/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/atk/sys/versions.txt +++ b/atk/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/examples/basic_subclass/simple_application/mod.rs b/examples/basic_subclass/simple_application/mod.rs index 5b845a67e3d3..3be7dbd9a863 100644 --- a/examples/basic_subclass/simple_application/mod.rs +++ b/examples/basic_subclass/simple_application/mod.rs @@ -15,6 +15,5 @@ impl SimpleApplication { ("application-id", &"org.gtk-rs.SimpleApplication"), ("flags", &ApplicationFlags::empty()), ]) - .expect("Failed to create SimpleApp") } } diff --git a/examples/basic_subclass/simple_window/mod.rs b/examples/basic_subclass/simple_window/mod.rs index 6460cdb0821e..69cf4ff1b7ba 100644 --- a/examples/basic_subclass/simple_window/mod.rs +++ b/examples/basic_subclass/simple_window/mod.rs @@ -11,6 +11,6 @@ glib::wrapper! { impl SimpleWindow { pub fn new(app: &SimpleApplication) -> Self { - glib::Object::new(&[("application", app)]).expect("Failed to create SimpleWindow") + glib::Object::new(&[("application", app)]) } } diff --git a/examples/composite_template/example_application_window/mod.rs b/examples/composite_template/example_application_window/mod.rs index 4d74d9f7f6af..bf46547f3b8c 100644 --- a/examples/composite_template/example_application_window/mod.rs +++ b/examples/composite_template/example_application_window/mod.rs @@ -12,7 +12,6 @@ glib::wrapper! { impl ExampleApplicationWindow { pub fn new>(app: &P) -> Self { glib::Object::new(&[("application", app)]) - .expect("Failed to create ExampleApplicationWindow") } fn init_label(&self) { diff --git a/examples/list_box_model/model/mod.rs b/examples/list_box_model/model/mod.rs index 8fd89b1dd4b2..d67ed339e518 100644 --- a/examples/list_box_model/model/mod.rs +++ b/examples/list_box_model/model/mod.rs @@ -15,7 +15,7 @@ glib::wrapper! { impl Model { #[allow(clippy::new_without_default)] pub fn new() -> Model { - glib::Object::new(&[]).expect("Failed to create Model") + glib::Object::new(&[]) } pub fn append(&self, obj: &RowData) { diff --git a/examples/list_box_model/row_data/mod.rs b/examples/list_box_model/row_data/mod.rs index bfab23c3c600..e5a5b071da9c 100644 --- a/examples/list_box_model/row_data/mod.rs +++ b/examples/list_box_model/row_data/mod.rs @@ -18,6 +18,6 @@ glib::wrapper! { // initial values for our two properties and then returns the new instance impl RowData { pub fn new(name: &str, count: u32) -> RowData { - glib::Object::new(&[("name", &name), ("count", &count)]).expect("Failed to create row data") + glib::Object::new(&[("name", &name), ("count", &count)]) } } diff --git a/gdk/src/auto/versions.txt b/gdk/src/auto/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/gdk/src/auto/versions.txt +++ b/gdk/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/gdk/sys/versions.txt b/gdk/sys/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/gdk/sys/versions.txt +++ b/gdk/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/gdkx11/src/auto/versions.txt b/gdkx11/src/auto/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/gdkx11/src/auto/versions.txt +++ b/gdkx11/src/auto/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/gdkx11/src/auto/x11_device_manager_xi2.rs b/gdkx11/src/auto/x11_device_manager_xi2.rs index f97d9fb66e01..270a17e54756 100644 --- a/gdkx11/src/auto/x11_device_manager_xi2.rs +++ b/gdkx11/src/auto/x11_device_manager_xi2.rs @@ -80,7 +80,6 @@ impl X11DeviceManagerXI2Builder { properties.push(("display", display)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of X11DeviceManagerXI2") } pub fn major(mut self, major: i32) -> Self { diff --git a/gdkx11/src/auto/x11_device_xi2.rs b/gdkx11/src/auto/x11_device_xi2.rs index c08f6b1b9645..28ce708f9a73 100644 --- a/gdkx11/src/auto/x11_device_xi2.rs +++ b/gdkx11/src/auto/x11_device_xi2.rs @@ -92,7 +92,6 @@ impl X11DeviceXI2Builder { properties.push(("vendor-id", vendor_id)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of X11DeviceXI2") } pub fn device_id(mut self, device_id: i32) -> Self { diff --git a/gdkx11/sys/versions.txt b/gdkx11/sys/versions.txt index a7ca9d5617b2..809620801038 100644 --- a/gdkx11/sys/versions.txt +++ b/gdkx11/sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822) +Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51) from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5) diff --git a/gir b/gir index 54e116a11822..b5068ede6c51 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 54e116a1182253b6459f174155b1018a0ada289f +Subproject commit b5068ede6c51f47c84ac0308d8d48110b9a6e086 diff --git a/gtk/src/auto/about_dialog.rs b/gtk/src/auto/about_dialog.rs index 74edc3ed68e2..bcc890d8ab4f 100644 --- a/gtk/src/auto/about_dialog.rs +++ b/gtk/src/auto/about_dialog.rs @@ -396,7 +396,6 @@ impl AboutDialogBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AboutDialog") } pub fn artists(mut self, artists: Vec) -> Self { diff --git a/gtk/src/auto/accel_label.rs b/gtk/src/auto/accel_label.rs index c536ba587f4e..18f9d82a8de8 100644 --- a/gtk/src/auto/accel_label.rs +++ b/gtk/src/auto/accel_label.rs @@ -53,7 +53,6 @@ impl AccelLabel { impl Default for AccelLabel { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct AccelLabel object with default parameters") } } @@ -291,7 +290,6 @@ impl AccelLabelBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AccelLabel") } pub fn accel_closure(mut self, accel_closure: &glib::Closure) -> Self { diff --git a/gtk/src/auto/action_bar.rs b/gtk/src/auto/action_bar.rs index d37603896670..ad73026fd4e8 100644 --- a/gtk/src/auto/action_bar.rs +++ b/gtk/src/auto/action_bar.rs @@ -211,7 +211,6 @@ impl ActionBarBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of ActionBar") } pub fn border_width(mut self, border_width: u32) -> Self { diff --git a/gtk/src/auto/adjustment.rs b/gtk/src/auto/adjustment.rs index 049848f9c701..13a44614df68 100644 --- a/gtk/src/auto/adjustment.rs +++ b/gtk/src/auto/adjustment.rs @@ -59,7 +59,6 @@ impl Adjustment { impl Default for Adjustment { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct Adjustment object with default parameters") } } @@ -109,7 +108,6 @@ impl AdjustmentBuilder { properties.push(("value", value)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of Adjustment") } pub fn lower(mut self, lower: f64) -> Self { diff --git a/gtk/src/auto/app_chooser_button.rs b/gtk/src/auto/app_chooser_button.rs index 9e71248e6e07..fd44a0e975c2 100644 --- a/gtk/src/auto/app_chooser_button.rs +++ b/gtk/src/auto/app_chooser_button.rs @@ -61,7 +61,6 @@ impl AppChooserButton { impl Default for AppChooserButton { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct AppChooserButton object with default parameters") } } @@ -299,7 +298,6 @@ impl AppChooserButtonBuilder { properties.push(("content-type", content_type)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AppChooserButton") } pub fn heading(mut self, heading: &str) -> Self { diff --git a/gtk/src/auto/app_chooser_dialog.rs b/gtk/src/auto/app_chooser_dialog.rs index 4864ffc3d954..880205791f1e 100644 --- a/gtk/src/auto/app_chooser_dialog.rs +++ b/gtk/src/auto/app_chooser_dialog.rs @@ -85,7 +85,6 @@ impl AppChooserDialog { impl Default for AppChooserDialog { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct AppChooserDialog object with default parameters") } } @@ -379,7 +378,6 @@ impl AppChooserDialogBuilder { properties.push(("content-type", content_type)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AppChooserDialog") } pub fn gfile(mut self, gfile: &impl IsA) -> Self { diff --git a/gtk/src/auto/app_chooser_widget.rs b/gtk/src/auto/app_chooser_widget.rs index eb13079f033a..2febc22dd166 100644 --- a/gtk/src/auto/app_chooser_widget.rs +++ b/gtk/src/auto/app_chooser_widget.rs @@ -59,7 +59,6 @@ impl AppChooserWidget { impl Default for AppChooserWidget { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct AppChooserWidget object with default parameters") } } @@ -269,7 +268,6 @@ impl AppChooserWidgetBuilder { properties.push(("content-type", content_type)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AppChooserWidget") } pub fn default_text(mut self, default_text: &str) -> Self { diff --git a/gtk/src/auto/application.rs b/gtk/src/auto/application.rs index 1ac8c2221838..0bca08996772 100644 --- a/gtk/src/auto/application.rs +++ b/gtk/src/auto/application.rs @@ -89,8 +89,7 @@ impl ApplicationBuilder { if let Some(ref resource_base_path) = self.resource_base_path { properties.push(("resource-base-path", resource_base_path)); } - let ret = glib::Object::new::(&properties) - .expect("Failed to create an instance of Application"); + let ret = glib::Object::new::(&properties); { Application::register_startup_hook(&ret); } diff --git a/gtk/src/auto/application_window.rs b/gtk/src/auto/application_window.rs index f4c251595370..3aeff8da3387 100644 --- a/gtk/src/auto/application_window.rs +++ b/gtk/src/auto/application_window.rs @@ -323,7 +323,6 @@ impl ApplicationWindowBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of ApplicationWindow") } pub fn show_menubar(mut self, show_menubar: bool) -> Self { diff --git a/gtk/src/auto/aspect_frame.rs b/gtk/src/auto/aspect_frame.rs index c7abacb37aaa..5f85beb54b07 100644 --- a/gtk/src/auto/aspect_frame.rs +++ b/gtk/src/auto/aspect_frame.rs @@ -66,7 +66,6 @@ impl AspectFrame { impl Default for AspectFrame { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct AspectFrame object with default parameters") } } @@ -268,7 +267,6 @@ impl AspectFrameBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of AspectFrame") } pub fn obey_child(mut self, obey_child: bool) -> Self { diff --git a/gtk/src/auto/assistant.rs b/gtk/src/auto/assistant.rs index b9f2c2925e91..6329adb60078 100644 --- a/gtk/src/auto/assistant.rs +++ b/gtk/src/auto/assistant.rs @@ -336,7 +336,6 @@ impl AssistantBuilder { properties.push(("width-request", width_request)); } glib::Object::new::(&properties) - .expect("Failed to create an instance of Assistant") } pub fn use_header_bar(mut self, use_header_bar: i32) -> Self { diff --git a/gtk/src/auto/box_.rs b/gtk/src/auto/box_.rs index 17677041ac12..ed6367b42924 100644 --- a/gtk/src/auto/box_.rs +++ b/gtk/src/auto/box_.rs @@ -55,7 +55,6 @@ impl Box { impl Default for Box { fn default() -> Self { glib::object::Object::new::(&[]) - .expect("Can't construct Box object with default parameters") } } @@ -236,7 +235,7 @@ impl BoxBuilder { if let Some(ref orientation) = self.orientation { properties.push(("orientation", orientation)); } - glib::Object::new::(&properties).expect("Failed to create an instance of Box") + glib::Object::new::(&properties) } pub fn baseline_position(mut self, baseline_position: BaselinePosition) -> Self { diff --git a/gtk/src/auto/button.rs b/gtk/src/auto/button.rs index ca529811519d..f12d8e9dbab2 100644 --- a/gtk/src/auto/button.rs +++ b/gtk/src/auto/button.rs @@ -283,7 +283,7 @@ impl ButtonBuilder { if let Some(ref action_target) = self.action_target { properties.push(("action-target", action_target)); } - glib::Object::new::