Skip to content

Commit 05211ea

Browse files
committed
fix comments
1 parent 57c30f5 commit 05211ea

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/Frontend/MainWindow.vala

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ class Taxi.MainWindow : Gtk.ApplicationWindow {
3131
private FilePane remote_pane;
3232
private GLib.Uri conn_uri;
3333
private Gtk.Popover bookmark_popover;
34-
private Granite.Placeholder welcome_box;
35-
private Gtk.Label title_label;
34+
private Granite.Placeholder welcome;
3635

3736
public MainWindow (
3837
Gtk.Application application,
@@ -116,18 +115,11 @@ class Taxi.MainWindow : Gtk.ApplicationWindow {
116115
header_bar.pack_start (spinner_revealer);
117116
header_bar.pack_start (bookmark_menu_button);
118117

119-
var app_icon = new Gtk.Image.from_icon_name ("com.github.alecaddd.taxi") {
120-
pixel_size = 64
121-
};
122-
123-
title_label = new Gtk.Label (_("Connect"));
124-
title_label.add_css_class (Granite.STYLE_CLASS_H1_LABEL);
125-
126118
var description_label = new Gtk.Label (_("Type a URL and press 'Enter' to\nconnect to a server.")) {
127119
justify = CENTER
128120
};
129121

130-
welcome_box = new Granite.Placeholder (_("Connect")) {
122+
welcome = new Granite.Placeholder (_("Connect")) {
131123
description = _("Type a URL and press 'Enter' to\nconnect to a server."),
132124
};
133125

@@ -200,7 +192,7 @@ class Taxi.MainWindow : Gtk.ApplicationWindow {
200192
conn_uri = uri;
201193
} else {
202194
alert_stack.visible_child = welcome_box;
203-
title_label.label = _("Could not connect to '%s'").printf (uri.to_string ());
195+
welcome.title = _("Could not connect to '%s'").printf (uri.to_string ());
204196
}
205197
hide_spinner ();
206198
});

0 commit comments

Comments
 (0)