[PATCH 2/2] Use the detailed product name for display name, if available.



---
 libgnome-desktop/display-name.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/libgnome-desktop/display-name.c b/libgnome-desktop/display-name.c
index 6ccb8c2..65de613 100644
--- a/libgnome-desktop/display-name.c
+++ b/libgnome-desktop/display-name.c
@@ -214,7 +214,14 @@ make_display_name (const char *output_name,
     }
     else if (info)
     {
-	vendor = find_vendor (info->manufacturer_code);
+	if (info->dsc_product_name)
+	{
+	    vendor = info->dsc_product_name;
+	}
+	else
+	{
+	    vendor = find_vendor (info->manufacturer_code);
+	}
     }
     else
     {
-- 
1.6.2.2



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]