From 9723b5c6bc08b6f97fb4137cf390b1808a19ab97 Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Tue, 26 Jul 2016 00:02:03 -0400 Subject: [PATCH] Ellipsize the filename if too long Fix #9 --- src/usr/bin/diffuse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/diffuse b/src/usr/bin/diffuse index 1e54a82..4988b78 100755 --- a/src/usr/bin/diffuse +++ b/src/usr/bin/diffuse @@ -6890,7 +6890,9 @@ class Diffuse(Gtk.Window): [ Gtk.STOCK_SAVE_AS, self.button_cb, 'save_as', _('Save File As...') ] ]) self.label = label = Gtk.Label.new() - label.set_size_request(0, label.get_size_request()[1]) + label.set_ellipsize(Pango.EllipsizeMode.START) + label.set_max_width_chars(1) + self.pack_start(label, True, True, 0) label.show()