Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 6bba580

Browse files
authored
Merge pull request #776 from sdroege/object-new-panic
Update for glib::Object::new() API changes
2 parents 84d21a3 + 3ddda89 commit 6bba580

File tree

159 files changed

+47
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+47
-215
lines changed

atk/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822)
1+
Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)

atk/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822)
1+
Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)

examples/basic_subclass/simple_application/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ impl SimpleApplication {
1515
("application-id", &"org.gtk-rs.SimpleApplication"),
1616
("flags", &ApplicationFlags::empty()),
1717
])
18-
.expect("Failed to create SimpleApp")
1918
}
2019
}

examples/basic_subclass/simple_window/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ glib::wrapper! {
1111

1212
impl SimpleWindow {
1313
pub fn new(app: &SimpleApplication) -> Self {
14-
glib::Object::new(&[("application", app)]).expect("Failed to create SimpleWindow")
14+
glib::Object::new(&[("application", app)])
1515
}
1616
}

examples/composite_template/example_application_window/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ glib::wrapper! {
1212
impl ExampleApplicationWindow {
1313
pub fn new<P: glib::IsA<gtk::Application>>(app: &P) -> Self {
1414
glib::Object::new(&[("application", app)])
15-
.expect("Failed to create ExampleApplicationWindow")
1615
}
1716

1817
fn init_label(&self) {

examples/list_box_model/model/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ glib::wrapper! {
1515
impl Model {
1616
#[allow(clippy::new_without_default)]
1717
pub fn new() -> Model {
18-
glib::Object::new(&[]).expect("Failed to create Model")
18+
glib::Object::new(&[])
1919
}
2020

2121
pub fn append(&self, obj: &RowData) {

examples/list_box_model/row_data/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ glib::wrapper! {
1818
// initial values for our two properties and then returns the new instance
1919
impl RowData {
2020
pub fn new(name: &str, count: u32) -> RowData {
21-
glib::Object::new(&[("name", &name), ("count", &count)]).expect("Failed to create row data")
21+
glib::Object::new(&[("name", &name), ("count", &count)])
2222
}
2323
}

gdk/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822)
1+
Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)

gdk/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822)
1+
Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)

gdkx11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ 54e116a11822)
1+
Generated by gir (https://github.com/gtk-rs/gir @ b5068ede6c51)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 7ebd4478b4a5)

0 commit comments

Comments
 (0)