shell: Avoid width changes when searching

In some locales, the description will be too long, so
ellipsise it to avoid the window changing width.

https://bugzilla.gnome.org/show_bug.cgi?id=706626
This commit is contained in:
Bastien Nocera 2013-08-23 18:02:14 +02:00 committed by Matthias Clasen
parent 11c4844e56
commit 7bfc2f64f4

View file

@ -790,6 +790,7 @@ setup_search (CcWindow *shell)
gd_styled_text_renderer_add_class (GD_STYLED_TEXT_RENDERER (renderer), "dim-label");
g_object_set (renderer,
"xpad", 15,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
column = gtk_tree_view_column_new_with_attributes ("Description", renderer,
"text", COL_DESCRIPTION,