[gnome-boxes] wizard-source: Ellipsize URLs in completion popup



commit 4ba47a44a0af74c8d99c05c4a0317797cfcc6618
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 17 17:00:57 2015 +0000

    wizard-source: Ellipsize URLs in completion popup
    
    So that completion popup isn't larger than its associated URL entry.

 src/wizard-source.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index f6882d7..78f8159 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -189,6 +189,8 @@ private class Boxes.WizardSource: Gtk.Stack {
                 var completion = new Gtk.EntryCompletion ();
                 completion.text_column = 0;
                 completion.model = url_store;
+                weak Gtk.CellRendererText cell = completion.get_cells ().nth_data (0) as 
Gtk.CellRendererText;
+                cell.ellipsize = Pango.EllipsizeMode.START;
                 completion.set_match_func ((store, key, iter) => {
                     string url;
 


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