implement Default traits

This commit is contained in:
yggverse 2025-01-12 14:08:30 +02:00
parent 1a0b31e695
commit 9b214b1469
55 changed files with 330 additions and 0 deletions

View File

@ -5,6 +5,12 @@ pub struct About {
gobject: AboutDialog,
}
impl Default for About {
fn default() -> Self {
Self::new()
}
}
impl About {
// Construct
pub fn new() -> Self {

View File

@ -33,6 +33,12 @@ pub struct Action {
pub simple_action_group: SimpleActionGroup,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct About {
pub simple_action: SimpleAction,
}
impl Default for About {
fn default() -> Self {
Self::new()
}
}
impl About {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct Close {
pub simple_action: SimpleAction,
}
impl Default for Close {
fn default() -> Self {
Self::new()
}
}
impl Close {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct Debug {
pub simple_action: SimpleAction,
}
impl Default for Debug {
fn default() -> Self {
Self::new()
}
}
impl Debug {
// Constructors

View File

@ -9,6 +9,12 @@ pub struct Escape {
pub simple_action: SimpleAction,
}
impl Default for Escape {
fn default() -> Self {
Self::new()
}
}
impl Escape {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct Profile {
pub simple_action: SimpleAction,
}
impl Default for Profile {
fn default() -> Self {
Self::new()
}
}
impl Profile {
// Constructors

View File

@ -9,6 +9,12 @@ pub struct Update {
pub simple_action: SimpleAction,
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}
impl Update {
// Constructors

View File

@ -56,6 +56,12 @@ pub struct Action {
pub simple_action_group: SimpleActionGroup,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View File

@ -40,6 +40,12 @@ pub struct Append {
pub simple_action: SimpleAction,
}
impl Default for Append {
fn default() -> Self {
Self::new()
}
}
impl Append {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Bookmark {
pub simple_action: SimpleAction,
}
impl Default for Bookmark {
fn default() -> Self {
Self::new()
}
}
impl Bookmark {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Close {
pub simple_action: SimpleAction,
}
impl Default for Close {
fn default() -> Self {
Self::new()
}
}
impl Close {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct CloseAll {
pub simple_action: SimpleAction,
}
impl Default for CloseAll {
fn default() -> Self {
Self::new()
}
}
impl CloseAll {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Find {
pub simple_action: SimpleAction,
}
impl Default for Find {
fn default() -> Self {
Self::new()
}
}
impl Find {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct HistoryBack {
pub simple_action: SimpleAction,
}
impl Default for HistoryBack {
fn default() -> Self {
Self::new()
}
}
impl HistoryBack {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct HistoryForward {
pub simple_action: SimpleAction,
}
impl Default for HistoryForward {
fn default() -> Self {
Self::new()
}
}
impl HistoryForward {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Home {
pub simple_action: SimpleAction,
}
impl Default for Home {
fn default() -> Self {
Self::new()
}
}
impl Home {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Open {
pub simple_action: SimpleAction,
}
impl Default for Open {
fn default() -> Self {
Self::new()
}
}
impl Open {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Pin {
pub simple_action: SimpleAction,
}
impl Default for Pin {
fn default() -> Self {
Self::new()
}
}
impl Pin {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Reload {
pub simple_action: SimpleAction,
}
impl Default for Reload {
fn default() -> Self {
Self::new()
}
}
impl Reload {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct SaveAs {
pub simple_action: SimpleAction,
}
impl Default for SaveAs {
fn default() -> Self {
Self::new()
}
}
impl SaveAs {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Source {
pub simple_action: SimpleAction,
}
impl Default for Source {
fn default() -> Self {
Self::new()
}
}
impl Source {
// Constructors

View File

@ -6,6 +6,12 @@ pub struct Control {
pub window_controls: WindowControls,
}
impl Default for Control {
fn default() -> Self {
Self::new()
}
}
impl Control {
// Construct
pub fn new() -> Self {

View File

@ -12,6 +12,12 @@ pub struct Action {
pub load: Rc<Load>,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct Ident {
pub simple_action: SimpleAction,
}
impl Default for Ident {
fn default() -> Self {
Self::new()
}
}
impl Ident {
// Constructors

View File

@ -9,6 +9,12 @@ pub struct Load {
pub simple_action: SimpleAction,
}
impl Default for Load {
fn default() -> Self {
Self::new()
}
}
impl Load {
// Constructors

View File

@ -8,6 +8,12 @@ pub struct Action {
pub update: Rc<Update>,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View File

@ -5,6 +5,12 @@ pub struct Update {
pub gobject: SimpleAction,
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}
impl Update {
// Constructors

View File

@ -8,6 +8,12 @@ pub struct Unsupported {
widget: Rc<Widget>,
}
impl Default for Unsupported {
fn default() -> Self {
Self::new()
}
}
impl Unsupported {
// Construct

View File

@ -12,6 +12,12 @@ pub struct Widget {
gobject: AlertDialog,
}
impl Default for Widget {
fn default() -> Self {
Self::new()
}
}
impl Widget {
// Constructors

View File

@ -15,6 +15,12 @@ pub struct Client {
// other clients..
}
impl Default for Client {
fn default() -> Self {
Self::new()
}
}
impl Client {
// Constructors

View File

@ -15,6 +15,12 @@ pub struct Action {
pub update: Rc<Update>,
}
impl Default for Action {
fn default() -> Self {
Self::new()
}
}
impl Action {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Cancel {
pub action: SimpleAction,
}
impl Default for Cancel {
fn default() -> Self {
Self::new()
}
}
impl Cancel {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Complete {
pub action: SimpleAction,
}
impl Default for Complete {
fn default() -> Self {
Self::new()
}
}
impl Complete {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Update {
pub action: SimpleAction,
}
impl Default for Update {
fn default() -> Self {
Self::new()
}
}
impl Update {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Cancel {
pub button: Button,
}
impl Default for Cancel {
fn default() -> Self {
Self::new()
}
}
impl Cancel {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Open {
pub button: Button,
}
impl Default for Open {
fn default() -> Self {
Self::new()
}
}
impl Open {
// Constructors

View File

@ -9,6 +9,12 @@ pub struct Progress {
pub spinner: Spinner,
}
impl Default for Progress {
fn default() -> Self {
Self::new()
}
}
impl Progress {
// Constructors

View File

@ -14,6 +14,12 @@ pub struct Status {
pub label: Label,
}
impl Default for Status {
fn default() -> Self {
Self::new()
}
}
impl Status {
// Constructors

View File

@ -6,6 +6,12 @@ pub struct Tag {
pub text_tag: TextTag,
}
impl Default for Tag {
fn default() -> Self {
Self::new()
}
}
impl Tag {
// Constructors

View File

@ -35,6 +35,12 @@ pub struct Syntax {
theme_set: ThemeSet,
}
impl Default for Syntax {
fn default() -> Self {
Self::new()
}
}
impl Syntax {
// Constructors

View File

@ -6,6 +6,12 @@ pub struct Tag {
pub text_tag: TextTag,
}
impl Default for Tag {
fn default() -> Self {
Self::new()
}
}
impl Tag {
// Constructors

View File

@ -20,6 +20,12 @@ pub struct Tag {
pub plain: TextTag,
}
impl Default for Tag {
fn default() -> Self {
Self::new()
}
}
impl Tag {
// Construct
pub fn new() -> Self {

View File

@ -4,6 +4,12 @@ pub struct Reader {
widget: Label,
}
impl Default for Reader {
fn default() -> Self {
Self::new()
}
}
impl Reader {
// Construct
pub fn new() -> Self {

View File

@ -14,6 +14,12 @@ pub struct Input {
pub widget: Rc<Widget>,
}
impl Default for Input {
fn default() -> Self {
Self::new()
}
}
impl Input {
// Construct
pub fn new() -> Self {

View File

@ -8,6 +8,12 @@ pub struct Counter {
pub widget: Rc<Widget>,
}
impl Default for Counter {
fn default() -> Self {
Self::new()
}
}
impl Counter {
// Construct
pub fn new() -> Self {

View File

@ -4,6 +4,12 @@ pub struct Widget {
pub label: Label,
}
impl Default for Widget {
fn default() -> Self {
Self::new()
}
}
impl Widget {
// Construct
pub fn new() -> Self {

View File

@ -7,6 +7,12 @@ pub struct Widget {
pub clamp: Clamp,
}
impl Default for Widget {
fn default() -> Self {
Self::new()
}
}
impl Widget {
// Construct
pub fn new() -> Self {

View File

@ -20,6 +20,12 @@ pub struct Search {
pub g_box: Box,
}
impl Default for Search {
fn default() -> Self {
Self::new()
}
}
impl Search {
// Constructors

View File

@ -10,6 +10,12 @@ pub struct Input {
pub entry: Entry,
}
impl Default for Input {
fn default() -> Self {
Self::new()
}
}
impl Input {
// Constructors

View File

@ -22,6 +22,12 @@ pub struct Navigation {
model: RefCell<Model<(TextIter, TextIter)>>,
}
impl Default for Navigation {
fn default() -> Self {
Self::new()
}
}
impl Navigation {
// Constructors

View File

@ -4,6 +4,12 @@ pub struct Back {
pub button: Button,
}
impl Default for Back {
fn default() -> Self {
Self::new()
}
}
impl Back {
// Constructors

View File

@ -4,6 +4,12 @@ pub struct Forward {
pub button: Button,
}
impl Default for Forward {
fn default() -> Self {
Self::new()
}
}
impl Forward {
// Constructors

View File

@ -6,6 +6,12 @@ pub struct Result {
pub label: Label,
}
impl Default for Result {
fn default() -> Self {
Self::new()
}
}
impl Result {
// Constructors

View File

@ -6,6 +6,12 @@ pub struct Placeholder {
pub label: Label,
}
impl Default for Placeholder {
fn default() -> Self {
Self::new()
}
}
impl Placeholder {
// Constructors