diff --git a/ebt/Application.vala b/ebt/Application.vala
index 939f6917..94c3446c 100644
--- a/ebt/Application.vala
+++ b/ebt/Application.vala
@@ -235,7 +235,7 @@ public class BluetoothApp : Gtk.Application {
});
});
Bluetooth.Device device = object_manager.get_device (address);
- var devicename = device.name;
+ var devicename = device.alias;
var deviceicon = device.icon;
bt_receiver.set_transfer (
devicename == null ? get_device_description_from_icon (device) : devicename,
@@ -246,7 +246,7 @@ public class BluetoothApp : Gtk.Application {
private void response_notify (string address, GLib.ObjectPath objectpath) {
Bluetooth.Device device = object_manager.get_device (address);
- var devicename = device.name;
+ var devicename = device.alias;
var deviceicon = device.icon;
try {
transfer = Bus.get_proxy_sync (BusType.SESSION, "org.bluez.obex", objectpath);
diff --git a/ebt/Dialog/BtSender.vala b/ebt/Dialog/BtSender.vala
index 0da04756..dd165df9 100644
--- a/ebt/Dialog/BtSender.vala
+++ b/ebt/Dialog/BtSender.vala
@@ -223,9 +223,9 @@ public class BtSender : Granite.Dialog {
"org.bluez.obex.Client1"
);
path_label.set_markup (GLib.Markup.printf_escaped (_("From: %s"), file_path.get_parent ().get_path ()));
- device_label.set_markup (GLib.Markup.printf_escaped (_("To: %s"), device.name));
+ device_label.set_markup (GLib.Markup.printf_escaped (_("To: %s"), device.alias));
icon_label.set_from_gicon (new ThemedIcon (device.icon == null? "bluetooth" : device.icon), Gtk.IconSize.LARGE_TOOLBAR);
- progress_label.label = _("Trying to connect to %s…").printf (device.name);
+ progress_label.label = _("Trying to connect to %s…").printf (device.alias);
VariantBuilder builder = new VariantBuilder (VariantType.DICTIONARY);
builder.add ("{sv}", "Target", new Variant.string ("opp"));
Variant parameters = new Variant ("(sa{sv})", device.address, builder);
@@ -243,7 +243,7 @@ public class BtSender : Granite.Dialog {
} catch (Error e) {
hide_on_delete ();
var bt_retry = new Granite.MessageDialog (
- _("Connecting to '%s' failed.").printf (device.name),
+ _("Connecting to '%s' failed.").printf (device.alias),
"%s\n%s".printf (
_("The transfer of '%s' failed.").printf (
file_path.get_basename ()
@@ -283,9 +283,9 @@ public class BtSender : Granite.Dialog {
}
private async void send_file () {
path_label.set_markup (GLib.Markup.printf_escaped (_("From: %s"), file_path.get_parent ().get_path ()));
- device_label.set_markup (GLib.Markup.printf_escaped (_("To: %s"), device.name));
+ device_label.set_markup (GLib.Markup.printf_escaped (_("To: %s"), device.alias));
icon_label.set_from_gicon (new ThemedIcon (device.icon == null? "bluetooth" : device.icon), Gtk.IconSize.LARGE_TOOLBAR);
- progress_label.label = _("Waiting for acceptance on %s…").printf (device.name);
+ progress_label.label = _("Waiting for acceptance on %s…").printf (device.alias);
try {
Variant variant = yield session.call ("SendFile", new Variant ("(s)", file_path.get_path ()), GLib.DBusCallFlags.NONE, -1);
start_time = (int) get_real_time ();
@@ -310,7 +310,7 @@ public class BtSender : Granite.Dialog {
_("The transfer of '%s' failed.").printf (file_path.get_basename ()),
"%s\n%s".printf (
_("The transfer was interrupted or it was declined by %s.").printf (
- device.name
+ device.alias
),
_("The file has not been transferred")
),
@@ -356,7 +356,7 @@ public class BtSender : Granite.Dialog {
notification.set_icon (new ThemedIcon (device.icon));
notification.set_priority (NotificationPriority.NORMAL);
notification.set_title (_("File transferred successfully"));
- notification.set_body (GLib.Markup.printf_escaped (_("From: %s Send to: %s"), file_path.get_path (), device.name));
+ notification.set_body (GLib.Markup.printf_escaped (_("From: %s Send to: %s"), file_path.get_path (), device.alias));
((Gtk.Window)get_toplevel ()).application.send_notification ("io.elementary.bluetooth", notification);
}
diff --git a/ebt/Dialog/DeviceRow.vala b/ebt/Dialog/DeviceRow.vala
index a8882f37..0cfaf044 100644
--- a/ebt/Dialog/DeviceRow.vala
+++ b/ebt/Dialog/DeviceRow.vala
@@ -54,7 +54,7 @@ public class DeviceRow : Gtk.ListBoxRow {
overlay.add (image);
overlay.add_overlay (state);
- string? device_name = device.name;
+ string? device_name = device.alias;
if (device_name == null) {
if (device.icon != null) {
device_name = device_icon ();
@@ -106,7 +106,7 @@ public class DeviceRow : Gtk.ListBoxRow {
var name = changed.lookup_value ("Name", new VariantType ("s"));
if (name != null) {
- label.label = device.name;
+ label.label = device.alias;
}
var icon = changed.lookup_value ("Icon", new VariantType ("s"));
diff --git a/src/Widgets/Device.vala b/src/Widgets/Device.vala
index a672b5c3..3f03bdbf 100644
--- a/src/Widgets/Device.vala
+++ b/src/Widgets/Device.vala
@@ -234,7 +234,7 @@ public class BluetoothIndicator.Widgets.Device : Gtk.ListBoxRow {
}
private void update_status () {
- string? device_name = device.name;
+ string? device_name = device.alias;
if (device_name == null) {
if (device.icon != null) {
switch (device.icon) {