Skip to content

Commit

Permalink
Add an ellipse when the file name is truncated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Mar 1, 2009
1 parent 138449b commit 2a3788f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ GtkWidget *bar_new(GtkWidget *bounding_widget)
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);
Expand Down

0 comments on commit 2a3788f

Please sign in to comment.