Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/Dialogs/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ public class Tuba.Dialogs.MainWindow: Adw.ApplicationWindow, Saveable {

Views.Base? last_view = null;

static construct {
typeof (Views.MediaViewer).ensure ();
typeof (Views.Sidebar).ensure ();
}

construct {
construct_saveable (settings);

Expand Down
4 changes: 0 additions & 4 deletions src/Dialogs/Preferences.vala
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ public class Tuba.Dialogs.Preferences : Adw.PreferencesDialog {
private bool lang_changed { get; set; default=false; }
private bool privacy_changed { get; set; default=false; }

static construct {
typeof (ColorSchemeListModel).ensure ();
}

construct {
proxy_entry.text = settings.proxy;
post_visibility_combo_row.model = accounts.active.visibility_list;
Expand Down
4 changes: 0 additions & 4 deletions src/Dialogs/ProfileEdit.vala
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ public class Tuba.Dialogs.ProfileEdit : Adw.Dialog {
name = _("All Supported Files")
};

static construct {
typeof (Widgets.CustomEmojiChooser).ensure ();
}

construct {
filter.add_mime_type ("image/jpeg");
filter.add_mime_type ("image/png");
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Network/Streamable.vala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public abstract interface Tuba.Streamable : Object {
public interface Tuba.Streamable : Object {

public struct Event {
public string type;
Expand Down
4 changes: 0 additions & 4 deletions src/Views/MediaViewer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,6 @@ public class Tuba.Views.MediaViewer : Gtk.Widget, Gtk.Buildable, Adw.Swipeable {
}
}

static construct {
typeof (Widgets.ScaleRevealer).ensure ();
}

#if CLAPPER
string clapper_cache_dir;
Gee.HashMap<string, string> clapper_cached_urls;
Expand Down
2 changes: 0 additions & 2 deletions src/Views/Sidebar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public class Tuba.Views.Sidebar : Gtk.Widget, AccountHolder {
}

static construct {
typeof (Widgets.Avatar).ensure ();
typeof (Widgets.EmojiLabel).ensure ();
set_layout_manager_type (typeof (Gtk.BinLayout));
}

Expand Down
8 changes: 0 additions & 8 deletions src/Widgets/Account.vala
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ public class Tuba.Widgets.Account : Gtk.ListBoxRow {
}
}

static construct {
typeof (Widgets.Background).ensure ();
typeof (Widgets.Avatar).ensure ();
typeof (RelationshipButton).ensure ();
typeof (Widgets.EmojiLabel).ensure ();
typeof (Widgets.MarkupView).ensure ();
}

[GtkChild] unowned Widgets.Background background;
[GtkChild] unowned Gtk.Overlay cover_overlay;
[GtkChild] unowned Gtk.Label cover_badge;
Expand Down
4 changes: 0 additions & 4 deletions src/Widgets/PreviewCard.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ public class Tuba.Widgets.PreviewCard : Gtk.Box {
debug ("Destroying PreviewCard");
}

static construct {
typeof (Widgets.PreviewCardInternal).ensure ();
}

[GtkChild] public unowned Gtk.Button button;
[GtkChild] unowned Widgets.PreviewCardInternal box;

Expand Down
4 changes: 0 additions & 4 deletions src/Widgets/PreviewCardExplore.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ public class Tuba.Widgets.PreviewCardExplore : Gtk.ListBoxRow {
debug ("Destroying PreviewCardExplore");
}

static construct {
typeof (Widgets.PreviewCardInternal).ensure ();
}

[GtkChild] unowned Widgets.PreviewCardInternal box;

private string url;
Expand Down
8 changes: 0 additions & 8 deletions src/Widgets/ProfileCover.vala
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
[GtkTemplate (ui = "/dev/geopjr/Tuba/ui/views/profile_header.ui")]
protected class Tuba.Widgets.Cover : Gtk.Box {
static construct {
typeof (Widgets.Background).ensure ();
typeof (Widgets.Avatar).ensure ();
typeof (Widgets.RelationshipButton).ensure ();
typeof (Widgets.EmojiLabel).ensure ();
typeof (Widgets.MarkupView).ensure ();
}

public class MutualsButtonContent : Gtk.Box {
Gtk.Box avi_box;
Widgets.EmojiLabel emoji_label;
Expand Down
7 changes: 0 additions & 7 deletions src/Widgets/Status.vala
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,6 @@
Tuba.toggle_css (this, settings.scale_emoji_hover, "lww-scale-emoji-hover");
}

static construct {
typeof (Widgets.Avatar).ensure ();
typeof (Widgets.RichLabel).ensure ();
typeof (Widgets.MarkupView).ensure ();
typeof (Widgets.FadeBin).ensure ();
}

private void update_collapse () {
fade_bin.reveal = !settings.collapse_long_posts || expanded || enable_thread_lines;
}
Expand Down