changeset 1355:5a61fb9adc05

Add an ellipse when the file name is truncated.
author zas_
date Sun, 01 Mar 2009 15:28:06 +0000
parents d5fec01ce866
children 681e79dd0820
files src/bar.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar.c	Sun Mar 01 15:15:37 2009 +0000
+++ b/src/bar.c	Sun Mar 01 15:28:06 2009 +0000
@@ -357,6 +357,7 @@
 	gtk_widget_show(sizer);
 
 	bd->label_file_name = gtk_label_new("");
+	gtk_label_set_ellipsize(GTK_LABEL(bd->label_file_name), PANGO_ELLIPSIZE_END);
 	gtk_label_set_selectable(GTK_LABEL(bd->label_file_name), TRUE);
 	gtk_misc_set_alignment(GTK_MISC(bd->label_file_name), 0.5, 0.5);
 	gtk_box_pack_start(GTK_BOX(box), bd->label_file_name, TRUE, TRUE, 0);