Ellipsize the filename if too long

Fix #9
This commit is contained in:
Romain Failliot 2016-07-26 00:02:03 -04:00
parent e77d60fd1d
commit 9723b5c6bc
1 changed files with 3 additions and 1 deletions

View File

@ -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()