Commit 17527cfe authored by Michael Terry's avatar Michael Terry

some updates for valac 0.17.4 warnings

parent 1c119d1b
......@@ -46,7 +46,7 @@ class Listener : Object
public void run()
{
Idle.add(() => {
call_but_quit_on_fail();
call_but_quit_on_fail.begin();
return false;
});
proxy.g_signal.connect(handle_dbus_signal);
......@@ -233,7 +233,7 @@ public class BackendU1 : Backend
void button_clicked()
{
sign_in();
sign_in.begin();
}
void ask_password() {
......
......@@ -179,7 +179,7 @@ public abstract class Operation : Object
/*
* Connect Deja Dup to signals
*/
job.done.connect((d, o, c, detail) => {operation_finished(d, o, c, detail);});
job.done.connect((d, o, c, detail) => {operation_finished.begin(d, o, c, detail);});
job.raise_error.connect((d, s, detail) => {raise_error(s, detail);});
job.action_desc_changed.connect((d, s) => {action_desc_changed(s);});
job.action_file_changed.connect((d, f, b) => {action_file_changed(f, b);});
......
......@@ -33,7 +33,7 @@ public class OperationBackup : Operation
if (success)
DejaDup.update_last_run_timestamp(DejaDup.TimestampType.BACKUP);
base.operation_finished(job, success, cancelled, detail);
yield base.operation_finished(job, success, cancelled, detail);
}
protected override List<string>? make_argv()
......
......@@ -49,7 +49,7 @@ public class OperationRestore : Operation
public async override void start()
{
action_desc_changed(_("Restoring files…"));
base.start();
yield base.start();
}
protected override void connect_to_job()
......@@ -70,7 +70,7 @@ public class OperationRestore : Operation
if (success)
DejaDup.update_last_run_timestamp(DejaDup.TimestampType.RESTORE);
base.operation_finished(job, success, cancelled, detail);
yield base.operation_finished(job, success, cancelled, detail);
}
}
......
......@@ -270,11 +270,11 @@ public abstract class Assistant : Gtk.Window
}
}
Gtk.Button add_button(string stock, int response)
Gtk.Button add_button(string stock, int response_id)
{
var btn = new Gtk.Button.from_stock(stock);
btn.can_default = true;
btn.clicked.connect(() => {this.response(response);});
btn.clicked.connect(() => {this.response(response_id);});
btn.show();
button_box.pack_end(btn, false, true, 0);
return btn;
......
......@@ -550,7 +550,7 @@ public abstract class AssistantOperation : Assistant
ensure_status_icon(op);
op.start();
op.start.begin();
}
protected virtual void do_prepare(Assistant assist, Gtk.Widget page)
......@@ -586,7 +586,7 @@ public abstract class AssistantOperation : Assistant
provide_password();
}
else if (op == null)
do_apply();
do_apply.begin();
}
else if (page == password_page)
set_header_icon(Gtk.Stock.DIALOG_AUTHENTICATION);
......
......@@ -393,7 +393,7 @@ public class AssistantRestore : AssistantOperation
op.backend.mount_op = new MountOperationAssistant(this);
op.backend.pause_op.connect(pause_op);
op.start();
op.start.begin();
}
protected override void do_prepare(Assistant assist, Gtk.Widget page)
......@@ -494,7 +494,7 @@ public class AssistantRestore : AssistantOperation
provide_password();
}
else if (query_op == null)
do_query();
do_query.begin();
}
}
}
......
......@@ -240,7 +240,7 @@ public class AssistantRestoreMissing : AssistantRestore {
provide_password();
}
else if (!backups_queue_filled) {
do_query();
do_query.begin();
}
}
......@@ -332,7 +332,7 @@ public class AssistantRestoreMissing : AssistantRestore {
var begin = backups_queue.get_begin_iter();
var etime = begin.get();
backups_queue.remove(begin);
Sequence<Time?>.remove(begin);
/* Update progress */
int tepoch = int.parse(etime.format("%s"));
......@@ -381,7 +381,7 @@ public class AssistantRestoreMissing : AssistantRestore {
op.set_state(op_state); // share state between ops
query_op_files.start();
query_op_files.start.begin();
}
protected override void query_finished(DejaDup.Operation op, bool success, bool cancelled, string? detail)
......@@ -433,7 +433,7 @@ public class AssistantRestoreMissing : AssistantRestore {
if (success) {
succeeded = true;
if (this.restore_files_remaining != null) {
base.do_apply();
base.do_apply.begin();
} else {
go_to_page(summary_page);
}
......
......@@ -237,13 +237,13 @@ static void prepare_run(TimeSpan wait_time)
if (wait_time > 0 && secs > 0) {
debug("Waiting %ld seconds until next backup.", (long)secs);
timeout_id = Timeout.add_seconds((uint)secs, () => {
kickoff();
kickoff.begin();
return false;
});
}
else {
debug("Late by %ld seconds. Backing up now.", (long)(secs * -1));
kickoff();
kickoff.begin();
}
}
......@@ -319,7 +319,7 @@ static int main(string[] args)
if (!DejaDup.initialize(null, null))
return 1;
DejaDup.Network.ensure_status();
DejaDup.Network.ensure_status.begin();
DejaDup.Network.get().notify["connected"].connect(network_changed);
Bus.watch_name(BusType.SESSION, "org.gnome.DejaDup.Operation",
......
......@@ -38,7 +38,7 @@ public class ConfigBool : ConfigWidget, Togglable
button = new Gtk.CheckButton.with_mnemonic(label);
add(button);
set_from_config();
set_from_config.begin();
button.toggled.connect(handle_toggled);
}
......
......@@ -39,7 +39,7 @@ public class ConfigChoice : ConfigWidget
combo.model = model;
this.settings_col = settings_col;
set_from_config();
set_from_config.begin();
combo.changed.connect(handle_changed);
}
......
......@@ -46,7 +46,7 @@ public class ConfigEntry : ConfigWidget
add(entry);
mnemonic_widget = entry;
set_from_config();
set_from_config.begin();
entry.focus_out_event.connect(handle_focus_out);
}
......
......@@ -36,7 +36,7 @@ public class ConfigLabel : ConfigWidget
box.column_spacing = 6;
add(box);
fill_box();
set_from_config();
set_from_config.begin();
}
protected virtual void fill_box()
......
......@@ -42,7 +42,7 @@ public class ConfigLabelLocation : ConfigLabel
watch_key(null, (s3_root = DejaDup.get_settings(S3_ROOT)));
watch_key(null, (u1_root = DejaDup.get_settings(U1_ROOT)));
watch_key(null, (rackspace_root = DejaDup.get_settings(RACKSPACE_ROOT)));
set_from_config();
set_from_config.begin();
}
protected override void fill_box()
......
......@@ -205,7 +205,7 @@ public class ConfigList : ConfigWidget
key_press_event.connect(on_key_press_event);
set_from_config();
set_from_config.begin();
handle_selection_change(selection);
selection.changed.connect(handle_selection_change);
}
......
......@@ -159,7 +159,7 @@ public class ConfigLocation : ConfigWidget
mnemonic_widget = button;
button.set_active(0); // worst case, activate first entry
set_from_config();
set_from_config.begin();
set_location_widgets();
button.changed.connect(handle_changed);
......
......@@ -36,7 +36,7 @@ public class ConfigNumber : ConfigWidget
spin = new Gtk.SpinButton.with_range(lower_bound, upper_bound, 1);
add(spin);
set_from_config();
set_from_config.begin();
spin.value_changed.connect(handle_value_changed);
}
......
......@@ -36,7 +36,7 @@ public class ConfigSwitch : ConfigWidget, Togglable
button = new Gtk.Switch();
add(button);
set_from_config();
set_from_config.begin();
button.notify["active"].connect(handle_toggled);
}
......
......@@ -31,7 +31,7 @@ public class ConfigURLPartBool : ConfigBool
get {return _test_active;}
set {
_test_active = value;
set_from_config();
set_from_config.begin();
}
}
......
......@@ -66,7 +66,7 @@ public abstract class ConfigWidget : Gtk.EventBox
static bool key_changed_wrapper(ConfigWidget w)
{
w.key_changed();
w.key_changed.begin();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment