Commit b0a3f7e7 authored by Michael Terry's avatar Michael Terry

GOA: Show "Google Drive" instead of "Google"

parent 505cf31e
......@@ -260,7 +260,7 @@ public class ConfigLocation : ConfigWidget
}
catch (Error e) {warning("%s", e.message);}
add_entry(icon,
"%s <i>(%s)</i>".printf(account.provider_name,
"%s <i>(%s)</i>".printf(BackendGOA.get_provider_name(account),
account.presentation_identity),
Group.GOA,
new ConfigLocationGoa(label_sizes, all_settings[GOA_ROOT], account),
......
......@@ -85,13 +85,25 @@ public class BackendGOA : BackendRemote
return File.new_for_uri(files.uri);
}
public static string get_provider_name(Goa.Account account)
{
// Use this until GNOME bug 787413 is fixed, which asks for service-
// specific branding to be exposed.
switch (account.provider_type) {
case "google":
return _("Google Drive");
default:
return account.provider_name;
}
}
public override string get_location_pretty()
{
var obj = get_object_from_settings();
if (obj == null)
return "";
var account = obj.get_account();
return "%s (%s)".printf(account.provider_name, account.presentation_identity);
return "%s (%s)".printf(get_provider_name(account), account.presentation_identity);
}
public override async bool is_ready(out string when)
......
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