[gnome-software] extras: Display a better human readable title for printer drivers



commit f7ca2ed4dbd63b1b52eb47f6f8e53859acc7005d
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun May 10 22:43:16 2015 +0200

    extras: Display a better human readable title for printer drivers
    
    Instead of "Hewlett-Packard;LaserJet 5p;" show "Hewlett-Packard
    LaserJet 5p" in user facing messages.

 src/gs-shell-extras.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-extras.c b/src/gs-shell-extras.c
index 93f235b..baab40d 100644
--- a/src/gs-shell-extras.c
+++ b/src/gs-shell-extras.c
@@ -918,7 +918,7 @@ gs_shell_extras_search_printer_drivers (GsShellExtras *shell_extras, gchar **dev
                tag = g_strconcat (mfg, ";", mdl, ";", NULL);
 
                search_data = g_slice_new0 (SearchData);
-               search_data->title = g_strdup (tag);
+               search_data->title = g_strdup_printf ("%s %s", mfg, mdl);
                search_data->search = g_ascii_strdown (tag, -1);
 
                /* Replace spaces with underscores */


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