summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/gtk/bookmark_utils_gtk.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.cc b/chrome/browser/gtk/bookmark_utils_gtk.cc
index 893ef7a..16d1c7f 100644
--- a/chrome/browser/gtk/bookmark_utils_gtk.cc
+++ b/chrome/browser/gtk/bookmark_utils_gtk.cc
@@ -124,8 +124,13 @@ void ConfigureButtonForNode(const BookmarkNode* node, BookmarkModel* model,
std::string label_string = WideToUTF8(node->GetTitle());
if (!label_string.empty()) {
GtkWidget* label = gtk_label_new(label_string.c_str());
- gtk_label_set_max_width_chars(GTK_LABEL(label), kMaxCharsOnAButton);
- gtk_label_set_ellipsize(GTK_LABEL(label), PANGO_ELLIPSIZE_END);
+
+ // Ellipsize long bookmark names.
+ if (node != model->other_node()) {
+ gtk_label_set_max_width_chars(GTK_LABEL(label), kMaxCharsOnAButton);
+ gtk_label_set_ellipsize(GTK_LABEL(label), PANGO_ELLIPSIZE_END);
+ }
+
gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 0);
SetButtonTextColors(label, provider);
}