// Widgets
Hildon.Button button;
+ Gtk.Label log_label;
// Icons
Gdk.Pixbuf icon_connecting;
/* var status = */ source.read_line (out line, out length, null);
tor_log += line;
+ if (log_label != null)
+ log_label.label = tor_log;
+
if ("[notice]" in line) {
if ("Bootstrapped 100%" in line) {
tor_connected = true;
}
tor_log = "";
+ if (log_label != null)
+ log_label.label = tor_log;
update_status ();
}
var pannable = new Hildon.PannableArea ();
pannable.mov_mode = Hildon.MovementMode.BOTH;
- var label = new Gtk.Label (tor_log);
- pannable.add_with_viewport (label);
+ log_label = new Gtk.Label (tor_log);
+ log_label.set_alignment (0, 0);
+ pannable.add_with_viewport (log_label);
content.pack_start (pannable, true, true, 0);
+ dialog.response.connect (() => {
+ log_label = null;
+ });
+
dialog.show_all ();
}
add (button);
+ log_label = null;
+
// Status area icon
update_status ();