[gnome-control-center] search: Ellipsize the labels



commit 60973f3a821b9bcd9362b605ac19457bb2cdfb0b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue Nov 27 09:22:17 2018 +0100

    search: Ellipsize the labels
    
    This will help the window to fit narrow screens even with long
    application names.

 panels/search/cc-search-panel.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/search/cc-search-panel.c b/panels/search/cc-search-panel.c
index e0f16f38c..9f0ae8510 100644
--- a/panels/search/cc-search-panel.c
+++ b/panels/search/cc-search-panel.c
@@ -464,6 +464,8 @@ search_panel_add_one_app_info (CcSearchPanel *self,
 
   w = gtk_label_new (g_app_info_get_name (app_info));
   gtk_widget_show (w);
+  gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
+  gtk_label_set_xalign (GTK_LABEL (w), 0.0f);
   gtk_container_add (GTK_CONTAINER (box), w);
 
   w = gtk_switch_new ();


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