[nautilus/bz737372-set-min-tab-width: 17/17] notebook: Set minimum witdh for tabs
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/bz737372-set-min-tab-width: 17/17] notebook: Set minimum witdh for tabs
- Date: Tue, 13 Feb 2018 17:46:00 +0000 (UTC)
commit 21745f111dede692a534e2eff586e199d4c58eb2
Author: António Fernandes <antoniof gnome org>
Date: Fri Feb 9 16:49:39 2018 +0000
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
src/nautilus-notebook.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index 4852ca7cc..4c97f280a 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]