Commit 21745f11 authored by António Fernandes's avatar António Fernandes 🐚

notebook: Set minimum witdh for tabs

Currently, when there are many tabs, the tab label is fully
ellipsized into an ellipsis.

An ellipsis is not a useful tab label.

Instead, set a minimum of 6 characters for the tab label.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=737372
parent 43d7caf3
Pipeline #3355 passed with stage
in 7 minutes and 49 seconds
......@@ -320,6 +320,7 @@ build_tab_label (NautilusNotebook *notebook,
label = gtk_label_new (NULL);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
gtk_label_set_single_line_mode (GTK_LABEL (label), TRUE);
gtk_label_set_width_chars (GTK_LABEL (label), 6);
gtk_box_set_center_widget (GTK_BOX (box), label);
gtk_widget_show (label);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment