[nautilus] pathbar: set single line mode for pathbar button labels



commit 555279e61bb0bcba02ccd16ff14ec07bcb08025e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Jul 19 20:36:04 2012 -0400

    pathbar: set single line mode for pathbar button labels
    
    We never want these buttons to have more than a single line of text.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680289

 src/nautilus-pathbar.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 9758978..75acd5d 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1677,9 +1677,11 @@ make_button_data (NautilusPathBar  *path_bar,
 
 	if (button_data->label != NULL) {
 		gtk_label_set_ellipsize (GTK_LABEL (button_data->label), PANGO_ELLIPSIZE_MIDDLE);
+		gtk_label_set_single_line_mode (GTK_LABEL (button_data->label), TRUE);
 
 		button_data->bold_label = gtk_label_new (NULL);
 		gtk_widget_set_no_show_all (button_data->bold_label, TRUE);
+		gtk_label_set_single_line_mode (GTK_LABEL (button_data->bold_label), TRUE);
 		gtk_box_pack_start (GTK_BOX (child), button_data->bold_label, FALSE, FALSE, 0);
 	}
 



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