Skip to content

Commit

Permalink
why does vala allow this???
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored Jan 14, 2023
1 parent a29d158 commit 0dad07f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/Widgets/Banner.vala
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public class He.Banner : He.Bin, Gtk.Buildable {
* @since 1.0
*/
public Banner (string title, string description) {
base ();
this.title = title;
this.description = description;
base ();
}

static construct {
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/BottomBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ public class He.BottomBar : He.Bin, Gtk.Buildable {
* @param description The description of the bottom bar.
*/
public BottomBar.with_details (string title, string description) {
base ();
this.title = title;
this.description = description;
base ();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/ContentBlock.vala
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ public class He.ContentBlock : He.Bin, Gtk.Buildable {
* @param secondary_button The secondary button of the content block.
*/
public ContentBlock (string title, string subtitle, string icon, He.Button primary_button, He.Button secondary_button) {
base ();
this.title = title;
this.subtitle = subtitle;
this.icon = icon;
this.primary_button = primary_button;
this.secondary_button = secondary_button;
base ();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/ContentBlockImage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class He.ContentBlockImage : He.Bin, Gtk.Buildable {
}

public ContentBlockImage(string file) {
this.file = file;
base ();
this.file = file;
}
}
2 changes: 1 addition & 1 deletion lib/Widgets/ContentBlockImageCluster.vala
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ public class He.ContentBlockImageCluster : He.Bin {
}

public ContentBlockImageCluster(string title, string subtitle, string icon) {
base ();
this.title = title;
this.subtitle = subtitle;
this.icon = icon;
base ();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/ModifierBadge.vala
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public class He.ModifierBadge : He.Bin {
* @param label The text of the badge.
*/
public ModifierBadge(string? label) {
this.label = label;
base ();
this.label = label;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/OverlayButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ public class He.OverlayButton : He.Bin, Gtk.Buildable {
* @since 1.0
*/
public OverlayButton(string icon, string? label, string? secondary_icon) {
base ();
this.icon = icon;
if (label != null) this.label = label;
if (secondary_icon != null) this.secondary_icon = secondary_icon;
base ();
}

static construct {
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/SettingsPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public class He.SettingsPage : He.Bin, Gtk.Buildable {
* @since 1.0
*/
public SettingsPage (string title) {
this.title = title;
base ();
this.title = title;
}

static construct {
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/SideBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public class He.SideBar : He.Bin, Gtk.Buildable {
* @param subtitle The subtitle of the SideBar.
*/
public SideBar(string title, string subtitle) {
base ();
this.title = title;
this.subtitle = subtitle;
base ();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/TabSwitcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@
* @since 1.0
*/
public TabSwitcher () {
handle_events ();
base ();
handle_events ();
}

construct {
Expand Down
2 changes: 1 addition & 1 deletion lib/Widgets/WelcomeScreen.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public class He.WelcomeScreen : He.Bin {
* @since 1.0
*/
public WelcomeScreen (string appname, string description) {
base ();
this.appname = appname;
this.description = description;
base ();
}

~WelcomeScreen () {
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(
'vala', 'c',
license: 'GPL-3-or-later',
meson_version: '>= 0.56.0',
version: '1.2.22',
version: '1.2.25',
default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],
)

Expand Down

0 comments on commit 0dad07f

Please sign in to comment.