summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-11-24 08:15:19 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-11-24 08:15:19 +0000
commit88b96295bd722e8df58d2cb382057a8753c41bcb (patch)
tree6a949c50bcae36a48567f7892a56f9b2859c0506 /src
parent47148a9e76e1a71c01b82cf107fd735e465f3355 (diff)
downloadnautilus-88b96295bd722e8df58d2cb382057a8753c41bcb.tar.gz
Ellipsice location menu button at 16 chars. Patch from Tom Parker
2006-11-24 Alexander Larsson <alexl@redhat.com> * src/nautilus-spatial-window.c: Ellipsice location menu button at 16 chars. Patch from Tom Parker
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-spatial-window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c
index 205f28120..525e7b23b 100644
--- a/src/nautilus-spatial-window.c
+++ b/src/nautilus-spatial-window.c
@@ -85,6 +85,7 @@
#include <sys/time.h>
#define MAX_TITLE_LENGTH 180
+#define MAX_SHORTNAME_PATH 16
#define SPATIAL_ACTION_PLACES "Places"
#define SPATIAL_ACTION_GO_TO_LOCATION "Go to Location"
@@ -939,6 +940,8 @@ nautilus_spatial_window_instance_init (NautilusSpatialWindow *window)
gtk_widget_show (window->details->location_icon);
window->details->location_label = gtk_label_new ("");
+ gtk_label_set_ellipsize (GTK_LABEL (window->details->location_label), PANGO_ELLIPSIZE_END);
+ gtk_label_set_max_width_chars (GTK_LABEL (window->details->location_label), MAX_SHORTNAME_PATH);
gtk_box_pack_start (GTK_BOX (hbox), window->details->location_label,
FALSE, FALSE, 0);
gtk_widget_show (window->details->location_label);