Skip to content

Commit

Permalink
Add default object implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt committed Sep 19, 2021
1 parent e578fe1 commit 3efc3db
Show file tree
Hide file tree
Showing 64 changed files with 382 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gdk4-wayland/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gdk4-wayland/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gdk4-x11/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gdk4-x11/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gdk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gdk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gsk4/src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
2 changes: 1 addition & 1 deletion gsk4/sys/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ 3158f69)
Generated by gir (https://github.com/gtk-rs/gir @ 545d89f)
from gir-files (https://github.com/gtk-rs/gir-files.git @ 7d95377)
7 changes: 7 additions & 0 deletions gtk4/src/auto/adjustment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ impl Adjustment {
}
}

impl Default for Adjustment {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Adjustment object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Adjustment`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/alternative_trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ impl AlternativeTrigger {
}
}

impl Default for AlternativeTrigger {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct AlternativeTrigger object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`AlternativeTrigger`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/app_chooser_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,13 @@ impl AppChooserButton {
}
}

impl Default for AppChooserButton {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct AppChooserButton object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`AppChooserButton`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/app_chooser_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ impl AppChooserDialog {
}
}

impl Default for AppChooserDialog {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct AppChooserDialog object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`AppChooserDialog`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/app_chooser_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ impl AppChooserWidget {
}
}

impl Default for AppChooserWidget {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct AppChooserWidget object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`AppChooserWidget`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/application_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ impl ApplicationWindow {
}
}

impl Default for ApplicationWindow {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct ApplicationWindow object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`ApplicationWindow`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/aspect_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ impl AspectFrame {
}
}

impl Default for AspectFrame {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct AspectFrame object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`AspectFrame`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/box_.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ impl Box {
}
}

impl Default for Box {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Box object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Box`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/box_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ impl BoxLayout {
}
}

impl Default for BoxLayout {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct BoxLayout object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`BoxLayout`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/color_chooser_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ impl ColorChooserDialog {
}
}

impl Default for ColorChooserDialog {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct ColorChooserDialog object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`ColorChooserDialog`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/column_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,13 @@ impl ColumnView {
}
}

impl Default for ColumnView {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct ColumnView object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`ColumnView`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/column_view_column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ impl ColumnViewColumn {
}
}

impl Default for ColumnViewColumn {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct ColumnViewColumn object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`ColumnViewColumn`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/constraint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ impl Constraint {
}
}

impl Default for Constraint {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Constraint object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Constraint`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/drop_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ impl DropTarget {
}
}

impl Default for DropTarget {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct DropTarget object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`DropTarget`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/drop_target_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ impl DropTargetAsync {
}
}

impl Default for DropTargetAsync {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct DropTargetAsync object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`DropTargetAsync`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/editable_label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ impl EditableLabel {
}
}

impl Default for EditableLabel {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct EditableLabel object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`EditableLabel`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/event_controller_scroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ impl EventControllerScroll {
}
}

impl Default for EventControllerScroll {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct EventControllerScroll object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`EventControllerScroll`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/expander.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ impl Expander {
}
}

impl Default for Expander {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Expander object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Expander`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/file_chooser_native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ impl FileChooserNative {
}
}

impl Default for FileChooserNative {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct FileChooserNative object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`FileChooserNative`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/file_chooser_widget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ impl FileChooserWidget {
}
}

impl Default for FileChooserWidget {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct FileChooserWidget object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`FileChooserWidget`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/filter_list_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ impl FilterListModel {
}
}

impl Default for FilterListModel {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct FilterListModel object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`FilterListModel`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/font_chooser_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ impl FontChooserDialog {
}
}

impl Default for FontChooserDialog {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct FontChooserDialog object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`FontChooserDialog`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ impl Frame {
}
}

impl Default for Frame {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Frame object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Frame`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/gesture_pan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ impl GesturePan {
}
}

impl Default for GesturePan {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct GesturePan object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`GesturePan`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/grid_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ impl GridView {
}
}

impl Default for GridView {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct GridView object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`GridView`] objects.
Expand Down
7 changes: 7 additions & 0 deletions gtk4/src/auto/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,13 @@ impl Label {
}
}

impl Default for Label {
fn default() -> Self {
glib::object::Object::new::<Self>(&[])
.expect("Can't construct Label object with default parameters")
}
}

#[derive(Clone, Default)]
// rustdoc-stripper-ignore-next
/// A [builder-pattern] type to construct [`Label`] objects.
Expand Down
Loading

0 comments on commit 3efc3db

Please sign in to comment.