After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337936 - Maybe combine % and remaining columns
Maybe combine % and remaining columns
Status: RESOLVED OBSOLETE
Product: epiphany
Classification: Core
Component: Downloads
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Epiphany Maintainers
Marco Pesenti Gritti
mathusalem
: 328674 341753 (view as bug list)
Depends on: 618443
Blocks:
 
 
Reported: 2006-04-10 13:32 UTC by spark
Modified: 2011-03-07 20:43 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Mockup (14.30 KB, image/png)
2006-04-10 13:32 UTC, spark
  Details
Current downloads window (13.67 KB, image/png)
2006-04-10 13:33 UTC, spark
  Details
Makes the downloads window look like the proposed mock up (3.75 KB, patch)
2006-07-20 08:33 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Downloads window with the patch applied (17.47 KB, image/png)
2006-07-20 10:43 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
Follows Reinout's suggestions of putting the % in the File column and naming the % column 'Time left' (5.35 KB, patch)
2006-07-20 12:40 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Downloads window with the patch applied (16.22 KB, image/png)
2006-07-20 12:42 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
Yet another patch, this lets the Time left column to be resized and also cuts it in two lines (5.69 KB, patch)
2006-07-20 20:48 UTC, Diego Escalante Urrelo (not reading bugmail)
needs-work Details | Review
Screenshot of the latest patch (19.08 KB, image/png)
2006-07-20 20:49 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
Follows suggestions and comments. (5.99 KB, patch)
2006-12-18 01:25 UTC, Diego Escalante Urrelo (not reading bugmail)
needs-work Details | Review

Description spark 2006-04-10 13:32:08 UTC
I thought perhaps it would be nice to combine the % and time reminaing columns in the downloads window. This may be complete crack but I thought i'd do a quick mockup anyway before I forget... screenshot to follow.
Comment 1 spark 2006-04-10 13:32:48 UTC
Created attachment 63111 [details]
Mockup
Comment 2 spark 2006-04-10 13:33:15 UTC
Created attachment 63112 [details]
Current downloads window

for comparision
Comment 3 spark 2006-04-10 13:35:34 UTC
Btw the column would also be renamed "Progress" and maybe moved to the right side of the window (since i'd think it'd look nicer there). Comments?
Comment 4 Sergej Kotliar 2006-04-10 14:41:32 UTC
(In reply to comment #3)
> Btw the column would also be renamed "Progress" and maybe moved to the right
> side of the window (since i'd think it'd look nicer there). Comments?

Yeah, that sounds about right. Looks good to me!
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 08:33:52 UTC
Created attachment 69230 [details] [review]
Makes the downloads window look like the proposed mock up

I made the necessary changes to embed/downloader-view.c so it looks like the mock up, BUT I can't make it align everything to the center, I'm not sure how to do this in a GtkCellRendererProgress.

Also I think that instead of 'about X left' it should just say 'X left', the strings I'm using in the patch are of course just an example and they are screaming to get changed for something smarter.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 10:43:05 UTC
Created attachment 69242 [details]
Downloads window with the patch applied

As you can see, the column to the right sports the new format of % and time remaining (Faltan means Left [as in remaining] in spanish) but it looks rather ugly because I couldn't center it.
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 12:40:51 UTC
Created attachment 69248 [details] [review]
Follows Reinout's suggestions of putting the % in the File column and naming the % column 'Time left'

This patch will make a nicer version of the downloads window, I think it's more intuitive, I also added some ifs to make time measurement more relative. Einstein would be proud.
However I don't like the bump effect when you pass from 'About X hours and X minutes' to 'About X and a half hours'.

See the next comment/attachment for a screenshot of how does it looks like now.
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 12:42:16 UTC
Created attachment 69249 [details]
Downloads window with the patch applied
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 20:48:12 UTC
Created attachment 69281 [details] [review]
Yet another patch, this lets the Time left column to be resized and also cuts it in two lines

This new patch makes the Time left column split in two lines so it doesn't take too much space.
Comment 10 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 20:49:29 UTC
Created attachment 69282 [details]
Screenshot of the latest patch

This is how the downloads window looks now
Comment 11 Diego Escalante Urrelo (not reading bugmail) 2006-07-20 20:55:58 UTC
When more than 24 hours are left, the text should be 'X days' also.
Comment 12 Diego Escalante Urrelo (not reading bugmail) 2006-09-09 06:58:37 UTC
*** Bug 328674 has been marked as a duplicate of this bug. ***
Comment 13 Diego Escalante Urrelo (not reading bugmail) 2006-12-02 05:03:16 UTC
Ping. Are we getting mathusalem on 2.18 or this can be applied?
Also, how can I make the right column wider so the text is not so tight.
Comment 14 Christian Persch 2006-12-17 20:23:14 UTC
+        if (secs >= 27 && secs >= 30 && secs <= 33) {

??

Also, indentation is wrong (using 4 spaces instead of a 8-space tab).

+            text = "Paused";

Missing i18n.

+    //We don't have a relevant state to give, so we add our fancy relative remaining time
+    if (!text) {
+        text = g_strdup_printf(Q_("About %s"), remaining);
+    }

Use _() not Q_() here.

+	//liststore = gtk_list_store_new (6,

Just remove it, don't comment it out.

Comment 15 Diego Escalante Urrelo (not reading bugmail) 2006-12-18 01:25:11 UTC
Created attachment 78536 [details] [review]
Follows suggestions and comments.

Major change is that now it says "N hours" instead of "About N hours" since I removed the "half an hour" part.

When/If committed this should close bug #341753 too.
Comment 16 Christian Persch 2007-01-08 21:42:25 UTC
+		if (mins > 1)
+		{
+			return g_strdup_printf (ngettext("%u hour\nand %u minutes", "%u hours\nand %u minutes", hours), hours, mins);
+		}
+		return g_strdup_printf (ngettext("%u hour", "%u hours", hours), hours);

This should ngettext the "minutes" part separately and then put the strings together.

However the latest screenshot (attachment 69282 [details]) makes me doubt a bit we should do this...
Comment 17 Christian Persch 2007-05-30 11:11:41 UTC
*** Bug 341753 has been marked as a duplicate of this bug. ***
Comment 18 Diego Escalante Urrelo (not reading bugmail) 2011-03-07 20:43:19 UTC
The just committed bug #618443 (new downloads UI) makes this bug(s) obsolete.