[gnome-calculator] Ellipsize equation in search provider instead of result (bgo#759876)



commit dbbd590702f44376b72e331a3904aab39ad7d8dc
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Jan 24 01:10:39 2018 +0200

    Ellipsize equation in search provider instead of result (bgo#759876)

 search-provider/search-provider.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/search-provider/search-provider.vala b/search-provider/search-provider.vala
index 88d80d6..26c72af 100644
--- a/search-provider/search-provider.vala
+++ b/search-provider/search-provider.vala
@@ -113,7 +113,8 @@ public class SearchProvider : Object
         var metadata = new HashTable<string, Variant>[1];
         metadata[0] = new HashTable<string, Variant>(str_hash, str_equal);
         metadata[0].insert ("id", results[0]);
-        metadata[0].insert ("name", results[0] + " = " + stdout_buf);
+        metadata[0].insert ("name", results[0] );
+        metadata[0].insert ("description", " = " + stdout_buf.strip() );
 
         return metadata;
     }


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