[gnome-desktop] You never find a hackstack in a needle...



commit b015e5702c3348b2d02ab5e75c47e5fbe1f2ef41
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 29 10:44:48 2009 -0400

    You never find a hackstack in a needle...
    
    This makes the display name heuristics work much better and makes
    my monitor not 'Unknown' anymore.
---
 libgnome-desktop/display-name.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libgnome-desktop/display-name.c b/libgnome-desktop/display-name.c
index 1ec8b67..e0b1676 100644
--- a/libgnome-desktop/display-name.c
+++ b/libgnome-desktop/display-name.c
@@ -205,10 +205,11 @@ make_display_name (const char *output_name,
     const char *vendor;
     int width_mm, height_mm, inches;
 
+    g_print ("output name %s, vendor %s\n", output_name, info ? info->manufacturer_code : "nada");
     if (output_name &&
-	(strstr ("lvds", output_name)	||
-	 strstr ("LVDS", output_name)	||
-	 strstr ("Lvds", output_name)))
+	(strstr (output_name, "lvds")	||
+	 strstr (output_name, "LVDS")	||
+	 strstr (output_name, "Lvds")))
     {
 	vendor = _("Laptop");
     }



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