GNOME Bugzilla – Bug 328723
long file names in the download manager don't get shortened
Last modified: 2006-02-26 21:09:04 UTC
Please describe the problem: Long file names in the download manager don't get shortened, which makes a scroll bar appear so that I can't see the time remaining. Screenshot here: http://www.xs4all.nl/%7Evanlonen/epiphany_download.jpg Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
I think we could just ellipsise the string... middle or end?
middle, that way we get the file extension showing
Created attachment 59787 [details] [review] the "ellipsize" property for 2nd column of Downloads window I have written patch that set "ellipsize" property to the second column of Download window. It should work, if not, tell me.
Comment on attachment 59787 [details] [review] the "ellipsize" property for 2nd column of Downloads window >Index: ChangeLog >=================================================================== >RCS file: /cvs/gnome/epiphany/ChangeLog,v >retrieving revision 1.3059 >diff -u -p -r1.3059 ChangeLog >--- ChangeLog 20 Feb 2006 19:23:20 -0000 1.3059 >+++ ChangeLog 20 Feb 2006 20:10:42 -0000 >@@ -1,3 +1,10 @@ >+2006-02-20 Sergey Al. Safonov <spoof@spoofa.info> >+ >+ * embed/downloader-view.c: (downloader_view_build_ui): >+ >+ Ellipsize second column for download window. >+ Fix for the bug #328723 >+ > 2006-02-20 Christian Persch <chpe@cvs.gnome.org> > > * embed/mozilla/GtkNSSSecurityWarningDialogs.cpp: >Index: embed/downloader-view.c >=================================================================== >RCS file: /cvs/gnome/epiphany/embed/downloader-view.c,v >retrieving revision 1.92 >diff -u -p -r1.92 downloader-view.c >--- embed/downloader-view.c 2 Feb 2006 17:27:40 -0000 1.92 >+++ embed/downloader-view.c 20 Feb 2006 20:10:42 -0000 >@@ -662,6 +662,7 @@ downloader_view_build_ui (DownloaderView > "pixbuf", COL_IMAGE, > NULL); > renderer = gtk_cell_renderer_text_new (); >+ g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_MIDDLE, NULL); > gtk_tree_view_column_pack_start (column, renderer, TRUE); > gtk_tree_view_column_set_attributes (column, renderer, > "text", COL_FILE,
Created attachment 59789 [details] [review] i have changed _ellipsize_end to _ellipsize_middle.
Checked in; thanks for the patch!