diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-07-19 20:36:04 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-07-19 20:36:04 -0400 |
commit | 555279e61bb0bcba02ccd16ff14ec07bcb08025e (patch) | |
tree | c59818c6bbd2181fc171d1498b48520aae3d432f | |
parent | 9de06587d2e776ae08b1ff0b37941fea149b1183 (diff) | |
download | nautilus-555279e61bb0bcba02ccd16ff14ec07bcb08025e.tar.gz |
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
-rw-r--r-- | 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 97589783b..75acd5dff 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); } |