[gaim-migrate @ 4895]

Sun, 23 Feb 2003 06:24:00 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sun, 23 Feb 2003 06:24:00 +0000
changeset 4607
c1a24e3c94f3
parent 4606
82c33fac5704
child 4608
c165a90c65fc

[gaim-migrate @ 4895]
I even used 4 space tabs so my code would blend in with the rest
of Christian's!

This fixes 2 very very very minor bugs (they're no 18 yet).
1) When a file is finished, time remaining says "Unknown"
2) When a file finishes, the up/down/check icon doesn't update unless
you've clicked on it (or maybe unless details are shown for that transfer)

This might not be as pretty as Chip's code, but it looks ok to me.

src/gtkft.c file | annotate | diff | comparison | revisions
--- a/src/gtkft.c	Sun Feb 23 02:21:17 2003 +0000
+++ b/src/gtkft.c	Sun Feb 23 06:24:00 2003 +0000
@@ -869,6 +869,21 @@
 					   COLUMN_REMAINING, remaining_str,
 					   -1);
 
+	if (gaim_xfer_is_completed(xfer)) {
+		GdkPixbuf *pixbuf;
+
+		pixbuf = gtk_widget_render_icon(dialog->window,
+										GAIM_STOCK_FILE_DONE,
+										GTK_ICON_SIZE_MENU, NULL);
+
+		gtk_list_store_set(GTK_LIST_STORE(xfer_dialog->model), &data->iter,
+						   COLUMN_STATUS, pixbuf,
+						   COLUMN_REMAINING, "Finished.",
+						   -1);
+
+		g_object_unref(pixbuf);
+	}
+
 	selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(xfer_dialog->tree));
 
 	if (xfer == dialog->selected_xfer)

mercurial