Bateck / gedit-ftp-browser

Automatically exported from code.google.com/p/gedit-ftp-browser
0 stars 0 forks source link

Path line issue #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I've this issue: When i go in deeper into ftp paths, the path line (unde 
the home, save menu) gets longer, and improves the width of side panel, and it 
can't be lowered because it's too long.

Can that be trimmed like this?

domains/domain.com/publ......foo/bar/

Original issue reported on code.google.com by soulsmas...@gmail.com on 29 Jun 2010 at 11:57

GoogleCodeExporter commented 8 years ago
To "fix" this behaviour I got rid of the path line altogether by commenting the 
following lines in FTP.py:

#location label
self.location = gtk.Label(helper.ftp_cwd)
# I commented the following 4 lines. -Nathan
#self.location.set_line_wrap(True)
#self.location.set_justify(gtk.JUSTIFY_LEFT)
#self.location.set_alignment(0,0.5)
#self.pack_start(self.location, False, False).

Strangely, when the line "self.location=gtk.Label(helper.ftp_cwd)" is 
commented, the treeview no longer displays any of the ftp directories - so make 
sure not to comment that line.

This isn't a true fix obviously but I wasn't able to figure out how to truncate 
the path or possibly wrap it to the next line. Anyway, I hope that what I've 
done is useful as a temporary workaround at least.

Original comment by nhi...@gmail.com on 4 Aug 2010 at 5:40

GoogleCodeExporter commented 8 years ago
@nhitch - Thanks for the temporary fix. Appreciated.

Original comment by soulsmas...@gmail.com on 4 Aug 2010 at 7:01

GoogleCodeExporter commented 8 years ago
Fixed using pango to insert ellipses in the middle of long paths.

Original comment by linuxar...@gmail.com on 24 Apr 2011 at 2:53