Skip to content

Commit 695b657

Browse files
CloneRepositoryDialog: fix warning attaching null widget (#1609)
Co-authored-by: Leonardo Lemos <[email protected]>
1 parent 2e71def commit 695b657

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/Dialogs/CloneRepositoryDialog.vala

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public class Scratch.Dialogs.CloneRepositoryDialog : Granite.MessageDialog {
2020
private Gtk.Button clone_button;
2121
private Gtk.Stack stack;
2222
private Gtk.Spinner spinner;
23-
private Gtk.Revealer revealer;
2423

2524
public bool can_clone { get; private set; default = false; }
2625
public string suggested_local_folder { get; construct; }
@@ -115,18 +114,18 @@ public class Scratch.Dialogs.CloneRepositoryDialog : Granite.MessageDialog {
115114
};
116115
local_project_name_entry.changed.connect (validate_local_name);
117116

118-
var content_box = new Gtk.Grid ();
119-
content_box.attach (new CloneEntry (_("Repository URL"), remote_repository_uri_entry), 0, 0);
120-
content_box.attach (new CloneEntry (_("Location"), folder_chooser_button), 0, 1);
121-
content_box.attach (new CloneEntry (_("Name of Clone"), local_project_name_entry), 0, 2);
122-
content_box.attach (revealer, 1, 2);
117+
var content_box = new Gtk.Box (VERTICAL, 0);
118+
content_box.add (new CloneEntry (_("Repository URL"), remote_repository_uri_entry));
119+
content_box.add (new CloneEntry (_("Location"), folder_chooser_button));
120+
content_box.add (new CloneEntry (_("Name of Clone"), local_project_name_entry));
121+
122+
var cloning_label = new Granite.HeaderLabel (_("Cloning in progress"));
123+
spinner = new Gtk.Spinner ();
123124

124125
var cloning_box = new Gtk.Box (HORIZONTAL, 12) {
125126
valign = CENTER,
126127
halign = CENTER
127128
};
128-
var cloning_label = new Granite.HeaderLabel (_("Cloning in progress"));
129-
spinner = new Gtk.Spinner ();
130129
cloning_box.add (cloning_label);
131130
cloning_box.add (spinner);
132131

0 commit comments

Comments
 (0)