[nautilus] floating-bar: ellipsize the description label
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] floating-bar: ellipsize the description label
- Date: Fri, 18 Feb 2011 23:29:38 +0000 (UTC)
commit 56b249cc804bcea81d0308afe45ac2e5084dc6d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 18 18:28:55 2011 -0500
floating-bar: ellipsize the description label
Until we have a better way to truncate it at the right point when
there's not enough space.
src/nautilus-floating-bar.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-floating-bar.c b/src/nautilus-floating-bar.c
index 48995fc..10d8dfd 100644
--- a/src/nautilus-floating-bar.c
+++ b/src/nautilus-floating-bar.c
@@ -196,6 +196,7 @@ nautilus_floating_bar_constructed (GObject *obj)
gtk_widget_set_margin_left (w, 8);
w = gtk_label_new (NULL);
+ gtk_label_set_ellipsize (GTK_LABEL (w), PANGO_ELLIPSIZE_END);
gtk_box_pack_start (GTK_BOX (box), w, FALSE, FALSE, 0);
g_object_set (w,
"margin-top", 6,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]