[gnome-color-manager] trivial: map 'Hewlett-Packard' to 'Hewlett Packard' also
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: map 'Hewlett-Packard' to 'Hewlett Packard' also
- Date: Thu, 31 Mar 2011 10:45:10 +0000 (UTC)
commit 8d76864e8184e248fd65ea231dbdabf714dda593
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 31 10:48:07 2011 +0100
trivial: map 'Hewlett-Packard' to 'Hewlett Packard' also
How can one company have so many names...
src/gcm-prefs.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 6bad59a..2b4a90b 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1592,7 +1592,8 @@ gcm_device_get_title (CdDevice *device)
gcm_device_title_remove_suffix (vendor, "Co.");
/* correct some company names */
- if (g_str_has_prefix (vendor->str, "HP "))
+ if (g_str_has_prefix (vendor->str, "HP ") ||
+ g_strcmp0 (vendor->str, "Hewlett-Packard") == 0)
g_string_assign (vendor, "Hewlett Packard");
if (g_str_has_prefix (vendor->str, "LENOVO"))
g_string_assign (vendor, "Lenovo");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]